I have a JSP Page and I want to pass an XML tag in that JSP page, which would return some JSP scriptlet value......which is something like this -<taglib : tag><%getResult()%></taglib :tag>Can u explain me how to implement that ? What all files do i need to modify or create ....do i need to ...
467 byte By
Doga at 2007-11-27 11:42:59
Hello Friends,I am not much familier to JSF but have to perform some assigned work so need your valuable help.I want to get the reference of Component (not binded with any bean)available on the JSF page in my Java code. I have to use its id attribute for this but not sure how I can get this. Is ...
856 byte By
Crispsa at 2007-11-27 11:43:18
I am trying to convert a normal GUI application into a set of JSP pages due to some network issues which mean we need to do a lot of the work server side.I can accomplish almost all of the work server side using jsp. I now need to do two basic things on the client side to finish it.1. Create a few ...
374 byte By
Intel3a at 2007-11-27 11:43:20
I am new to JSP and don't know how it should work.What I am trying to do is to put a "lock" on a modifying jsp so that there will not be two users that can excess that particular page by clicking the commandbutton.How can this be done? Is using Hibernate the solution? How does it work?Is there any ...
Hi,I am outputing HTML and Javascript using a servlet to display reports. Is it possible to embed java withing the javascript inside a servlet?I know you can do it on a JSP page like this:<script language="javascript">function test(){var javascript_variable = "";<%String java_variable = ...
Hi I have a datatable populated from ListDataModel there is a commandButton at the end of each row, how can I get the selected row in javascript using onclick.Basically when a user clicks on the button I want to open a new browser window and show the values of the selected row. Can someone please ...
Friends,I have Servr JRun 3.1. The application has been workin fine since it has been deployed last year. Suddenly, I have started getting the following error.javax.servlet.ServletException: JSP Page threw a non-Exception Throwable.at ...
Hi,I have a client (javascript) that sends to my servlet big datas via parameter "document=....."(document can be pdf, html ecc)I use this line in my servlet:String document = request.getParameter("document");but "document" returns null.How can I get correctly datas from ...
Friends,I have Servr JRun 3.1. The application has been workin fine since it has been deployed last year. Suddenly, I have started getting the following error.javax.servlet.ServletException: JSP Page threw a non-Exception Throwable.at ...
<p>Hello,</p><p>I am using Sun's JSF implementation.</p><p>I would like to know if Apache's tomahawk library is compatible with Sun's JSF impl. or does it work only with Apache myFaces.</p><p>~SirG</p>
Hi ,There is a requirement in my project where i have to convert the PHP Application to JSF AppCan i use the normal HTML tags.. in the JSP when i am using the JSF tags in between.if i use the normal HTML tags does it impact in anyway. i was enable to decide wether to use normal HTML tags..or i need ...
886 byte By
hari786a at 2007-11-27 11:44:35
ok..this is the situation...all applications are routed through a login page...so if we have a url like www.abc.com/appA/login?param1=A¶m2=B , the query string must be passed onto a servlet(which is invoked before the login page is displayed)..the servlet must process the query string and ...
182 byte By
j_stara at 2007-11-27 11:44:36
<p>Hi! Please try to answer my question: if a servlet has 3 methods as service,doGet and doPost then which one gets executed first and does the request get passed to next method?</p>
886 byte By
hari786a at 2007-11-27 11:44:38
ok..this is the situation...all applications are routed through a login page...so if we have a url like www.abc.com/appA/login?param1=A¶m2=B , the query string must be passed onto a servlet(which is invoked before the login page is displayed)..the servlet must process the query string and ...
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>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 ...
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 ...
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 ...
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 " ><%= ...
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 ...
<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 ...
<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>