Call XML script from JSP File

445 byte By linkinpark2007a at 2007-11-27 11:42:52
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 ...

Is it possible to get component Reference from the FacesContext

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 ...

Client side Tasks

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 ...

Session concurrency using Hibernate

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 ...

Java call javascript in servlet

382 byte By morningJavaa at 2007-11-27 11:43:21
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 = ...

JS onclick to show data of the selected row in a new browser window.

356 byte By whitesox12a at 2007-11-27 11:43:46
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 ...

JSP Page threw a non-Exception Throwable

1617 byte By Nirav_Chhayaa at 2007-11-27 11:43:49
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 ...

get big datas from client

354 byte By giulio_stevensa at 2007-11-27 11:43:59
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 ...

JSP Page threw a non-Exception

1617 byte By Nirav_Chhayaa at 2007-11-27 11:44:01
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 ...

Apache tomahawk lib

204 byte By SirGenerala at 2007-11-27 11:44:11
<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>

Using HTML tags in JSF

564 byte By Arthi.Konditia at 2007-11-27 11:44:33
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 ...

how to get the query values from the url in a servlet and pass them to jsp

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&param2=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 ...

servlet execution

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>

how to get the query values from the url in a servlet and pass them to jsp

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&param2=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 ...

x:parse returning [#document: null]

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 ...

How to read a user defined java method inside a javascript

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>

java applets and jsp

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 = ...

Rendering controls from one JSP to another

439 byte By Awais_Malika at 2007-11-27 11:45:12
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 ...

is java servlet a good way for developing a website

277 byte By suryakula at 2007-11-27 11:45:27
<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>

JSF selectManyListBox problem in getting the selected values

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 ...

Object casting

780 byte By kensingtona at 2007-11-27 11:45:41
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 ...

Integrate from java to webbased application

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>

downloading and saving file from server

1074 byte By Ramesh_Pappalaa at 2007-11-27 11:45:49
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 ...

Not Going to the Action Method

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 ...

Sample Project

49 byte By asif_need_javaa at 2007-11-27 11:45:56
<p>Is there any sample project of JSF in web?</p>

How to add selected rows from one dataTable to other..

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 ...

Error in system....

454 byte By raghavjavaa at 2007-11-27 11:46:06
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 ...

how to get a datatable when a vale is entered in inputTextfield

276 byte By javamnr948a at 2007-11-27 11:46:15
<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>

Need Help pass combox slect id to servlet

2264 byte By anilmekala.reddya at 2007-11-27 11:46:18
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 ...

Expression Language error

459 byte By dinesh_shetyea at 2007-11-27 11:46:26
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 ...

What is Template Text in JSP?

53 byte By Paddua at 2007-11-27 11:46:33
<p>What is "Template Text" in a JSP.</p><p>Thanx.</p>

how to setfocus back to text box after clciking reset button

613 byte By saswat1579a at 2007-11-27 11:46:38
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 ...

JSF datatable data get shared

421 byte By Ananth.duraia at 2007-11-27 11:46:43
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 ...

downloading a large file

862 byte By raghuveer_vellankia at 2007-11-27 11:46:50
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 ...

Cannot get JSTL core out tag to work, outputs actual expression!!!

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 ...

Help for Eclipse and JSF

273 byte By asif_need_javaa at 2007-11-27 11:47:36
<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>

Rendered problem in all JSF versions ?

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() ...

TabbedPane control...

126 byte By narayanasgsa at 2007-11-27 11:47:54
<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>

How to access Hidden field values.

718 byte By java@mania at 2007-11-27 11:48:04
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 " ><%= ...

How to access Hidden field values.

725 byte By java@mania at 2007-11-27 11:48:05
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 " ><%= ...

Help with image upload +resize + save to databse.

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, ...

Expression Language not supported in compile time attribute value

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 ...

Default number formatting Tomcat

241 byte By PieterPareita at 2007-11-27 11:48:34
<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>

strange compilation error

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 ...

Create Folder and maintain the stracture ..

280 byte By rayees1234a at 2007-11-27 11:48:56
<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>

Working with single pagecode in JSF --Urgent!!

496 byte By dilip_jsfa at 2007-11-27 11:49:01
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 ...

Connector/J

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 ...

Passing parameters to JSP

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 ...

StyleSheet not working in TabbedPane..

403 byte By Satish_Pa at 2007-11-27 11:49:28
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 ...

String mouseover

244 byte By Argonista at 2007-11-27 11:49:43
<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>