RE: Request Dispatcher
thats exactly correct, and if do not want to use forward, may be u can use a conditional statement -Original Message- From: Tom Drake [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 10:32 AM To: Tomcat Users List Subject: Re: Request Dispatcher JSP provides an easier way to do what you are attempting. However, the 'hot' include mechanism, is very much like a function call. the output from the included jsp/servlet simply appears in the middle of your output stream. It does not replace the entire page. If you need a completely different response, you may need to use the 'forward' mechanism instead. If you do, you must forward to the other page prior to producing any output at all. Tom - Original Message - From: Scott Walter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 14, 2001 10:16 AM Subject: Request Dispatcher | I am trying to use a RequestDispatcher include with a | JSP page, it seems to be including the content above | the location where I have coded the include. Any | clues??? | | Below is my code | % | RequestDispatcher rd = | request.getRequestDispatcher(pageName); | | rd.include(request,response); | % | | = | ~~~ | Scott | | __ | Do You Yahoo!? | Find the one for you at Yahoo! Personals | http://personals.yahoo.com | | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] | | | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Why am I getting a Javascript file instead of my servlet ?
From my experience you might be facing this problem with Netscape browser. If you try the same with explorer you may not face this problem. This is only one possibility I know. There may be some other reasons which I cannot guess. Ok, lets c if you can access your page through IE( thought IE says that there are errors in page) and not through Netscape, that means in the result page you have a wrong path to your javascript file. Its always possible when you use a relative path in your servlet or jsp output page and use servlet to get that page. I would rather use %=request.getContextPath()%/javascriptDirectory/myjsfile.js instead of some thing like ../../javascriptDirectory/myjsfile.js hope this helps, Raj -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of James Adams Sent: Wednesday, November 14, 2001 10:55 AM To: [EMAIL PROTECTED] Subject: Why am I getting a Javascript file instead of my servlet ? I have a page (JSP) which contains a form with a servlet as the action of the form. However whenever I submit the form I am getting a Not Found 404 error telling me that a Javascript file which is used for Javascript on the page is not found. I am perplexed as to why this is happening, especially since the Javascript is working as it should. I should instead be forwarded to the servlet which will handle the form parameters. Can anyone suggest ways to find out what is going wrong ? Thanks in advance for any suggestions... -James -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Memory Requirements-Stripping down Tomcat..
Hi What are the memory requirements for Tomcat? How can I configure it to use a maximum memory of 16M? ( I used -Xms and -Xmx with java command but in vain) How can I strip down the Tomcat, while building? I need support for only Servlet, JSP, my application is direclty using JDBC, JAVA Mail, dont want to use JNDI. v r thinking to use tomcat on a embedded platform. thanks, Rajah Kalipatnapu Soundpipe Inc 4082351785 X-790 www.soundpipe.com
RE: Http version Tomcat3.2.3
http 1.0, tomcat 4.x supports 1.1 -Original Message- From: Sankaranarayanan Ganapathy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 18, 2001 11:53 AM To: '[EMAIL PROTECTED]' Subject: Http version Tomcat3.2.3 Hi All, Does anybody know what version of http does tomcat 3.2.3 support? Thanx Ganesh
tomcat on Embedded Systems?? (J2ME )
Is there a lite edition of tomcat available for using with J2ME-CDC-Foundation profile. We want to use tomcat in a memory restricted environment. What are the possibilities. thanks Rajah Kalipatnapu Soundpipe Inc 4082351785 X-790 www.soundpipe.com
RE: tomcat on Embedded Systems?? (J2ME )
Is there Tomcat 3.3 embdedded version or the same Tomcat 3.3 build will be used as Tomcat Embedded. I tried compiling Tomcat 4.0 for J2ME, tried to strip some packages, like JMX, I think only JMX I can able to avoid to be built, I couldn't strip JNDI. J2ME doesn't use any depricated API. So I had to change some code in org.apache.catalina.util.RequestUtil.java to use new API. I didn't try Tomcat 3.3 though. I'll work on it. But the problem is Servlet/JSP Implementations from Sun wont work with J2ME. So any body compiled and used this combo? thanks, Raj -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Monday, September 17, 2001 2:22 PM To: '[EMAIL PROTECTED]' Cc: 'Costin Manolache' Subject: RE: tomcat on Embedded Systems?? (J2ME ) Go for Tomcat 3.3 Embedded i know there was efforts on J2ME porting.. Saludos , Ignacio J. Ortega -Mensaje original- De: Rajah Kalipatnapu [mailto:[EMAIL PROTECTED]] Enviado el: lunes 17 de septiembre de 2001 22:54 Para: tomcat-ml Asunto: tomcat on Embedded Systems?? (J2ME ) Is there a lite edition of tomcat available for using with J2ME-CDC-Foundation profile. We want to use tomcat in a memory restricted environment. What are the possibilities. thanks Rajah Kalipatnapu Soundpipe Inc 4082351785 X-790 www.soundpipe.com
RE: missing directories /web*/exam*/jsp , and java.lang.NoClassDefFoundError
hi did u get any response or able to find a solution on ur own. I'm also having the same problem. TIA -Original Message- From: Nick Torenvliet [mailto:[EMAIL PROTECTED]] Sent: Friday, September 14, 2001 2:27 PM To: [EMAIL PROTECTED] Subject: missing directories /web*/exam*/jsp , and java.lang.NoClassDefFoundError Hi all, its my first tomcat install and I've installing jakarta-tomcat-3.2.3 from the bins. I'm installing tomcat as a standalone server. Ap I'm following a script written by a co-worker that deals with installing 3.2.1. I've followed every instruction ot the letter and I have the following two problems- First, as the final step of the script I am supposed to install our software into the /usr/local/jakarta-tomcat3.2.3/webapps/examples directory however my install only has an examples.war file and no /examples directory below /webapps. Are the directory structures in 3.2.1 and 3.2.3 different. If so where should I put my jsp, if not what button do I push to get the apparently missing directories? Second to my knowledge I've set every PATH, CLASSPATH and _HOME but when I start tomcat using /bin/startup.sh I get the following message Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/startup/Tomcat Any suggestions?
Tomcat 4 Standalone not running, NullPointerException..
I successfully built tomcat 4, and when I try to run it as a standalone server, I get this error in catalina.out. Any body faced this before, any solution. Thank you. Contents from catalina.out Starting service Tomcat-Standalone Apache Tomcat/4.0-rc1 java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:380) at org.apache.catalina.core.ContainerBase.setResources(ContainerBase.java:747) at org.apache.catalina.core.StandardContext.setResources(StandardContext.java:1 090) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3328) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:307) at org.apache.catalina.core.StandardService.start(StandardService.java:388) at org.apache.catalina.core.StandardServer.start(StandardServer.java:505) at org.apache.catalina.startup.Catalina.start(Catalina.java:776) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:212)