Okay here'm my problemNumber one I've only seen a few functioning servlets and am feeling totally out of my depth here trying to write one. This is what I need to do:I am creating a web site that has the following basic structure:html codehtml codehtml codejava GUIhtml codehtml codejava GUII ...
263 byte By
mamtta at 2007-9-26 3:34:22
Hi,I m new to jsp tag library, When I m compiling the handler class, I m getting Javax.servlet.jsp.* package not found. Where can I get this package and how do I setup this into classpath.Thanks in advance.Regards,
How to call a stored procedure from JSP page. How to pass the parameters to a stored procedures from a JSP page.
267 byte By
jerkyboy at 2007-9-26 3:34:40
I need to make a servlet that allows the user to click a button on my site and it starts printing a bunch of documents on my server on his printer. Is this possible? The documents could be images, pdf, etc. My boss wants one click to print all the docs.
116 byte By
kenni81 at 2007-9-26 3:34:55
how to close a normal browser..window.close? (not the pop-up window but a normal window) in javascript
839 byte By
klaka at 2007-9-26 3:35:23
Everywhere you can read that you cannot write something on PrintWriter or OutputStream if you forward the request to another servlet or jsp but is it the same with InputStream?I mean, can you read from request.getInputStream() if you're forwarding the request to another jsp.I tried this in ...
Hi I am working with tomcat.Mine is an intranet application. In my application if some one puts some query for otheruser i save this to database.Now whenever the second user logs in if some querrires are put for him i can show that but my concern is if that user is already online and during ...
1248 byte By
joycetu at 2007-9-26 3:35:55
I want ececute twice sql statments in the same program.And sql driver is "mm.mysql-2.0.4-bin.jar".But the error message are as follows"java.sql.SQLException: Before start of result set".here are some parts of my program:sql = "SELECT * FROM Web_Administrator WHERE ...
231 byte By
gentyt at 2007-9-26 3:36:28
Hi,I use several servlets/JSPs which are using common init parameter, is there a way to specify that some init parameters are common or must I write all the parameters for all of my servlets/JPSs ?Thanks
1019 byte By
paichow at 2007-9-26 3:36:30
Well Im a newbie in Java,I have a problem in accessing a sample of cart-shopping (by JAVA.SUN) with .war files which can be download in Servlet tutorial. Can any one in the forum explain more detail about this files and how it works... the sentence of this part in the servlet tutorial makes me ...
417 byte By
ccyaa at 2007-9-26 3:36:33
I write a jsp using JDOM .but , i get the following error :javax.servlet.ServletException: Error in building: SAX2 driver class org.apache.xerces.parsers.SAXParser not foundi read some documents that to put "jdom.jar" & "xercer.jar" under WEB-INF\lib . but, i found that WEB-INF also under ...
Hi there,Can anyone give me a code example. A tree on web page which load data from databse, the code should be in JAVA, not Jscript.Thanks a lotAnnie
316 byte By
HongX at 2007-9-26 3:36:36
Hello everyone. I come form China. So my Englich is poor. I'll try my best to express my meaning.Now I want to save a bean(it stored data) when a user close his browser for one hours. If the user come to our page again in an hour. I will get data from the bean. How can I do for it. Thank you. ...
i want to pass values to applet from my jsp. am using <object>tag and am getting the values dynamicaly from database and i want to pass in while loop using <param>tag.i have tried something as below.but its not working.pls help me.<object type="applet" ...
Hi everybody !Here's my problem : working in my project on multiple pages, I'm using inner classes/beans to limitate my '.java' files but I'm stuck when calling that 'inner-bean' in my jsp:usebean tag.First, I tried to declare in the class parameter : ...
Dear all, AS on Microsoft platforms do we have any IDE like Visual Interdev for JSP development.
315 byte By
seralex at 2007-9-26 3:36:52
Hello friends,I'm using Tomcat to run servlets. How can I set a default error page for such errors as 404 and 500? Do I have to configure web.xml for web application, or a global server.xml?Can it be done within the servlet, similar to errorPage property in JSP?Thank you. ...
755 byte By
fagane at 2007-9-26 3:37:01
My form has 2 submit buttons. I am validating it using javascript when a button is pressed as some fields are mandatory. The problem is that if the "reject" button is pressed a reason has to be entered and if the "accept" button is pressed a name from a drop down list has to be choosen.I am ...
879 byte By
arcooper at 2007-9-26 3:37:38
Hi thereI have a frameset with the main content on the left, and the table of contents on the right. When the user logs into the main page, a variable "isSearch" is set to true ( session.setAttribute("isSearch", "true") ). However, I want the variable to be set to false whenever the user clicks ...
I'm using the iPlanet Web Server 4.1,then where to put the JSP Files,and where to put the Servlet and JavaBean files?3ks!!!
I have set up IIS and Tomcat, and I can get the examples that came with Tomcat 3.2.3 to come up, JSPs and everything, but I can't get anything else to come up. Is there a Tomcat forum, or do any of you know how to configure it?The url I use to access the examples is ...
447 byte By
joepriv1 at 2007-9-26 3:38:13
I am trying to determine if a file exists using a relative path, but can't get it to work. ExampleString strURL= "../../../../../Dir/file.txt"; But when I do this code:File file = new File(strURL); if (file.exists() ) {it never finds it . . Absolute path will work. I guess I am not sure what ...
1595 byte By
gentyt at 2007-9-26 3:38:15
Hi,my problem with init parameters in web.xml is solved for JSP but I have still a problem with servlets... here the config file : <web-app> ...
Am using a session varible to test an if statement, if true then statement is executed, else nothing. The session variable appears to be false but the statement is still being executed, any suggestions. Possibly a browser specific problem? The code in question is as ...
524 byte By
dgrsj at 2007-9-26 3:38:24
Hi,I am trying to understand the working of struts example In the struts example(struts-example.war), the logon.jsp has the action attribute of the form as "/logon". In the struts-config.xml "/logon" is mapped to LogonAction. How does the jsp get submitted to the servlet eventually. What ...
151 byte By
CHEERS at 2007-9-26 3:38:43
Could someone please tell me how to move javascript code that I have in my JSP to a separate js file and then use that js code in my JSP?
615 byte By
arcooper at 2007-9-26 3:38:46
Hi there I tried the following: request.setAttribute("myVar", "myValue"); pageContext.forward("/main"); When it loads the main page, my variables are not being set. I have tried the <jsp:forward> page directive and this works for a simple test example I've used, but not when I try it in ...
1942 byte By
uma_var at 2007-9-26 3:39:17
I have 2 programs, *dealForm.jsp to accept a currency, convert it a*dealLoad.jsp to store the details of the dealForm in my database.In the form, before the dataload part, I convert the entered amount into required currency. The URL to retrieve this information ...
146 byte By
seralex at 2007-9-26 3:39:29
Hello friendsI am uploading file using oreilly MultipartRequest class. How can I get the name of uploaded file?Thanks.
112 byte By
CHEERS at 2007-9-26 3:39:40
How can you prevent someone from book marking your page? I have added the code to prevent caching?
1900 byte By
tim.liu at 2007-9-26 3:40:34
With JBuilder4, I have built an application with JSP and a few Java Beans (Those JavaBeans are instantiated in those JSP files). There are no EJBs. The package name is called 'onlinetrade'. I have tested the application on JBuilder's web server, it works pretty well.Now I am moving this ...
total =(int)java.lang.Math.ceil(res.getRow()/rowNumber);i got res.getRow = 3 and rowNumber=10and i expect total to be 1 but it return me 0 does anybody knows whythax in advance
230 byte By
manohar2 at 2007-9-26 3:40:59
Friends can some one tell me how to throw a page (can be HTML or JSP) from a JSP.I have this various submit buttons ,and depending upon the choice selected, I want to throw different page.Thanks.
154 byte By
Sonalp at 2007-9-26 3:41:04
Hi,Can anybody tell me how to get the number of days between 2 dates ? Is there any function available for this ?Thanks
Hello all !I'd like to execute pre-compiled JSP's with the bare minimumenvironment required -- without SAX Parser, Java Compiler, andfull Tomcat installation.Is there a way to execute precompile JSP's without a full-blownTomcat installation ?Maybe from the command-line? (eg, similarto the ...
741 byte By
PAULSC at 2007-9-26 3:41:26
OK so I've got the Tomcat examples working from the Tomcat home page.Now I'm trying to write my own website.I've got the website working with an index.htm file to start it. If I create a link to an HTM file it works fine.Trouble is if I now give the HTM file a JSP extension I get a page not ...
hiis there a way for clients to send me files through my JSP ?thanks beforeAlbert
141 byte By
qasims_1 at 2007-9-26 3:43:01
Hi,I am getting problem in calling an html page from a jspusing forward tag or with any other ( if exist )
i want to know how to use cookies in my jsp coding - as in mailing concept.pls explain me with a coding thank you
351 byte By
qasims_1 at 2007-9-26 3:43:27
I am getting problem of calling an html page from jspThe sample code isint rowsAffected = stm.executeQuery("Select * From Table");if (rowsAffected == 1){ %><jsp:forward page="xyz.html" /><%} it is only working for xyz.jsp file but not for xyz.html ...
I need to store database setting in a file on the server so the database can be configured by the client, like in Jive.I decided to store these setting in a serialized object and place it's result in a file, but I can't seem to find any good file-handling tutorials... Got any?Is there a safe ...
I have a JSP that uses a bean called UserCredentials with session scope and a bean called SessionManager with application scope.The problem is that my JSP causes a class cast exception unless I change the scope of the SessionManager to _session_ as well - then I don't get any errors, but this ...
497 byte By
shekhow at 2007-9-26 3:43:53
I have problem retrieving in PHP or Javacript a cookie set in servlet. This is the code in servlet:Cookie Graph_cookie=new ...
i ' am new to jsp , if i ask any stupid question , i'm soryy.....if jsp code incude html,many book code style like this...<%//do somethingout.println("<html>test</html>")%>i try to code like asp , such like<%// do ...
I've defined parameters in Web.xml of my application which a Servlet can read OK, but a JSP in the same application just gets a null when calling getInitParameter()Any ideas? Nick@redsoft.co.uk
299 byte By
adamrau at 2007-9-26 3:44:14
Method setMaxInactiveInterval(int) not found in interface javax.servlet.http.HttpSession. session.setMaxInactiveInterval(2400); I am trying to expire a session attribute after 40 minutes using this:session.putValue("UID", uid);session.setMaxInactiveInterval(2400);
can any one tell me in which place we can use SERVLETS and which place to use JSP.
126 byte By
Zigi at 2007-9-26 3:45:11
I get error 500 when trying to view a jsp page on the tomcat.does anyone know how to solve this problem ?
377 byte By
joey829 at 2007-9-26 3:45:19
Dear all,I got a jsp page which do some checking by calling a bean first and then redirect it to another jsp page by using response.setRedirect("xxx.jsp"). but the problem is that after redirecting the page, the old page appear on top of the new page occassionally.Would anyone tell me what's ...
Got the following error when I was trying to load a JSP that imports a servlet class:--2001-08-12 03:17:12 - Ctx( /guestbook ): JasperException: R( /guestbook + /GuestBook.jsp + null) Unable to compile class for JSPerror: Invalid class file format: ...