RE: welcome file in web.xml
I have not tried but it should work. let us know if tastes success ;-) -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: welcome file in web.xml hi, can i use this in web.xml welcome-file-list welcome-filejsp/login.do?action=initMethodamp;targetAction=directLogin/w elcome-file /welcome-file-list TIA --nagi Nagendra Kumar O V S Member Technical Staff Ikigo India Private Ltd. 470-B, Road No. 36, Jubilee Hills, Hyderabad 500033 Contact(O): 23544671 Cell: 98482-41789 IncrediMail - Email has finally evolved - Click Here - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: welcome file in web.xml
It doesnt work .. -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 11:35 AM To: Struts Users Mailing List; Nagendra Kumar O V S Subject: RE: welcome file in web.xml I have not tried but it should work. let us know if tastes success ;-) -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: welcome file in web.xml hi, can i use this in web.xml welcome-file-list welcome-filejsp/login.do?action=initMethodamp;targetAction=directLogin/w elcome-file /welcome-file-list TIA --nagi Nagendra Kumar O V S Member Technical Staff Ikigo India Private Ltd. 470-B, Road No. 36, Jubilee Hills, Hyderabad 500033 Contact(O): 23544671 Cell: 98482-41789 IncrediMail - Email has finally evolved - Click Here - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : welcome file in web.xml
Instead create a file index.html html titleRedirection/title header script parent.location = 'jsp/login.do?action="">'; /script /header /html in your web.xml, use welcome-file-list welcome-fileindex.html /welcome-file /welcome-file-list Hope this will help -Message d'origine- De: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Envoyé: mercredi 11 juin 2003 07:02 À: [EMAIL PROTECTED] Objet: welcome file in web.xml hi, can i use this in web.xml welcome-file-list welcome-filejsp/login.do?action=""> /welcome-file-list TIA --nagi Nagendra Kumar O V S Member Technical Staff Ikigo India Private Ltd. 470-B, Road No. 36, Jubilee Hills, Hyderabad 500033 Contact(O): 23544671 Cell: 98482-41789 IncrediMail - Email has finally evolved - Click Here - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: welcome file in web.xml
- use index.jsp - in index. jsp, [EMAIL PROTECTED] uri=/tags/struts-logic prefix=logic % logic:redirect href=mylocation/ -Original Message- From: Nimish Chourey , Tidel Park - Chennai [mailto:[EMAIL PROTECTED] Sent: June 11, 2003 2:29 AM To: Struts Users Mailing List Subject: RE: welcome file in web.xml It doesnt work .. -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 11:35 AM To: Struts Users Mailing List; Nagendra Kumar O V S Subject: RE: welcome file in web.xml I have not tried but it should work. let us know if tastes success ;-) -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: welcome file in web.xml hi, can i use this in web.xml welcome-file-list welcome-filejsp/login.do?action=initMethodamp;targetAction=directLogin/w elcome-file /welcome-file-list TIA --nagi Nagendra Kumar O V S Member Technical Staff Ikigo India Private Ltd. 470-B, Road No. 36, Jubilee Hills, Hyderabad 500033 Contact(O): 23544671 Cell: 98482-41789 IncrediMail - Email has finally evolved - Click Here - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: welcome file in web.xml
No ... this is not a proper way to do it. (because welcome-file list will be used for all the directories under the root directory of your context to locate startup file.) rather you can use index.jsp as your welcome-file and in that jsp file you can redirect your request to the URL given by you. for example: WEB.XML welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list index.jsp % response.sendRedirect(jsp/login.do?action=initMethodamp;targetAction=direc tLogin); % regards, Hitesh Dave -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 11, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: welcome file in web.xml hi, can i use this in web.xml welcome-file-list welcome-filejsp/login.do?action=initMethodamp;targetAction=directLogin/w elcome-file /welcome-file-list TIA --nagi Nagendra Kumar O V S Member Technical Staff Ikigo India Private Ltd. 470-B, Road No. 36, Jubilee Hills, Hyderabad 500033 Contact(O): 23544671 Cell: 98482-41789 IncrediMail - Email has finally evolved - Click Here
Re: welcome file in web.xml with pre-compiled jsp's? - tomcat bug!!
Just for your information - turns out this is a bug in Tomcat! I submitted it (Bug No 3309) and they propose to fix it, maybe by 3.3.1. At the moment, work around is to stick an uncompiled version in directory, or to use javascript to perform a forward in a regular html page to your pre-compiled jsp. Cheers, Dave
Re: welcome file in web.xml with pre-compiled jsp's?
Hello, I don't know if I understand your question completely, but are you saying that having a servlet (or the ActionServlet) as a welcome page would solve your problem? Or must it be a .jsp? I am using the ActionServlet to forward to my welcome page. I have index.do listed as my welcome file. To get this to work, I had to put a blank file called index.do in my WEB-INF directory. This seems to work fine in both resin and orion. Bill [EMAIL PROTECTED] wrote: Hi everyone, I am pre-compiling my jsp's in my struts web app, and everything works fine, except specifying the welcome file in the web.xml. If I do not pre-compile everything, having index.jsp as the first page works great. However, when I pre-compile index.jsp it doesn't work. Putting an uncompiled index.jsp back in the root directory makes it work again. I guess it is because I am now calling a servlet instead of page, but not sure how to get around this. Does anyone know if there is something special I have to do, or if there is anywhere else I can specify the first page as a servlet? Thanks, Dave Web.xml: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; !-- web.xml for use with PRE-COMPILED JSP's -- web-app !-- The Welcome File List -- welcome-file-list !-- call index.jsp as first page -- welcome-fileindex.jsp/welcome-file /welcome-file-list !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name !-- central Action Servlet Controller to use -- servlet-classbeans.AppController/servlet-class !-- Java class name of the application resources bundle base class -- init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param !-- Context-relative path to the XML resource containing our configuration information -- init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param !-- The debugging detail level for this servlet, which controls how much information is logged. [0] -- init-param param-namedebug/param-name param-value2/param-value /init-param !-- The debugging detail level for the Digester we utilize in initMapping(), which logs to System.out instead of the servlet log. [0] -- init-param param-namedetail/param-name param-value2/param-value /init-param load-on-startup2/load-on-startup /servlet !-- Catch any exceptions, and redirect to error page -- error-page exception-typejava.lang.Exception/exception-type location/error.jsp/location /error-page servlet servlet-name changeLogFileName /servlet-name servlet-class JspServ.changeLogFileName /servlet-class /servlet servlet servlet-name chooseDevice /servlet-name servlet-class JspServ.chooseDevice /servlet-class /servlet servlet servlet-name dataDir /servlet-name servlet-class JspServ.dataDir /servlet-class /servlet servlet servlet-name dataDirFrame /servlet-name servlet-class JspServ.dataDirFrame /servlet-class /servlet servlet servlet-name error /servlet-name servlet-class JspServ.error /servlet-class /servlet servlet servlet-name index /servlet-name servlet-class JspServ.index /servlet-class /servlet servlet servlet-name indexBar /servlet-name servlet-class JspServ.indexBar /servlet-class /servlet servlet servlet-name log /servlet-name servlet-class JspServ.log /servlet-class /servlet servlet servlet-name logFilter /servlet-name servlet-class JspServ.logFilter /servlet-class /servlet servlet servlet-name logFrame /servlet-name servlet-class JspServ.logFrame /servlet-class /servlet servlet servlet-name logging /servlet-name servlet-class JspServ.logging /servlet-class /servlet servlet servlet-name loggingFrame /servlet-name servlet-class JspServ.loggingFrame /servlet-class /servlet servlet servlet-name loggingSaveCancel /servlet-name servlet-class JspServ.loggingSaveCancel /servlet-class /servlet servlet servlet-name login /servlet-name servlet-class JspServ.login /servlet-class /servlet servlet servlet-name messages /servlet-name
Re: welcome file in web.xml with pre-compiled jsp's?
Hi Bill, I just want to have what works with uncompiled jsp's work with compiled jsps! My welcome page is called index.jsp, but when I compile it and put it in a jar file, it is not found for the first page (though I can call it directly). Is this some kind of bug? Cheers, Dave PS I can work around it with a index.htm as a welcome page that redirects you with javascript to index.jsp, but that's very clumsy! Bill Clinton [EMAIL PROTECTED] on 08/24/2001 10:37:46 AM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: Re: welcome file in web.xml with pre-compiled jsp's? Hello, I don't know if I understand your question completely, but are you saying that having a servlet (or the ActionServlet) as a welcome page would solve your problem? Or must it be a .jsp? I am using the ActionServlet to forward to my welcome page. I have index.do listed as my welcome file. To get this to work, I had to put a blank file called index.do in my WEB-INF directory. This seems to work fine in both resin and orion. Bill [EMAIL PROTECTED] wrote: Hi everyone, I am pre-compiling my jsp's in my struts web app, and everything works fine, except specifying the welcome file in the web.xml. If I do not pre-compile everything, having index.jsp as the first page works great. However, when I pre-compile index.jsp it doesn't work. Putting an uncompiled index.jsp back in the root directory makes it work again. I guess it is because I am now calling a servlet instead of page, but not sure how to get around this. Does anyone know if there is something special I have to do, or if there is anywhere else I can specify the first page as a servlet? Thanks, Dave Web.xml: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; !-- web.xml for use with PRE-COMPILED JSP's -- web-app !-- The Welcome File List -- welcome-file-list !-- call index.jsp as first page -- welcome-fileindex.jsp/welcome-file /welcome-file-list !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name !-- central Action Servlet Controller to use -- servlet-classbeans.AppController/servlet-class !-- Java class name of the application resources bundle base class -- init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param !-- Context-relative path to the XML resource containing our configuration information -- init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param !-- The debugging detail level for this servlet, which controls how much information is logged. [0] -- init-param param-namedebug/param-name param-value2/param-value /init-param !-- The debugging detail level for the Digester we utilize in initMapping(), which logs to System.out instead of the servlet log. [0] -- init-param param-namedetail/param-name param-value2/param-value /init-param load-on-startup2/load-on-startup /servlet !-- Catch any exceptions, and redirect to error page -- error-page exception-typejava.lang.Exception/exception-type location/error.jsp/location /error-page servlet servlet-name changeLogFileName /servlet-name servlet-class JspServ.changeLogFileName /servlet-class /servlet servlet servlet-name chooseDevice /servlet-name servlet-class JspServ.chooseDevice /servlet-class /servlet servlet servlet-name dataDir /servlet-name servlet-class JspServ.dataDir /servlet-class /servlet servlet servlet-name dataDirFrame /servlet-name servlet-class JspServ.dataDirFrame /servlet-class /servlet servlet servlet-name error /servlet-name servlet-class JspServ.error /servlet-class /servlet servlet servlet-name index /servlet-name servlet-class JspServ.index /servlet-class /servlet servlet servlet-name indexBar /servlet-name servlet-class JspServ.indexBar /servlet-class /servlet servlet servlet-name log /servlet-name servlet-class JspServ.log /servlet-class /servlet servlet servlet-name logFilter /servlet-name servlet-class JspServ.logFilter /servlet-class /servlet servlet servlet-name logFrame /servlet-name servlet-class JspServ.logFrame /servlet-class /servlet servlet servlet-name logging /servlet-name
Re: welcome file in web.xml with pre-compiled jsp's?
On Fri, 24 Aug 2001 12:40:04 -0400, [EMAIL PROTECTED] wrote: ||| PS I can work around it with a index.htm as a welcome page that redirects you ||| with javascript to index.jsp, but that's very clumsy! An ever-so-slightly-less-clumsy way to do this it to have an index.jsp that looks like this: jsp:forward page=/myaction.do/ This at least avoids the javascript and browser redirection. Joey -- Sun Certified Java2 Programmer -- My Pocket Smalltalk Stuff: www.joeygibson.com/st -- -- We thought about killin' him, but we kinda -- hated to go that far - Briscoe Darling
Re: welcome file in web.xml with pre-compiled jsp's?
Joey Gibson wrote: An ever-so-slightly-less-clumsy way to do this it to have an index.jsp that looks like this: jsp:forward page=/myaction.do/ But if index.jsp is precompiled (and removed) this won't function as a welcome file (i.e. something that will be shown if they request http://host/app/ ).
Re: welcome file in web.xml with pre-compiled jsp's?
On Fri, 24 Aug 2001 10:34:03 -0700, John Raley [EMAIL PROTECTED] wrote: ||| Joey Gibson wrote: ||| ||| |||An ever-so-slightly-less-clumsy way to do this it to have an index.jsp ||| that looks like this: ||| |||jsp:forward page=/myaction.do/ ||| ||| But if index.jsp is precompiled (and removed) this won't function as a ||| welcome file (i.e. something that will be shown if they request ||| http://host/app/ ). True. I've not done pre-compiled jsps before, but I would imagine you could just not precompile this one file? If not, then forget what I just said. Joey -- Sun Certified Java2 Programmer -- My Pocket Smalltalk Stuff: www.joeygibson.com/st -- -- We thought about killin' him, but we kinda -- hated to go that far - Briscoe Darling
Re: welcome file in web.xml with pre-compiled jsp's?
In any event, it's not a bug in Struts, so you might want to take it up with the support group for your container. [EMAIL PROTECTED] wrote: Hi Bill, I just want to have what works with uncompiled jsp's work with compiled jsps! My welcome page is called index.jsp, but when I compile it and put it in a jar file, it is not found for the first page (though I can call it directly). Is this some kind of bug? Cheers, Dave PS I can work around it with a index.htm as a welcome page that redirects you with javascript to index.jsp, but that's very clumsy!
Re: welcome file in web.xml with pre-compiled jsp's?
Yep, that's the conclusion I came to. I already posted to tomcat user mailing list, but no response. Dave Ted Husted [EMAIL PROTECTED] on 08/24/2001 04:07:41 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: David Hay/Lex/Lexmark) Subject: Re: welcome file in web.xml with pre-compiled jsp's? In any event, it's not a bug in Struts, so you might want to take it up with the support group for your container. [EMAIL PROTECTED] wrote: Hi Bill, I just want to have what works with uncompiled jsp's work with compiled jsps! My welcome page is called index.jsp, but when I compile it and put it in a jar file, it is not found for the first page (though I can call it directly). Is this some kind of bug? Cheers, Dave PS I can work around it with a index.htm as a welcome page that redirects you with javascript to index.jsp, but that's very clumsy!
Re: welcome file in web.xml with pre-compiled jsp's?
Anyone have a solution for this? I'm having the same problem. Thanks. [EMAIL PROTECTED] wrote: Hi everyone, I am pre-compiling my jsp's in my struts web app, and everything works fine, except specifying the welcome file in the web.xml. If I do not pre-compile everything, having index.jsp as the first page works great. However, when I pre-compile index.jsp it doesn't work. Putting an uncompiled index.jsp back in the root directory makes it work again. I guess it is because I am now calling a servlet instead of page, but not sure how to get around this. Does anyone know if there is something special I have to do, or if there is anywhere else I can specify the first page as a servlet? Thanks, Dave Web.xml: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; !-- web.xml for use with PRE-COMPILED JSP's -- web-app !-- The Welcome File List -- welcome-file-list !-- call index.jsp as first page -- welcome-fileindex.jsp/welcome-file /welcome-file-list !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name !-- central Action Servlet Controller to use -- servlet-classbeans.AppController/servlet-class !-- Java class name of the application resources bundle base class -- init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param !-- Context-relative path to the XML resource containing our configuration information -- init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param !-- The debugging detail level for this servlet, which controls how much information is logged. [0] -- init-param param-namedebug/param-name param-value2/param-value /init-param !-- The debugging detail level for the Digester we utilize in initMapping(), which logs to System.out instead of the servlet log. [0] -- init-param param-namedetail/param-name param-value2/param-value /init-param load-on-startup2/load-on-startup /servlet !-- Catch any exceptions, and redirect to error page -- error-page exception-typejava.lang.Exception/exception-type location/error.jsp/location /error-page servlet servlet-name changeLogFileName /servlet-name servlet-class JspServ.changeLogFileName /servlet-class /servlet servlet servlet-name chooseDevice /servlet-name servlet-class JspServ.chooseDevice /servlet-class /servlet servlet servlet-name dataDir /servlet-name servlet-class JspServ.dataDir /servlet-class /servlet servlet servlet-name dataDirFrame /servlet-name servlet-class JspServ.dataDirFrame /servlet-class /servlet servlet servlet-name error /servlet-name servlet-class JspServ.error /servlet-class /servlet servlet servlet-name index /servlet-name servlet-class JspServ.index /servlet-class /servlet servlet servlet-name indexBar /servlet-name servlet-class JspServ.indexBar /servlet-class /servlet servlet servlet-name log /servlet-name servlet-class JspServ.log /servlet-class /servlet servlet servlet-name logFilter /servlet-name servlet-class JspServ.logFilter /servlet-class /servlet servlet servlet-name logFrame /servlet-name servlet-class JspServ.logFrame /servlet-class /servlet servlet servlet-name logging /servlet-name servlet-class JspServ.logging /servlet-class /servlet servlet servlet-name loggingFrame /servlet-name servlet-class JspServ.loggingFrame /servlet-class /servlet servlet servlet-name loggingSaveCancel /servlet-name servlet-class JspServ.loggingSaveCancel /servlet-class /servlet servlet servlet-name login /servlet-name servlet-class JspServ.login /servlet-class /servlet servlet servlet-name messages /servlet-name servlet-class JspServ.messages /servlet-class /servlet servlet servlet-name parameters /servlet-name servlet-class JspServ.parameters /servlet-class /servlet servlet servlet-name parametersFrame /servlet-name servlet-class JspServ.parametersFrame /servlet-class /servlet servlet servlet-name parametersSaveCancel /servlet-name servlet-class JspServ.parametersSaveCancel /servlet-class /servlet servlet servlet-name serialNosFrame