RE: RequestDispatcher.forward()

2001-05-18 Thread Grewal, Gary
Title: RE: RequestDispatcher.forward() ServletContext.getRequestDispatcher(java.lang.String path) takes absolute path beginign with / though the path must be relative to the current context. You will have to use getContext(java.lang.String uripath) to get a foreign Context and then use this

Tomcat and JApplet

2001-05-15 Thread Grewal, Gary
Title: Tomcat and JApplet Hi , I do not know if this is the right forum but ... I have tomcat running as a stand alone web server and am trying to run a JApplet using it. I have the HTML file under the normal directory with other HTML files. Default it looks for the Applet under the

classpath

2001-05-15 Thread Grewal, Gary
Title: classpath Hi , Is it possible for a normal servlet/jsp to use java files under a completely different directory specified under the classpath or will I have to move the supporting java files over to the web-inf/classes directory. Thanks and Regards, Gary Grewal

RE: send response to browser and continue processing in servlet.s ervice()

2001-05-07 Thread Grewal, Gary
Title: RE: send response to browser and continue processing in servlet.s ervice() One way you can set the refresh header which auto checks for every 5 secs or 10 etc and displays the new data. This way once the data is fully there then do not set the refresh header and just send the data in

RE: RequestDispatcher failure

2001-05-04 Thread Grewal, Gary
Title: RE: RequestDispatcher failure Using request the URL given can be relative and using the application it has to be absolute begining with a '/'. Check to see if this may be the cause of the error. Thanks and Regards, === Gary Grewal -Original Message- From: Mark Mynsted

Re: RequestDispatcher failure

2001-05-04 Thread Grewal, Gary
Title: Re: RequestDispatcher failure Using request the URL given can be relative and using the application it has to be absolute begining with a '/'. Check to see if this may be the cause of the error. Thanks and Regards, === Gary Grewal -Original Message- From: Mark Mynsted

RE: Modifying encodeURL()

2001-04-09 Thread Grewal, Gary
Title: RE: Modifying encodeURL() You could use a hidden form field to do this and read the the parameter . === Gary Grewal -Original Message- From: David M. Rosner [mailto:[EMAIL PROTECTED]] Sent: Monday, April 09, 2001 3:02 PM To: [EMAIL PROTECTED] Subject: Modifying encodeURL()

RE: Re-Setting the bean in a session scope

2001-04-02 Thread Grewal, Gary
Title: RE: Re-Setting the bean in a session scope I tried doing jsp:useBean id=myBean class=.. scope=session / Display properties as got from the bean... Set some properties Display those newly set properties % myBean = new MyPackage.MyBean(); % Display the properties... It

RE: Setting paths relative to webapp root...

2001-03-30 Thread Grewal, Gary
Title: RE: Setting paths relative to webapp root... put the files in their respective packages and then compile them with -d path/dir/myWebApp/WEB-INF/classes option. This will move the .class files to the respective directories under WEB-INF/classes . On the Browser type

RE: CLASSPATH

2001-03-29 Thread Grewal, Gary
Title: RE: CLASSPATH I think you are trying to access javax.naming.* and not javax.util.naming.* Try that and then see === Gary Grewal -Original Message- From: Batsheva Raviv [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 10:40 AM To: Tomcat Usr (E-mail) Subject:

RE: ClassNotFoundException

2001-03-26 Thread Grewal, Gary
Title: RE: ClassNotFoundException What directories are your HTML and your JSP files and your Servlets. Generally JSP files are in the HTML directory or directories below it while servlets are in your web-inf/classes directory. What are you typing on the browser window === Gary Grewal

RE: Java Question on Inheritance

2001-03-22 Thread Grewal, Gary
No. The way you are doing means you are calling .toURL() method on what ever is returned by the method getThumb(). Unless getThumb returns a type of Object of type SuperOne or it's sub-class you cannot call this method and you should see a compile time error. What you can do is URL url

RE: Refresh

2001-03-22 Thread Grewal, Gary
Title: RE: Refresh In servlets you can override the getLastModified method and have it return the date-time it was last modified. Also you can set the header Refresh to what ever time you want to refresh your browser. Try with JSP and let me know if it worked. === Gary Grewal

RE: Question on import javax.servlet.*;???

2001-03-22 Thread Grewal, Gary
Title: RE: Question on import javax.servlet.*;??? I hope you have downloaded the servlet.jar and also your classpath points to it. === Gary Grewal -Original Message- From: Mick Sullivan [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 22, 2001 3:37 PM To: [EMAIL PROTECTED]

RE: SSL--Session Expiry

2001-03-21 Thread Grewal, Gary
Try encodeRedirectURL() because rules are different for encoding for redirect to own web-page. Also try % response.sendRedirect(..) % directly instead of using jsp:forward === Gary Grewal -Original Message-From: Seshagiri Dev Kurmana [mailto:[EMAIL PROTECTED]]Sent:

RE: problems with forward in a servlet

2001-03-19 Thread Grewal, Gary
Title: RE: problems with forward in a servlet in forwarding using RequestDispatcher, try String url = encodeRedirectURL(url); and send this url as your forward url for session tracking. May be you need to do a similiar thing on the JSP side too while trnsferring the control back. === Gary

RE: include problem

2001-03-19 Thread Grewal, Gary
Title: RE: include problem instead of ../ just do level21/b.jsp === Gary Grewal Contractor NEC America Phone: 214-262-5911 E-Mail: [EMAIL PROTECTED] -Original Message- From: Kishor K [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 3:55 AM To: Tomcat User Mailing List

RE: Closing ResultSet and Statement?

2001-03-19 Thread Grewal, Gary
Title: RE: Closing ResultSet and Statement? You close the statement Object by calling .close() on it. === Gary Grewal -Original Message- From: Dianne Cree [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 4:33 PM To: [EMAIL PROTECTED] Subject: RE: Closing ResultSet and

RE: Closing ResultSet and Statement?

2001-03-19 Thread Grewal, Gary
Title: RE: Closing ResultSet and Statement? or you can even close the Connection object by calling .close() on it. this will close all the underlying statement and ResultSet Object. I hope this is what you meant by close. === Gary Grewal Contractor NEC America Phone: 214-262-5911 E-Mail: