RE: Customize Url Rewriting + QUESTION
cookie.getValue()); } out.println(); out.println("Request Is Secure: " + request.isSecure()); out.println("Auth Type: " + request.getAuthType()); out.println("HTTP Method: " + request.getMethod()); out.println("Remote User: " + request.getRemoteUser()); out.println("Request URI: " + request.getRequestURI()); out.println("Context Path: " + request.getContextPath()); out.println("Servlet Path: " + request.getServletPath()); out.println("Path Info: " + request.getPathInfo()); out.println("Path Trans: " + request.getPathTranslated()); out.println("Query String: " + request.getQueryString()); out.println(); HttpSession session = request.getSession(); out.println("Requested Session Id: " + request.getRequestedSessionId()); out.println("Current Session Id: " + session.getId()); out.println("Session Created Time: " + session.getCreationTime ()); out.println("Session Last Accessed Time: " + session.getLastAccessedTime()); out.println("Session Max Inactive Interval Seconds: " + session.getMaxInactiveInterval()); out.println(); out.println("Session values: "); Enumeration names = session.getAttributeNames(); while (names.hasMoreElements()) { String name = (String) names.nextElement(); out.println(" " + name + " = " + session.getAttribute(name)); } } } // /* POST method. */ // public void doPost (HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { doGet(req, res); } } Now, I have to manage the login POST form... If you have any quesion / idea ? Loïc Lefèvre -Message d'origine- De : Ashish Bajpai [mailto:[EMAIL PROTECTED]] Envoyé : lundi 30 juillet 2001 18:20 À : [EMAIL PROTECTED] Objet : RE: Customize Url Rewriting + QUESTION HI! Loïc I am also using the 3.2.3 version, I think i should have a look at the 4.0 version also. I think the approach that you are taking to handle the rewriting is a good one, though i have got a question on that how do you get to know that you have encountered a url, let me rephrase it. Like you have a hunk of a content in which there are a lot of tags and form acitons now how will your rewriter get triggered so that it rewrites the urls before it gets out to the user. I mean to ask how does your rewriter plugs into the whole scheme of things TAI ashish Loïc Lefèvre ia.com> cc: Subject: RE: Customize Url Rewriting + QUESTION 07/30/2001 12:13 PM Please respond to tomcat-user Yes you can, I'm developping a URLRewriter servlet because of the problemSSS I encounter using mod_rewrite alone :( I Load it on startup and manage myself the url rewriting by using response.sendRedirect or myMainApplicatioSerlvet.doGet(request,response) + some simple rules ;) Using servlet aliasing in tomcat is not as powerful as I expect. Does tomcat 3.3 or 4.0 use more regular expressions for this? (I use tomcat 3.2.3). Loïc Lefèvre -Message d'origine- De : Ashish Bajpai [mailto:[EMAIL PROTECTED]] Envoyé : lundi 30 juillet 2001 17:55 À : [EMAIL PROTECTED] Objet : RE: Customize Url Rewriting Thanks I will try it. In the mean while is it essential for me to use apache ? can i do something by only using Tomcat. thanks ashish Loïc Lefèvre ia.com> cc: Subject: RE: Customize Url Rewriting 07/30/2001 11:51 AM Please respond to tomcat-user The answer is YES, using mod_rewrite apache module. Add it to your or in mod_jk.conf if you don't use Virtual Host. example: RewriteEngine on RewriteLog /usr/local/tomcat/logs/rewrite.log RewriteLogLevel 9 RewriteCond %{REQUEST_URI} ^/(.*) [NC] RewriteRule ^/(.*) /index.jsp?$1 [PT] ;-) -Message d'origine- De : Ashish Bajpai [mailto:[EMAIL PROTECTED]] Envoyé : lundi 30 juillet 2001 17:38 À : [EMAIL PROTECTED] Objet : Customize Url Rewriting Hi! I was wondering if there is a way that one can add something to the url rewirting scheme. To make things clear what i want is this Can i plugin some code so that all the urls in the html/jsp pages for my site can have a content attirbute some thing of this sort. http://mysite.com/home/ugotit.jsp becomes http://mysite.com/index.jsp?jsessionid=..&content=ugotit.jsp. TAI ashish
Re: Tomcat standalone vs Tomcat w/ Apache
Tomcat is a jsp/servlet container wheras the Apache is a full fledged web server. It is always good to have a robust webserver as the front door to your site. thanks ashish Chad Wray cc: Subject: Tomcat standalone vs Tomcat w/ Apache 07/30/2001 05:04 PM Please respond to tomcat-user Are there any advantages running Tomcat with Apache versus running Tomcat standalone and listening on port 80. I am running only *.jsp files on my webserver. Thanks in advance. -- Chad Wray __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
RE: Customize Url Rewriting + QUESTION
HI! Loïc I am also using the 3.2.3 version, I think i should have a look at the 4.0 version also. I think the approach that you are taking to handle the rewriting is a good one, though i have got a question on that how do you get to know that you have encountered a url, let me rephrase it. Like you have a hunk of a content in which there are a lot of tags and form acitons now how will your rewriter get triggered so that it rewrites the urls before it gets out to the user. I mean to ask how does your rewriter plugs into the whole scheme of things TAI ashish Loïc Lefèvre ia.com> cc: Subject: RE: Customize Url Rewriting + QUESTION 07/30/2001 12:13 PM Please respond to tomcat-user Yes you can, I'm developping a URLRewriter servlet because of the problemSSS I encounter using mod_rewrite alone :( I Load it on startup and manage myself the url rewriting by using response.sendRedirect or myMainApplicatioSerlvet.doGet(request,response) + some simple rules ;) Using servlet aliasing in tomcat is not as powerful as I expect. Does tomcat 3.3 or 4.0 use more regular expressions for this? (I use tomcat 3.2.3). Loïc Lefèvre -Message d'origine- De : Ashish Bajpai [mailto:[EMAIL PROTECTED]] Envoyé : lundi 30 juillet 2001 17:55 À : [EMAIL PROTECTED] Objet : RE: Customize Url Rewriting Thanks I will try it. In the mean while is it essential for me to use apache ? can i do something by only using Tomcat. thanks ashish Loïc Lefèvre ia.com> cc: Subject: RE: Customize Url Rewriting 07/30/2001 11:51 AM Please respond to tomcat-user The answer is YES, using mod_rewrite apache module. Add it to your or in mod_jk.conf if you don't use Virtual Host. example: RewriteEngine on RewriteLog /usr/local/tomcat/logs/rewrite.log RewriteLogLevel 9 RewriteCond %{REQUEST_URI} ^/(.*) [NC] RewriteRule ^/(.*) /index.jsp?$1 [PT] ;-) -Message d'origine- De : Ashish Bajpai [mailto:[EMAIL PROTECTED]] Envoyé : lundi 30 juillet 2001 17:38 À : [EMAIL PROTECTED] Objet : Customize Url Rewriting Hi! I was wondering if there is a way that one can add something to the url rewirting scheme. To make things clear what i want is this Can i plugin some code so that all the urls in the html/jsp pages for my site can have a content attirbute some thing of this sort. http://mysite.com/home/ugotit.jsp becomes http://mysite.com/index.jsp?jsessionid=..&content=ugotit.jsp. TAI ashish
RE: Customize Url Rewriting
Thanks I will try it. In the mean while is it essential for me to use apache ? can i do something by only using Tomcat. thanks ashish Loïc Lefèvre ia.com> cc: Subject: RE: Customize Url Rewriting 07/30/2001 11:51 AM Please respond to tomcat-user The answer is YES, using mod_rewrite apache module. Add it to your or in mod_jk.conf if you don't use Virtual Host. example: RewriteEngine on RewriteLog /usr/local/tomcat/logs/rewrite.log RewriteLogLevel 9 RewriteCond %{REQUEST_URI} ^/(.*) [NC] RewriteRule ^/(.*) /index.jsp?$1 [PT] ;-) -Message d'origine- De : Ashish Bajpai [mailto:[EMAIL PROTECTED]] Envoyé : lundi 30 juillet 2001 17:38 À : [EMAIL PROTECTED] Objet : Customize Url Rewriting Hi! I was wondering if there is a way that one can add something to the url rewirting scheme. To make things clear what i want is this Can i plugin some code so that all the urls in the html/jsp pages for my site can have a content attirbute some thing of this sort. http://mysite.com/home/ugotit.jsp becomes http://mysite.com/index.jsp?jsessionid=..&content=ugotit.jsp. TAI ashish
Customize Url Rewriting
Hi! I was wondering if there is a way that one can add something to the url rewirting scheme. To make things clear what i want is this Can i plugin some code so that all the urls in the html/jsp pages for my site can have a content attirbute some thing of this sort. http://mysite.com/home/ugotit.jsp becomes http://mysite.com/index.jsp?jsessionid=..&content=ugotit.jsp. TAI ashish