Tomcat JSP Examples

149 byte By vvna at 2007-11-27 7:32:36
I edited the JSP examples from Tomcat installation directory...but these changes are not being displayed...do we hv to edit any other files..?

.jsp file for HTML frames

213 byte By Emagiaa at 2007-11-27 7:32:59
Hi,I am new to java and these forum's. But I hav lot of hopes on these.I need a .jsp page to display 2 .jsp pages.Also one of them is to shown on right hand side by default.thnq

having two depending controllers

4754 byte By Reddingoa at 2007-11-27 7:33:02
Hello,i have a new problem.In my application I need two controllers.One should be started automaticaly when the webserver comes up and an other for the session.The Problem is:Every Session-Controller should have an 'attribute' that is pointed to the ApplicationController. I tried:<?xml ...

Validate XML fragment against XML Schema XSD

1076 byte By goerge_goergea at 2007-11-27 7:33:09
Hello,I'm not able to find solution to this problem:I have XML document (lets say doc.xml) and it's schema (doc.xsd). doc.xml consist of elements (XML fragment) that represents templates, that are to be edited by user in raw form (user edits pure XML - tags, attributes, etc). And after user ...

Source not found exception in JSF processing

1698 byte By richard_schramma at 2007-11-27 7:33:14
Hope this is not a newbie question, but I am stuck here.I am using jdk 1.5_07 with tomcat 5.5 and using Exadel studio for eclipse as my ide.I have created a jsf page with a simple drop down menu. The menu gets its data from a backing bean, which in turn calls a business object that queries the ...

Display values of one JSP to a popup JSP Window

723 byte By ASH_2007a at 2007-11-27 7:33:22
Hi there, I have a JSP page on which I have a button and a hidden field. onclickevent of button I am calling a function (written in Javascrip) is storing values of selected names(from Dropbox by user). So my hiiden field Selected_names.values contains all the names (seperated by coma) selscted ...

Is Java leaving JSFand moving towards Java FX?

239 byte By gunnerForevera at 2007-11-27 7:33:30
Hey all, I was doing some R&D and I have to find out whether JAVA will be continuing its interest in JSF or will they be more interested in enhancing Java FX. I hope some one can answer this question in detail.Thank you !

How to specific numerous url-patterns in web.xml

149 byte By jhodgskia at 2007-11-27 7:33:33
Can anyone show me the correct syntax to specific numerous url-patterns for a servlet in the deployement descriptor?Thanks,James

Problems getting selected values from HtmlSelectManyCheckbox

3006 byte By Matek_ja at 2007-11-27 7:33:36
Hello,I am having problems getting values via getSelectedValues() from my HtmlSelectManyCheckbox component. The method returns an object array but the values are the same as the initial selectItems property.JSP:<h:selectManyCheckbox ...

How to update a attribute value in java

390 byte By Antsa at 2007-11-27 7:33:51
Hi All, I have a xml file which looks like <languages><c>10</c><java>1.5</java><vb>7</vb> </languages> now i have to parse the xml and update the value of <java> tag to 1.6,can anyone please provide the code snippet for above ...

Needed help. urgent.

344 byte By skp71a at 2007-11-27 7:34:00
I want to generate an nine digit unique random number and store it in an xml file.I should be able to append the xml file each time when I generate a new random number.And also when it generates a new rondom number it should make sure that number dosen'talready exist in the xml file. Any help ...

Element tag in the WSDL file.

683 byte By robl29a at 2007-11-27 7:34:16
I have the following interface for the webservice:public interface DocumentProvider extends Remote {public void deleteDocument(String documentId) throwsRemoteException;}I use the wscompile command to generate the wsdl file and it creates a complex type like this:<complexType ...

create and deploy jsp file during runtime

142 byte By SunRRa at 2007-11-27 7:34:29
Hi,I want to create and deploy jsp file during runtime. Can you please provide some guide lines?Thanks in advance.

sharing objects between backing beans

352 byte By kal132a at 2007-11-27 7:34:45
Hi, I have an String variable that needs to be shared by all backing beans in my application. All backing beans are session scoped. How can i share the string variable among all beans. Can i store it in the session and retrieve inside each bean? How can i get access to session inside the ...

urget!!!!! need code to upload file on server side in jsp

201 byte By anshu_it_surata at 2007-11-27 7:34:55
hi all,i need help in uploading file to server in jsp....plz i need a working code soon as my project completion deadline is closei will be thankful to who ever helps me out

Error 500: Cannot Find FacesContext

6299 byte By jiapei_jena at 2007-11-27 7:35:22
I have used JSF and been able to render successfully until I start working ADF components into my ***.jsp.I use the IBM Rational Application Developer (RAD) v7.0. And all the compilation complaints have been cleaned up.But, when I tried to run my ***.jsp, I have the "Error 500: Cannot Find ...

Debugging on sending email

407 byte By vwuvancouvera at 2007-11-27 7:35:24
I use Java mail based mail packages, Spring and Seam, to send email out. Followed the normal procedure, the email seems to be sent. But, the recipient never received the email. I am wondering how I can debug the problem. The SMTP host is configured to the local cable email host and it is ...

selectOneListBox and validation error

2505 byte By pippoua at 2007-11-27 7:35:41
Hi,I have a validation error using a selectOneListbox. I read a lot of topics in this forum, but I still can't solve my pb.This is my JSP:<ice:selectOneListbox size="1" styleClass="totalWidth" value="#{controller.selectedCmsName}" ><f:selectItems ...

Regarding Context path

502 byte By araoa at 2007-11-27 7:35:43
HelloI have a web project, In my controller class I am trying to read a txt file contained in the same directory as my controller using FileInputStream fip =new FileInputStream("D:\\Workspace\\VIICApplication\\src\\utils\\sequence.txt");Can I use context path to replace the use of d:\\.....I ...

Accessing EJB through a client

710 byte By araoa at 2007-11-27 7:35:47
Hello I have created an EJB project and a client to access this EJB.I am using Eclipse SDK 3.2.2 and Weblogic 9.2In my client I have the code Properties prop = new Properties(); prop.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory"); ...

JavaMail 1.4 issue

440 byte By polkovnikla at 2007-11-27 7:35:49
Hi,I am using SAP NetWeaver Application server and it supports JavaMail 1.3 . For my application , I need to use JavaMail 1.4 and support gave the idea how to add 1.4 library. However, I am getting the ...

Add an IFRAME to a HtmlPanelGrid dynamically?

213 byte By mark@gea at 2007-11-27 7:36:11
Is it possible to use JSF to dynamically add an IFRAME (essentially a verbatim tag) to a panel grid programmatically?I can add a table and other standard widgets, but don't see how to do an IFRAME. Anyone?

AJAX, array, multiple items, Option, Select, drop-down list

6138 byte By tofuwithcoffeea at 2007-11-27 7:36:17
Hello everyone:I am now trying with AJAX because in my last post ( http://forum.java.sun.com/thread.jspa?threadID=5182787&messageID=9712775) I had a messy "fuzzy logic".I am not getting any results in the 2nd drop-down box, and I am getting this error: Error: uncaught exception: Permission ...

response.encodeRedirectURL to a servlet

402 byte By uberallesa at 2007-11-27 7:36:24
I'm still a little new to this response.encodeRedirectURL thing. I know about changing the link so that a session id is attached...but how do I send that id to a serlvet in a form?if the form looks something like this:<form action="servlet/ServletName" method="post">how do I endcode the ...

Composite View Problem

945 byte By Klaas2001a at 2007-11-27 7:36:35
Hi Guys i am currently developing a mini webstore using patterns in J2EE.I have a template servlet that reads the sub views of the next screen from an xml file and set them on a screen bean then dispatch the bean to a template jsp for view composition,and that works up to so far .But the ...

How to Re-Initialize JSF Backing Bean

707 byte By mail2bansia at 2007-11-27 7:36:40
We have backing bean defined in "session" scopeSo whenever we do a submit on JSF Form, it holds onto same backing bean. This is not desirable as-> The Form will have different set of values each time it does a submit -> The Backing bean has variable defined to instantiate a POJO ...

Jsp file not running

591 byte By suvra_jyotia at 2007-11-27 7:36:45
Hi,I am new in jsp.I am using Tomcat 5.5 and jdk1.5My jsp file is<html><head><title> Money Bank </title></head><body><%@ page import = "java.util.*" %>Welcome User</body></html>I save the filein the besslow pathC:\Program Files\Apache ...

Reading .msg files using JavaMailAPI

131 byte By MAYAa at 2007-11-27 7:37:36
Hi,I have all my emails in a .msg file under a backup directory. How can i read it using JavaMailAPI?. Thanks.

how to call servlet from jsp

373 byte By meenakshimishraa at 2007-11-27 7:37:45
i m trying to call it from jsp using<a href="../purchaseP?orderno=<%=pno%>"><%=pno%></a>but its giving error..type Status reportmessage HTTP method GET is not supported by this URLdescription The specified HTTP method is not allowed for the requested resource (HTTP ...

connecting from jsp to ms-word and excel

232 byte By NANDAa at 2007-11-27 7:37:54
hi all,i have a problem.i want to create ms-word or ms-excel file from jsp page and send some data from jsp to that word or excel file .and also I want set the printer font size to A4 . plz help me

Can we specify colspan= some value so that it will span any number of cols

1242 byte By Glimpsea at 2007-11-27 7:38:26
Hi,I am inserting a <TR><TD>ABCD</TD></TR>html chunk dynamically into a dynamic HTML string before every row in the chunk.But if the row in original chunk is split into columns my added row is not spanning the whole width of table [its gonna happen as i have not ...

is there any harm in using colspan="1000"

308 byte By Glimpsea at 2007-11-27 7:38:31
Hi,i want to know that is there any harm in using colspan="any big number" in my <TD> tag even if no row in table contains more than suppose 1 - 20 columns, i just want my current <TD > to span the whole available width of table, whatever may be the number of columns in other ...

How to send a String value from Servlet to Action class in Struts .

162 byte By gagnma at 2007-11-27 7:38:33
when iam trying to sendstring value from Servlet to Struts Action class through Http Session, iam getting null value, iam really in big confusion, help me.

How to bind a Directory as URL

690 byte By baton@rafal.zaczynskia at 2007-11-27 7:38:41
hi there,i'm currently working on some upload mechanisms and have a small idea to fulfill. I need to bind a filesystem directory (any pointed out in configuration - a uploaded files storage) as a URL under tomcat, e.g. having the dir "/home/upload" i'd like to bind in under e.g. ...

How to get default SMTP server name

147 byte By deepakchandarana at 2007-11-27 7:38:47
Hi, I want to know the name default SMTP server configured in machine. How i can get this through my java code.Help me on this

How to refresh current page programatically

245 byte By phani_prakhyaa at 2007-11-27 7:39:02
Hi,How to refresh ( or re-render) a page completely through programatically.in java script if we want to refresh page we will add "submit()" like that I need to refresh page in java code ( run time).Please help me....

How to delete or add columns in a DataTable.

279 byte By phani_prakhyaa at 2007-11-27 7:39:04
Hi,I need to delete/add columns for a DataTable programaticaly... Can anyone help me in this ?. In source code I added a datatable and lets take 3 columsn I added. While running application, I need to delete and add columns whenever I want.Please help me....

Output text does not display..

3444 byte By Arch_Bytesa at 2007-11-27 7:39:06
<h:outputText styleClass="greenBoldText" value="#{messageController.message}"/>This output text's value is from a Java Controller. There are no errors or exceptions thrown but unfortunately for me the message does not display.. I know that I am able to populate the message variable.. And ...

Applet in JSP

463 byte By javarocktheworlda at 2007-11-27 7:39:16
Hi All,can anyone help me to solve my problem.....My problem is"I m trying to create one web application in jsp.and when i click button in this(JSP) page some value should be pass to Applet page like (2,2) and after perform some mathemetical operation on Applet page it shows result on JSp ...

From where can i download jsp-2.0.jar?

3664 byte By zzza at 2007-11-27 7:39:18
I want to run a MyFaces Application on Weblogic 8.1 SP6.When adding an dynamic expression (e. g. #{ msg.application } in <h:outputText value="#{ msg.application }"></h:outputText>), i get the following exception:javax.faces.FacesException: ServletException in ...

page navigation

300 byte By chaithubtecha at 2007-11-27 7:39:19
hello people,i am retreiving some 200-400 images from database.i want to display 9 perpage and include page navigation .like previous-1-2-3-4-5-6-7-8-9-nexthow can i use page navigationi am new to jspand can u please guide methanking ...

page becomes blank if i make a request after session is expired

1729 byte By maroofa at 2007-11-27 7:39:24
I have a problem. after session time out if i click on a button then the page becomes blank and the following exception occurs. Jun 14, 2007 12:41:39 PM org.apache.catalina.connector.CoyoteAdapter serviceSEVERE: An exception or error occurred in the container during the request ...

how to send jms message to mq series

527 byte By tombatorea at 2007-11-27 7:39:25
Hi all,I'm new to JMS and I've been asked to send an xml file to a IBM MQ series message queue.I need to send this message from an application running on a tomcat webserver.Basically, what packages do I need to start with that?Is that possible without installing an MQ client on the ...

@Embeddable class

6509 byte By evepokuaa at 2007-11-27 7:39:33
Hello everyone,I have 3 entity classes:@Entity@Table(name="CUSTOMER")public class Customerent implements Serializable {.................................................}@Entity@Table(name="ITEMS")..................public class Iteamdetailsent implements ...

Bad file descriptor

300 byte By wilson_onna at 2007-11-27 7:40:00
Hi all,i am running a working application on 2 windows enviroments using jdk1.3 . One of the enviroment is working fine but the other throws a "Bad file descriptor" while trying to read the manifest.from jar files. Those jar files are the same.what could be the problem ? ...

problem in HttpSession to retrive the values

1117 byte By kannankallia at 2007-11-27 7:40:06
in my project i used two session variables and i set the value for it ..By retrieving the value i got ClassCastException......THIS IS FIRST JSP ...........this is my part of source code .. i got error in that ....i got size from html page that will be number ...String record_per_page = ...

How to use <h:selectManyCheckbox> do we need converter for submiting

1958 byte By KrishnaSa at 2007-11-27 7:40:20
HI, see my code. I am getting error saying there is no converter. can we use check boxes without converters. I am not useing any special types. just want to reterive as the string objects.<h:selectManyCheckbox id="other"value="#{updateHomLoc.otherSystemsSelected}" ...

Problem with getting generics working in JSP

708 byte By DJ_Vikinga at 2007-11-27 7:40:26
In my Servlet I have some generics in my code ArrayList<MyObject> list = (ArrayList<MyObject>) obj.getSomeObject();request.getSession.setAttribute("list", list);But when I try the following in a JSPObject obj = request.getSession.getAttribute("list");ArrayList<MyObject> list = ...

<t:inputCalendar> How To Specify a Date Range?

276 byte By ffbeltrana at 2007-11-27 7:40:30
<-- Sorry for my english. -->Can anybody help me?I want to know how to specify a date range in the <t:inputCalendar/> component. I'm using Tomahawk/Apche implementation. So that the user cannot specify a date outside that range.Thanks.

Suggest me a full JSF with Database Connectivity Program

373 byte By ambika_devia at 2007-11-27 7:40:33
HiI am new to JSF.I Know JSP like how to connect with database using JDBC.when i am trying the same using JSF how can i connect to the database For e.g., Login Page accessing the username and password from the database.I would like to use Mysql as a database.Pls can anyone suggest me in ...