333 byte By
onassara at 2007-11-27 11:44:47
the following code is outputting [#document: null]<c:import var="sampleXML" url="../common/sample.xml" /><x:parse xml="${sampleXML}" var="parsedXML" />yet, if it c:out the variable sampleXML, it spits out the xml I have in the sample.xml file. any thoughts why this might be ...
287 byte By
snehaka at 2007-11-27 11:44:50
<p>I have a scenario where I have a form with 2 fields and a submit button. On clicking submit button, I call a javascript which needs to call a user-defined method. </p><p>Please provide solution to do this and also please provide any useful links that i can go follow.</p><p>Thanks</p>
739 byte By
Crispsa at 2007-11-27 11:44:56
I have an applet for example<applet height="50" width="500" archive="applets.jar" codebase="applets/" code="MyApplet.class" name="MyApplet"> <param name="param1" value="data1"/></applet>I want the applet to manipulate the parameter param1 which is fine. String strData = ...
Hi Guys,I need to render html controls from one JSP on another JSP. Basically I want to have a link on a JSP1 that redirects the user to JSP2 and JSP2 then iterates through HTML control on JSP1 and renders them. How should I go about achieving this? Goal is to render a printer friendly version of a ...
<p>Hi,</p><p>i am developing a website that has to download huge data and upload huge data .also money transactions through credit cards need to be involved.is java servlet a good way to do this or should i use an ejb or any other technology.</p><p>Any help is appreciated.</p>
872 byte By
a_sangua at 2007-11-27 11:45:32
Hi ,Ive two listboxes ,Ive written javascript to load the listbox 2 from the listbox1.but my problem is Iam not able to get the selected items of the second listbox in my actionclass since it does not have option value.due to <option value="">iam getting conversion error..How to get the selected ...
I need clarification on this casting statement inside the loop, so I can get a better understanding of Object casting:recordList = new ArrayList();......for(int i;....){((DTO)recordList.get(i)).getName()}This translates as DTO (name of destination class) casting the recordList object reference ...
218 byte By
tank82a at 2007-11-27 11:45:46
<p>I am new in JSP. I hv done an application with Java previously and now want to make it as a web based application using JSP.</p><p>What I need to do? Do I have to make any modification on the original java file?</p>
HiI am using this code thatI got from another post to download a file from serverfinal ServletOutputStream out = response.getOutputStream(); response.setContentType("application/vnd.ms-outlook");BufferedInputStream is = new BufferedInputStream(new FileInputStream(new ...
1509 byte By
Susy7707a at 2007-11-27 11:45:51
Hi All, I was just started learning JSF,as we are going to start a New application in JSF.i was trying with ListBox.. without the list box.. the ..Action method in the backing bean is getting called.but if include this Listbox its not going into the action method.its always going into the ...
<p>Hi,</p><p>Using JAXB can I Marshall an java object to xml directly without Unmarshalling it first?</p><p>Thanks.</p>
<p>Is there any sample project of JSF in web?</p>
419 byte By
JayKVa at 2007-11-27 11:46:00
Hi all,I hv a dataTable containing some rows. when i click a button a new window appears containing other dataTable. Iam displaying data in a dataTable from an ArrayList. In the first column i hv placed checkboxes. If the user selects some rows by clicking on checkboxes, I hv to close the new ...
hi vijaywhile executing program i'm getting this error only in my system but it is get executed in other system... E:\raghav>javac RoomArea.javaE:\raghav>java RoomAreaException in thread "main" java.lang.NoClassDefFoundError: RoomAreai have set classs path also correctlyall programs getting ...
<p>hi,</p><p>I have a jsf page.In that i have one textfield for employee code</p><p>If a letter is entered on that textfield,the table in the jsf page must show the employees list.to retrieve the list I have method in session bean</p><p>how to write the valueChange event.</p>
Hello every body,I plan to develop small web application .In that i have two combo boxes named services and service categories.when i select perticular service in service combobox automatically fill catagories in service categories table.i wrote in my jsp:<td>Services</td><%ArrayList ...
I'm not exactly sure if "process" is the right word, so I'll describe what I mean. There are two XML files ( http://xml.pinnaclesports.com/xmlfeed.asp and http://208.138.39.112/XMLLineFiles/Baseball.xml) that are constantly updated online, and I want to be able to compare certain numbers in the ...
Hi,I am facing a funny problem with Expression Language in JSP specs 2.0. Whenever I write any statement using EL , the entire string gets printed as HTML output. For e.g. If I write something like, say,<HTML><BODY> the result of 2*2 is : ${2*2}</BODY></HTML>I get the output as:the ...
277 byte By
mskamala at 2007-11-27 11:46:30
<p>Respected All</p><p>Can I extract value of tag from DOM object without specifying the xml tag element name or traverse it like arraylist or vector , if it is a tree of node then there is any way to traverse the tree to extract its values</p><p>please comment or any idea</p>
53 byte By
Paddua at 2007-11-27 11:46:33
<p>What is "Template Text" in a JSP.</p><p>Thanx.</p>
hi everyone my problem is:i have an text box .after entring the value in this user press calculate button .then there is reset button .where he can reset the value.\the problem i am getting is after clicking reset button cursor focus is not going back to textboxhow to do that pleasehelp code is ...
Hi,i have a strange problem. When two users click for two different records there records get shared or both of them got same records. i'm sure it's not a session sharing since i'm stroing & display user name & other details in session and which exactly the same. but only the data in ...
Below code to download file in jsp application.What change would give the positive results for downloading a large file.In below code what would be the value of [XXXXX] byte[] buff = new byte[XXXXX];if I want to download a very large size file about 1000 ...
<p>Hello, </p><p>I have a element with name ClientId and having value as:- rohan&meta.</p><p> It gives Sax Parser Exception.</p><p> So is there any trick for string with value having symbol &.</p>
1429 byte By
np1981a at 2007-11-27 11:47:10
I have an issue with the core JSTL library, which means whenever I want to write something into the JSP page, instead of writing the value of the expression as expected, it writes out the actual expression i.e.<c:out value="${request.remoteHost}"/> -- Results In -- > ${request.remoteHost}I have ...
<p>I'm a novice Eclipse user with JSF. I used Oracle JDeveloper. But that seem complex to me. Anyway, I want simple and details tutorial about how to use Eclipse with JSF and some sample projects done with Eclipse using JSF.</p><p>I need that urgently. Please help me.</p>
1941 byte By
xesja at 2007-11-27 11:47:44
[nobr]Hi All !I made a simple application, and I tried in JSF1.1, in JSF1.2.The problem is same....<h:commandButton value="egy" action="#{csakbean.egy}" /><br> <h:commandButton value="ketto" action="#{csakbean.ketto}" rendered="#{csakbean.rnd}" />...and my "csakbean":...public String egy() ...
<p>Hi,</p><p> i am new to jsf, i want to work with tabbed pane control, can any one give site url , to find good examples?</p>
hi friends,I want to access the value of the hidden fields from first.jsp to second.jsp.this is the code from first.jsp:<% for( i = 0 ; i< arrayList.size(); i++){ %><input type="radio" name="showQueryName" value="<%= arrayList.get(i)%>" onclick="return " ><%= ...
hi friends,I want to access the value of the hidden fields from first.jsp to second.jsp.this is the code from first.jsp:<% for( i = 0 ; i< arrayList.size(); i++){ %><input type="radio" name="showQueryName" value="<%= arrayList.get(i)%>" onclick="return " ><%= ...
588 byte By
dvpka at 2007-11-27 11:48:16
Hi I have problem with the code i am using Eclipse IDE when i build it doesnt show any errors but when i run i show arun time error as:ERROR: 'null'FATAL ERROR: 'Could not compile stylesheet'javax.xml.transform.TransformerConfigurationException: Could not compile stylesheetat ...
534 byte By
Me_mea at 2007-11-27 11:48:29
I up a new to uploading image, so I was if anyone could help.I have a form that I want users to upload multiple images, image can be any size, those images will need to be saved my Mysql database, up before it saved I want to resize to the image and save resized and renamed images to DB.Any tips, ...
1214 byte By
afzala at 2007-11-27 11:48:32
Hi guysIam getting this error while running JSP page in JDevloper 10gExpression Language not supported in compile time attribute value at the statement<c:out value="${date}"/> Please help me out <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 ...
<p>Hi,</p><p>Is there somewhere a property in tomcat where I can specify a default number format. </p><p>I want to display my decimals with a comma in order than a point</p><p>123.45 should be 123,45</p><p>Thanks in advance,</p><p>Pieter</p>
6026 byte By
hunterzza at 2007-11-27 11:48:41
I am using two combination1. Apache 5.5.23 with jdk 1.52. Apache 5.0.28 with jdk 1.4in my application a JSP page is running perfactly fine with combination 1.but in combination 2 it is showing compilation error........Generated servlet ...
407 byte By
amattasa at 2007-11-27 11:48:46
If I have a local EJB bean which has two classes and an interface:Class:AccountRoleBeanAccountMgrExceptionInterfaceAccountRole (Local)And I use it in a webapp, it appears I have to import both the interface and the exception class.And I'm injecting the class as @EJB AccountRole accountRoleIt seems ...
I want to retrieve e-mail from my account on Gmail in my application, but I have a problem. I cant establishe a connection with pop3 server...Do you have an example (full) in Java code for retrieving a mail from Gmail account.I used the example from JavaMail Api 1,4 Specifications, but I have a ...
<p>Hi, </p><p> My requirment is, i need to upload my files into web space but it should maintain the folder structure </p><p> Like if am going to create Song, folder cont ions sub folders like POP, RAP,Devotional, in side that i need to put my file </p><p> how can u attack it</p>
How do i map two different jsp pages to the same pagecode? The problme is in RAD where a jsp is automatically mapped to a pagecode that gets created. there is this tag<%-- jsf:pagecode language="java" location="/JavaSource/pagecode/PageCodeOne.java" --%><%-- /jsf:pagecode --%>the aboe is for ...
1012 byte By
jotnartaa at 2007-11-27 11:49:07
Hi AllI have installed MySql connector Version 5.1 and i have placed the jar file in CATALINA_HOME/lib. I wrote the following code in a jsp file, and when running it i got ClassNotFoundException:<%Class.forName("com.mysql.jdbc.Driver");String url = "jdbc:mysql://localhost:3306/exam";Connection ...
1410 byte By
jdub53a at 2007-11-27 11:49:27
Hello,I have a jsp page that needs to receive parameters to look up an image. I pass the parameters in the url like so: <page url>?year=1974&month=01&day=01&hour=00&sattelite=GOES1&channel=IR . FYI <page url> is just a place holder for the url of the image page. The image ...
Hi..I am using Tomahawk for implementing tabs as follows... <t:panelTab id="tab" label="Tab" ><f:verbatim> <jsp:include page ="empprofile.jsp"/> </f:verbatim> </t:panelTab>In the empprofile.jsp...I am including one css file.But the styles are not applied according to css.Can anybody ...
I'm trying to write a Java client to connect to a web service using Axis 1.4 (choose this by default, perhaps I should use something else?). The web service has a URL of the form " http://domain.com/directory/service.asmx" and I'm trying to call a method of the form MethodName(String stateAbbr). I ...
<p>hi,</p><p>The string should be changed, if the mouse moves over the string. onmouseover must be executed by javascript. But how?</p><p>I got error.</p><p><t:outputText onmouseover="this.value='ByeBye';" value="Welcome" /></p><p>Manu</p>
Hi all,I can retrieve the values from DB and print them onto a JSP. However, I can't do the reverse process- that's queries DB through a button click event from a JSP. Here is my sample code. I am using struts framework. I tried to execute the code after minimizing errors and all I could get is ...
5951 byte By
amattasa at 2007-11-27 11:49:54
SEVERE: "DPL8011: autodeployment failure while deploying the application : Error loading deployment descriptors for module [CI] -- Cannot resolve reference Unresolved Ejb-Ref com.stryker.cmf.accountrolebean.AccountMgrBean/mailer@jndi: @null@com.stryker.cmf.cimailer.CIMailer@Session@nullThis is the ...
Hi!I'm trying to parse an XML document in order to store the various elements into Oracle DB tables.In the document, I have a node like...<ElementList><Element elem_code="AA"><Name>A Name</Name>... etcIn Java, I write something like...NodeList listOfElements = ...
Serving a fileI'm having trouble serving a PDF file from a server to the user.I've used iText to generate a PDF file (by completing an AcroForm with info from a database) which now resides on an absolute path.I've used BalusC's tutorial for fileserving.Everything is working properly, except ...
I have been asked by my companies QA manager to find-out what the best tool is to perform Regression testing on JSP Web Apps.We use Weblogic Server, JSP 1.0/2.0, struts.We need a tool that can monitor changes from build-to-build, and automate testing of the front-end. Some of our testers are not ...
Hi there,I have two arrayLists, one contains a list of ids and the other contains a list of names. The ids and the names in a particular position in their arrayList correspond so that the id in position one corresponds to the name in position one.I want to use <c:forEach> to iterate through ...