RE: c:reditect
Thx for your suggestions guys. I will study the URL rewrite alternative. Session variables are indeed a good way to avoid parameters, in particular the ones that are passed frequently in various pages. Cheers. Lamine -Message d'origine- De : Isabelle Phan [mailto:[EMAIL PROTECTED] Envoyé : Thursday, January 03, 2008 9:37 AM À : Tag Libraries Users List Objet : Re: c:reditect Hassan Schroeder wrote: On Jan 2, 2008 9:38 AM, T. Lamine Ba [EMAIL PROTECTED] wrote: I am looking for an alternative to the taglib c:redirect. I would like to use a library that can execute a redirection from one page to another while passing custom parameters (c:param) without exposing these latter on the url; such as the Form Submit procedure. I don't believe there's any way to send a redirect that won't result in a GET request from the browser, meaning any additional params /will/ be exposed in the URL. Perhaps you could just put whatever you're trying to pass into the session instead. or perhaps use URL rewrite, e.g. http://tuckey.org/urlrewrite/ ? -- Isabelle Phan, D.Phil. Swiss Institute of Bioinformatics Tel: (+41 22) 379 51 89 CMU - 1, rue Michel ServetFax: (+41 22) 379 58 58 CH - 1211 Geneva 4 Switzerlandemail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: c:reditect
I am using the mvc model. The problem with jsp:forward is that the URL is preserved and might display my filenames in the control space. For example: 1. /index.jsp submits parameters to /control/doSignup.jsp 2. /control/doSignup.jsp validates and records parameters 3. /control/doSignup.jsp forwards back to index.jsp 4. /index.jsp has the url /control/doSignup.jsp which is inacceptable Lamine -Message d'origine- De : Hassan Schroeder [mailto:[EMAIL PROTECTED] Envoyé : Tuesday, January 01, 2008 3:26 PM À : Tag Libraries Users List Objet : Re: c:reditect On Jan 1, 2008 4:41 AM, Thierno Lamine Ba [EMAIL PROTECTED] wrote: I am looking for an alternative to the taglib c:redirect. I would like to use a library that can execute a redirection from one page to another while passing custom parameters (c:param) without exposing these latter on the url; such as the Form Submit procedure. Why can't you just use a standard jsp:forward/ ? Or is an actual 302 redirect required? -- Hassan Schroeder [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual hosting and listener servlets
Here it is. I use Tomcat 5.0.28. I also use the tomcat connector and apache to listen on port 80 to domain names of my websites. Each website has a virtual host configured in httpd.conf (apache) and server.xml (tomcat). The configuration works great except for one thing. The tomcat container is not able to execute my ResourceManagerListener servlet, which is a class where I initialize all my application variables. The class is referenced in the my webapp web.xml file as follows: listener listener-class servlets.ResourceManagerListener /listener-class /listener ResourceManagerListener is located under the directory webapp/WEB-INF/classes/servlets. When I do not use any virtual hosting and I reference the website from the base directory, such as http://www.mytomcatbase.com/mywebappfolder instead of http://www.mywebapp.com , then every thing works. Please advise how I can specify a listener class in web.xml after a virtual hosting configuration moves the container context. Thx, Lamine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual hosting and listener servlets
-Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 10:03 AM To: Tag Libraries Users List Subject: Re: Virtual hosting and listener servlets On 10/24/07, T. Lamine Ba [EMAIL PROTECTED] wrote: Here it is. I use Tomcat 5.0.28. I also use the tomcat connector and apache to listen on port 80 to domain names of my websites. Each website has a virtual host configured in httpd.conf (apache) and server.xml (tomcat). The configuration works great except for one thing. The tomcat container is not able to execute my ResourceManagerListener servlet, which is a class where I initialize all my application variables. The class is referenced in the my webapp web.xml file as follows: listener listener-class servlets.ResourceManagerListener /listener-class /listener ResourceManagerListener is located under the directory webapp/WEB-INF/classes/servlets. When I do not use any virtual hosting and I reference the website from the base directory, such as http://www.mytomcatbase.com/mywebappfolder instead of http://www.mywebapp.com , then every thing works. Please advise how I can specify a listener class in web.xml after a virtual hosting configuration moves the container context. For clarification, which listener interface does ResourceManagerListener implement. I assume it would be ServletContextListener. *** indeed it implements ServletContextListener When you say, not able to execute, what does that mean? Were exceptions thrown? Did the listener appear not to be loaded? *** Logs read Error ListenerStart + Context startup failed Have you tried running on TC 5.5.x? *** I do not have this flexibility. I use what my hosting company provides. Thx, Lamine. -- Kris Schneider mailto:[EMAIL PROTECTED] directThought http://www.directThought.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual hosting and listener servlets
I will contact the tomcat mailing list then. Thx, Lamine. -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 3:31 PM To: Tag Libraries Users List Subject: Re: Virtual hosting and listener servlets On 10/24/07, T. Lamine Ba [EMAIL PROTECTED] wrote: -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 24, 2007 10:03 AM To: Tag Libraries Users List Subject: Re: Virtual hosting and listener servlets On 10/24/07, T. Lamine Ba [EMAIL PROTECTED] wrote: Here it is. I use Tomcat 5.0.28. I also use the tomcat connector and apache to listen on port 80 to domain names of my websites. Each website has a virtual host configured in httpd.conf (apache) and server.xml (tomcat). The configuration works great except for one thing. The tomcat container is not able to execute my ResourceManagerListener servlet, which is a class where I initialize all my application variables. The class is referenced in the my webapp web.xml file as follows: listener listener-class servlets.ResourceManagerListener /listener-class /listener ResourceManagerListener is located under the directory webapp/WEB-INF/classes/servlets. When I do not use any virtual hosting and I reference the website from the base directory, such as http://www.mytomcatbase.com/mywebappfolder instead of http://www.mywebapp.com , then every thing works. Please advise how I can specify a listener class in web.xml after a virtual hosting configuration moves the container context. For clarification, which listener interface does ResourceManagerListener implement. I assume it would be ServletContextListener. *** indeed it implements ServletContextListener When you say, not able to execute, what does that mean? Were exceptions thrown? Did the listener appear not to be loaded? *** Logs read Error ListenerStart + Context startup failed Can you provide a stack trace? Have you tried running on TC 5.5.x? *** I do not have this flexibility. I use what my hosting company provides. Thx, Lamine. As Hassan noted, your issue isn't taglib related and is more appropriate for the [EMAIL PROTECTED] list. -- Kris Schneider mailto:[EMAIL PROTECTED] directThought http://www.directThought.com/ -- Kris Schneider mailto:[EMAIL PROTECTED] directThought http://www.directThought.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error with taglib parseDate
Thx much for the tip Kris. Lamine. -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 9:14 AM To: Tag Libraries Users List Subject: Re: Error with taglib parseDate On 8/6/07, T. Lamine Ba [EMAIL PROTECTED] wrote: Hi all, I use parseDate in webapp www.buildtrees.com as follows: *** fmt:parseDate var=birthdate value=${param.birthdate} pattern=MMM-dd- / *** It works great when I visit the site with my computers. On the other hand, some of my web visitors produce the error below: *** Exception: javax.servlet.jsp.JspException: In parseDate, value attribute can not be parsed: OCT-02-2002 Error message: In parseDate, value attribute can not be parsed: OCT-02-2002 *** I suspect the problem is browser related. Does anyone has a solution for this? I searched the internet, but I could not find anything that could help, primarily because I have not been able to reproduce the error with my computers. I had to wait for a web surfer with the wrong configuration to access the site. Browser-based locale setting could certainly cause this to fail. If you want to force the app to always use English, you should probably include the following in web.xml: context-param param-namejavax.servlet.jsp.jstl.fmt.locale/param-name param-valueen_US/param-value /context-param If you just want to change that specific tag, try the parseLocale attribute: fmt:parseDate var=birthdate value=${param.birthdate} pattern=MMM-dd- parseLocale=en_US/ All help appreciated. Lamine -- Kris Schneider mailto:[EMAIL PROTECTED] directThought http://www.directThought.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error with taglib parseDate
Hi all, I use parseDate in webapp www.buildtrees.com as follows: *** fmt:parseDate var=birthdate value=${param.birthdate} pattern=MMM-dd- / *** It works great when I visit the site with my computers. On the other hand, some of my web visitors produce the error below: *** Exception: javax.servlet.jsp.JspException: In parseDate, value attribute can not be parsed: OCT-02-2002 Error message: In parseDate, value attribute can not be parsed: OCT-02-2002 *** I suspect the problem is browser related. Does anyone has a solution for this? I searched the internet, but I could not find anything that could help, primarily because I have not been able to reproduce the error with my computers. I had to wait for a web surfer with the wrong configuration to access the site. All help appreciated. Lamine - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: listeners and virtual hosts
Hi Kris, Indeed, I am referring to the class stored under folder WEB-INF/classes. web.xml refers to the class in question through the tag listener. I am not able to retrieve the attributes defined in that class when I setup a virtual host. On the other hand, it works fine when I use the Tomcat default host. Lamine. -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 06, 2007 1:56 PM To: Tag Libraries Users List Subject: Re: listeners and virtual hosts Quoting T. Lamine Ba [EMAIL PROTECTED]: Hi all, I have Apache connected to Tomcat 5.0.28 on a linux server. I have setup virtual hosts in my tomcat server.xml config file specifying a domain name for each webapp that I host. Problem: The tomcat container cannot find the listener classes, such as ResourceManagerListerner where I specify all my application parameters. By listener classes, do you mean classes you've specified in listener elements within web.xml? Normally, those would appear either in WEB-INF/classes or in JAR files in WEB-INF/lib, just like any other classes needed by your app. If that's not what you mean, then please provide more info about your problem. What, exactly, is the error you're seeing? Can someone give me a configuration tip to solve this problem. Thx, Lamine. -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
listeners and virtual hosts
Hi all, I have Apache connected to Tomcat 5.0.28 on a linux server. I have setup virtual hosts in my tomcat server.xml config file specifying a domain name for each webapp that I host. Problem: The tomcat container cannot find the listener classes, such as ResourceManagerListerner where I specify all my application parameters. Can someone give me a configuration tip to solve this problem. Thx, Lamine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Netbeans Release 3.6
Hi all, I need to re-install an old webapp running on netbeans 3.6 The release (netbeans 3.6) is not available on netbeans website anymore. Can anyone point me to a site that has it? Thanks, Lamine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MySql and Connection pools
Hi all, I have mysql connected to tomcat server via a JNDI connection pool. Within my webapp, I use either beans or the sql taglib (part of jstl) to query the database (depending on what is most convenient at the time). I noticed that sometimes the database hangs and is not able to find and pull records. The only fix I found so far is to shutdown tomcat and restart it. Then, every thing goes back to normal, until it happens again. Has any one experience the same symptoms? If so, do they have a better remedy? Lamine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
File download custom tag or bean
I know that you can download a file from a specific location within your webapp by writing a servlet using OutputStream services. However, it has been done so many times, somebody must have created a custom tag or bean for this feature. Where can I find a custom tag or bean that would allow me to download PDF and PPT files from my webapp and via a dialog box that would allow you to either open the file from the browser or store it in your desktop? Thanks, Lamine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: File download custom tag or bean
Thanks for the tip Martin. Unfortunately, I am not using Struts. Any other suggestions would be appreciated? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martin Cooper Sent: Sunday, March 05, 2006 1:18 PM To: Tag Libraries Users List Subject: Re: File download custom tag or bean Not a tag, but if you're using Struts, you can use DownloadAction: http://struts.apache.org/struts-extras/apidocs/org/apache/struts/actions /DownloadAction.html -- Martin Cooper On 3/5/06, T. Lamine Ba [EMAIL PROTECTED] wrote: I know that you can download a file from a specific location within your webapp by writing a servlet using OutputStream services. However, it has been done so many times, somebody must have created a custom tag or bean for this feature. Where can I find a custom tag or bean that would allow me to download PDF and PPT files from my webapp and via a dialog box that would allow you to either open the file from the browser or store it in your desktop? Thanks, Lamine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]