you are welcome... glad I could help RE: problem with error page
I could tell by your description that the page that had the error had a committed buffer. comments below... Rick Hightower Developer Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm Struts/J2EE consulting -- http://www.arc-mind.com/consulting.htm#StrutsMentoring -Original Message- From: Bubeník Miroslav [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 2:23 AM To: Struts Users Mailing List Subject: RE: problem with error page Thak. It works. ** It works and now you want to know why. Hey it works! :) But why is this required? ** JSP are document centric The entire documented goes into the jspService method as out.print()'s calls. Every time you have any line, any characters (except directives) Therefore, it is easy to go over the buffer. As soon as you go over the buffer size, the buffer is committed, which means it goes to the browser. Where is the right limit of buffer size? *** The size that works. :) Rick Hightower Developer Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm Struts/J2EE consulting -- http://www.arc-mind.com/consulting.htm#StrutsMentoring -Original Message- From: Richard Hightower [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 10:06 AM To: Struts Users Mailing List Subject: RE: problem with error page Increase the size of the output buffer for the JSP (the non error one). -Original Message- From: Bubeník Miroslav [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 1:59 AM To: [EMAIL PROTECTED] Subject: problem with error page Hi all, I have problem with error page in JSP. In each JSP I have directive [EMAIL PROTECTED] errorPage=/spec/error.jsp %. In error.jsp I have [EMAIL PROTECTED] isErrorPage=true %. It is OK, I think. Problem is when error occures in JSP (jsp1), e.g. when is resource bundle missing. Jsp1 is rendered until error occurs and then is flow forwarded to error.jsp. Final result is, that source of final page contains half of origin page and then complete error page, e.g.: table cellpadding=0 cellspacing=0 id=tranTable tr t html - this is start of error page head titleApplication error/title How can I obtain only error.jsp into response? Current state is not required becouse of graphical layout. Thanx miro - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Each Time the Server Restarts, the Browser Does Not Display the Welcome Page.
While the server is running, I am able to be redirected to the welcome page after I click on any of the LOGOUT buttons in my application. And while I am at the welcome page, I can see http://localhost:8080/NameOfMyApplication/do/Main in the address bar. But, if I shut down the server and restart it, the browser shows a page with all the images that I defined in the tile (I use tile to show web pages) and a LOGOUT button. In the address bar, I see http://localhost:8080/NameOfMyApplication/do/Main;jsessionid=49I943J0FJQIQ205058 I must click on that LOGOUT button in order to go to my welcome page. That is to say, I do not directly get the welcome page each time the server restarts. I must have messed something up and would appreciate if anybody could help identifying the problem. In my web.xml, I have: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list and this index.jsp (shown below) is in my application root: %@ taglib uri=/tags/struts-logic prefix=logic % logic:redirect forward=welcome/ The mapping in the struts-config.xml is: forward name=welcome path=/do/Main/ I think the logout part would be more informative. The LOGOUT button is in a piece of tile: %@ taglib uri=/tags/struts-html prefix=html % /TABLE /TD /TR TRTDBR/TD/TR TR TD ALIGN=CENTER html:img page=/article/common/images/goldbrush.gif border=0 alt=[goldbrush]/ /TD /TR TRTDBR/TD/TR TR TD class=navbar html:link forward=exitLOGOUT/html:link /TD /TR /TABLE The mapping in the struts-config.xml is: forward name=exit path=/do/Logoff/ and action path=/Logoff type=org.apache.artimus.signoff.LogoffAction forward name=success redirect=true path=/index.jsp/ /action The code in the LogoffAction.java is shown below: // package and import statements are omitted public final class LogoffAction extends Action { public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { response.setContentType( text/html ); PrintWriter out = response.getWriter(); // Extract attributes we will need HttpSession session = request.getSession( false ); if (session != null) { session.invalidate(); } return (mapping.findForward( success )); } } // end LogoffAction __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: .do as welcome-file
Can some one tell me if the action main.do as defined as jsp:forward page=/main.do / be achieved without using the action form or its actually a forward thats an action class without use of form bean ? as i need to use the same for checking if the user is already logged in and if not then forward to the login page ? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 23 September 2003 15:16 To: Struts Users Mailing List Subject: Re: .do as welcome-file for security's sake I don't have any JSPs outside of WEB-INF, so this is the only solution, unless I wanted to use a http-redirect, which I don't. Adam On 09/23/2003 03:58 PM Menke, John wrote: I guess it's all the same as long as it works. You solution might be simpler actually no web.xml configs for the servlet -Original Message- From: Christian Bollmeyer [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:52 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I usually just put s/th like this in my index.jsp jsp:forward page=/main.do / and that's it. Whats the possible advantage of using a redirect or other solutions that also require a physical file in the root dir? -- Chris - Original Message - From: Menke, John [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 3:28 PM Subject: RE: .do as welcome-file Here's a trick to get an action to execute as home page in your webapp without having to do the jsp redirect. Put a file called webapp.launch in the root directory of your webapp Then configure these settings in your web.xml servlet servlet-nameredirector/servlet-name servlet-classyourpackage.Redirector/servlet-class /servlet servlet-mapping servlet-nameredirector/servlet-name url-pattern*.launch/url-pattern /servlet-mapping package yourpackage; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; /** * Redirector to start application on browse to root url * */ public class Redirector extends HttpServlet { /** * Stub method */ public void destroy() { } /** * Forward the user to start page of webapp * [EMAIL PROTECTED] request [EMAIL PROTECTED] response [EMAIL PROTECTED] ServletException [EMAIL PROTECTED] IOException */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.sendRedirect(home.do); } /** * Description of the Method */ public void init() throws ServletException { } } -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:05 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I can confirm that this hack works for tomcat. Create the dummy file start/start.do and tomcat will be happy, and you will still get the actual struts mapping. On 09/23/2003 02:06 PM Mainguy, Mike wrote: I haven't tried it, but I've been told that, in tomcat, if you create a file with that exact name it will work properly. Evidently you cannot specify a servlet path as a welcome file. -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: .do as welcome-file Does anyone has figured out how to do this? welcome-file-list welcome-file/start/start.do/welcome-file /welcome-file-list I am not able to make it work. TIA, Adolfo. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED
Re: .do as welcome-file
You can configure action mappings without form beans - just leave out the name attribute. However you would probably be better off using a filter to check for login status. Adam On 09/24/2003 10:19 AM [EMAIL PROTECTED] wrote: Can some one tell me if the action main.do as defined as jsp:forward page=/main.do / be achieved without using the action form or its actually a forward thats an action class without use of form bean ? as i need to use the same for checking if the user is already logged in and if not then forward to the login page ? -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: 23 September 2003 15:16 To: Struts Users Mailing List Subject: Re: .do as welcome-file for security's sake I don't have any JSPs outside of WEB-INF, so this is the only solution, unless I wanted to use a http-redirect, which I don't. Adam On 09/23/2003 03:58 PM Menke, John wrote: I guess it's all the same as long as it works. You solution might be simpler actually no web.xml configs for the servlet -Original Message- From: Christian Bollmeyer [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:52 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I usually just put s/th like this in my index.jsp jsp:forward page=/main.do / and that's it. Whats the possible advantage of using a redirect or other solutions that also require a physical file in the root dir? -- Chris - Original Message - From: Menke, John [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 3:28 PM Subject: RE: .do as welcome-file Here's a trick to get an action to execute as home page in your webapp without having to do the jsp redirect. Put a file called webapp.launch in the root directory of your webapp Then configure these settings in your web.xml servlet servlet-nameredirector/servlet-name servlet-classyourpackage.Redirector/servlet-class /servlet servlet-mapping servlet-nameredirector/servlet-name url-pattern*.launch/url-pattern /servlet-mapping package yourpackage; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; /** * Redirector to start application on browse to root url * */ public class Redirector extends HttpServlet { /** * Stub method */ public void destroy() { } /** * Forward the user to start page of webapp * [EMAIL PROTECTED] request [EMAIL PROTECTED] response [EMAIL PROTECTED] ServletException [EMAIL PROTECTED] IOException */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.sendRedirect(home.do); } /** * Description of the Method */ public void init() throws ServletException { } } -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:05 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I can confirm that this hack works for tomcat. Create the dummy file start/start.do and tomcat will be happy, and you will still get the actual struts mapping. On 09/23/2003 02:06 PM Mainguy, Mike wrote: I haven't tried it, but I've been told that, in tomcat, if you create a file with that exact name it will work properly. Evidently you cannot specify a servlet path as a welcome file. -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: .do as welcome-file Does anyone has figured out how to do this? welcome-file-list welcome-file/start/start.do/welcome-file /welcome-file-list I am not able to make it work. TIA, Adolfo. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
.do as welcome-file
Does anyone has figured out how to do this? welcome-file-list welcome-file/start/start.do/welcome-file /welcome-file-list I am not able to make it work. TIA, Adolfo. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: .do as welcome-file
Unfortunately, you cannot do that. You must specify a physical file. A standard technique is to make your welcome file a .jsp that redirects the user to your struts start page, in this case /start/start.do. You can probably find more info about this in the archives. Matt - Original Message - From: Adolfo Miguelez [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 6:59 AM Subject: .do as welcome-file Does anyone has figured out how to do this? welcome-file-list welcome-file/start/start.do/welcome-file /welcome-file-list I am not able to make it work. TIA, Adolfo. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - 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: .do as welcome-file
I haven't tried it, but I've been told that, in tomcat, if you create a file with that exact name it will work properly. Evidently you cannot specify a servlet path as a welcome file. -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: .do as welcome-file Does anyone has figured out how to do this? welcome-file-list welcome-file/start/start.do/welcome-file /welcome-file-list I am not able to make it work. TIA, Adolfo. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: .do as welcome-file
I can confirm that this hack works for tomcat. Create the dummy file start/start.do and tomcat will be happy, and you will still get the actual struts mapping. On 09/23/2003 02:06 PM Mainguy, Mike wrote: I haven't tried it, but I've been told that, in tomcat, if you create a file with that exact name it will work properly. Evidently you cannot specify a servlet path as a welcome file. -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: .do as welcome-file Does anyone has figured out how to do this? welcome-file-list welcome-file/start/start.do/welcome-file /welcome-file-list I am not able to make it work. TIA, Adolfo. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: .do as welcome-file
Here's a trick to get an action to execute as home page in your webapp without having to do the jsp redirect. Put a file called webapp.launch in the root directory of your webapp Then configure these settings in your web.xml servlet servlet-nameredirector/servlet-name servlet-classyourpackage.Redirector/servlet-class /servlet servlet-mapping servlet-nameredirector/servlet-name url-pattern*.launch/url-pattern /servlet-mapping package yourpackage; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; /** * Redirector to start application on browse to root url * */ public class Redirector extends HttpServlet { /** * Stub method */ public void destroy() { } /** * Forward the user to start page of webapp * [EMAIL PROTECTED] request [EMAIL PROTECTED] response [EMAIL PROTECTED] ServletException [EMAIL PROTECTED] IOException */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.sendRedirect(home.do); } /** * Description of the Method */ public void init() throws ServletException { } } -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:05 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I can confirm that this hack works for tomcat. Create the dummy file start/start.do and tomcat will be happy, and you will still get the actual struts mapping. On 09/23/2003 02:06 PM Mainguy, Mike wrote: I haven't tried it, but I've been told that, in tomcat, if you create a file with that exact name it will work properly. Evidently you cannot specify a servlet path as a welcome file. -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: .do as welcome-file Does anyone has figured out how to do this? welcome-file-list welcome-file/start/start.do/welcome-file /welcome-file-list I am not able to make it work. TIA, Adolfo. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - 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: .do as welcome-file
I usually just put s/th like this in my index.jsp jsp:forward page=/main.do / and that's it. Whats the possible advantage of using a redirect or other solutions that also require a physical file in the root dir? -- Chris - Original Message - From: Menke, John [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 3:28 PM Subject: RE: .do as welcome-file Here's a trick to get an action to execute as home page in your webapp without having to do the jsp redirect. Put a file called webapp.launch in the root directory of your webapp Then configure these settings in your web.xml servlet servlet-nameredirector/servlet-name servlet-classyourpackage.Redirector/servlet-class /servlet servlet-mapping servlet-nameredirector/servlet-name url-pattern*.launch/url-pattern /servlet-mapping package yourpackage; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; /** * Redirector to start application on browse to root url * */ public class Redirector extends HttpServlet { /** * Stub method */ public void destroy() { } /** * Forward the user to start page of webapp * [EMAIL PROTECTED] request [EMAIL PROTECTED] response [EMAIL PROTECTED] ServletException [EMAIL PROTECTED] IOException */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.sendRedirect(home.do); } /** * Description of the Method */ public void init() throws ServletException { } } -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:05 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I can confirm that this hack works for tomcat. Create the dummy file start/start.do and tomcat will be happy, and you will still get the actual struts mapping. On 09/23/2003 02:06 PM Mainguy, Mike wrote: I haven't tried it, but I've been told that, in tomcat, if you create a file with that exact name it will work properly. Evidently you cannot specify a servlet path as a welcome file. -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: .do as welcome-file Does anyone has figured out how to do this? welcome-file-list welcome-file/start/start.do/welcome-file /welcome-file-list I am not able to make it work. TIA, Adolfo. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: .do as welcome-file
I guess it's all the same as long as it works. You solution might be simpler actually no web.xml configs for the servlet -Original Message- From: Christian Bollmeyer [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:52 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I usually just put s/th like this in my index.jsp jsp:forward page=/main.do / and that's it. Whats the possible advantage of using a redirect or other solutions that also require a physical file in the root dir? -- Chris - Original Message - From: Menke, John [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 3:28 PM Subject: RE: .do as welcome-file Here's a trick to get an action to execute as home page in your webapp without having to do the jsp redirect. Put a file called webapp.launch in the root directory of your webapp Then configure these settings in your web.xml servlet servlet-nameredirector/servlet-name servlet-classyourpackage.Redirector/servlet-class /servlet servlet-mapping servlet-nameredirector/servlet-name url-pattern*.launch/url-pattern /servlet-mapping package yourpackage; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; /** * Redirector to start application on browse to root url * */ public class Redirector extends HttpServlet { /** * Stub method */ public void destroy() { } /** * Forward the user to start page of webapp * [EMAIL PROTECTED] request [EMAIL PROTECTED] response [EMAIL PROTECTED] ServletException [EMAIL PROTECTED] IOException */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.sendRedirect(home.do); } /** * Description of the Method */ public void init() throws ServletException { } } -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:05 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I can confirm that this hack works for tomcat. Create the dummy file start/start.do and tomcat will be happy, and you will still get the actual struts mapping. On 09/23/2003 02:06 PM Mainguy, Mike wrote: I haven't tried it, but I've been told that, in tomcat, if you create a file with that exact name it will work properly. Evidently you cannot specify a servlet path as a welcome file. -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: .do as welcome-file Does anyone has figured out how to do this? welcome-file-list welcome-file/start/start.do/welcome-file /welcome-file-list I am not able to make it work. TIA, Adolfo. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - 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] - 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: .do as welcome-file
We do this too. Works like a charm. -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:05 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I can confirm that this hack works for tomcat. Create the dummy file start/start.do and tomcat will be happy, and you will still get the actual struts mapping. On 09/23/2003 02:06 PM Mainguy, Mike wrote: I haven't tried it, but I've been told that, in tomcat, if you create a file with that exact name it will work properly. Evidently you cannot specify a servlet path as a welcome file. -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: .do as welcome-file Does anyone has figured out how to do this? welcome-file-list welcome-file/start/start.do/welcome-file /welcome-file-list I am not able to make it work. TIA, Adolfo. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] *** This electronic mail transmission contains confidential and/or privileged information intended only for the person(s) named. Any use, distribution, copying or disclosure by another person is strictly prohibited. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: .do as welcome-file
for security's sake I don't have any JSPs outside of WEB-INF, so this is the only solution, unless I wanted to use a http-redirect, which I don't. Adam On 09/23/2003 03:58 PM Menke, John wrote: I guess it's all the same as long as it works. You solution might be simpler actually no web.xml configs for the servlet -Original Message- From: Christian Bollmeyer [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:52 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I usually just put s/th like this in my index.jsp jsp:forward page=/main.do / and that's it. Whats the possible advantage of using a redirect or other solutions that also require a physical file in the root dir? -- Chris - Original Message - From: Menke, John [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 3:28 PM Subject: RE: .do as welcome-file Here's a trick to get an action to execute as home page in your webapp without having to do the jsp redirect. Put a file called webapp.launch in the root directory of your webapp Then configure these settings in your web.xml servlet servlet-nameredirector/servlet-name servlet-classyourpackage.Redirector/servlet-class /servlet servlet-mapping servlet-nameredirector/servlet-name url-pattern*.launch/url-pattern /servlet-mapping package yourpackage; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; /** * Redirector to start application on browse to root url * */ public class Redirector extends HttpServlet { /** * Stub method */ public void destroy() { } /** * Forward the user to start page of webapp * [EMAIL PROTECTED] request [EMAIL PROTECTED] response [EMAIL PROTECTED] ServletException [EMAIL PROTECTED] IOException */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.sendRedirect(home.do); } /** * Description of the Method */ public void init() throws ServletException { } } -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:05 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I can confirm that this hack works for tomcat. Create the dummy file start/start.do and tomcat will be happy, and you will still get the actual struts mapping. On 09/23/2003 02:06 PM Mainguy, Mike wrote: I haven't tried it, but I've been told that, in tomcat, if you create a file with that exact name it will work properly. Evidently you cannot specify a servlet path as a welcome file. -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: .do as welcome-file Does anyone has figured out how to do this? welcome-file-list welcome-file/start/start.do/welcome-file /welcome-file-list I am not able to make it work. TIA, Adolfo. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - 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] - 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] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail
RE: .do as welcome-file
This is actually the way I do it. -Original Message- From: Menke, John [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:58 AM To: 'Struts Users Mailing List' Subject: RE: .do as welcome-file I guess it's all the same as long as it works. You solution might be simpler actually no web.xml configs for the servlet -Original Message- From: Christian Bollmeyer [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:52 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I usually just put s/th like this in my index.jsp jsp:forward page=/main.do / and that's it. Whats the possible advantage of using a redirect or other solutions that also require a physical file in the root dir? -- Chris - Original Message - From: Menke, John [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 3:28 PM Subject: RE: .do as welcome-file Here's a trick to get an action to execute as home page in your webapp without having to do the jsp redirect. Put a file called webapp.launch in the root directory of your webapp Then configure these settings in your web.xml servlet servlet-nameredirector/servlet-name servlet-classyourpackage.Redirector/servlet-class /servlet servlet-mapping servlet-nameredirector/servlet-name url-pattern*.launch/url-pattern /servlet-mapping package yourpackage; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; /** * Redirector to start application on browse to root url * */ public class Redirector extends HttpServlet { /** * Stub method */ public void destroy() { } /** * Forward the user to start page of webapp * [EMAIL PROTECTED] request [EMAIL PROTECTED] response [EMAIL PROTECTED] ServletException [EMAIL PROTECTED] IOException */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.sendRedirect(home.do); } /** * Description of the Method */ public void init() throws ServletException { } } -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:05 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I can confirm that this hack works for tomcat. Create the dummy file start/start.do and tomcat will be happy, and you will still get the actual struts mapping. On 09/23/2003 02:06 PM Mainguy, Mike wrote: I haven't tried it, but I've been told that, in tomcat, if you create a file with that exact name it will work properly. Evidently you cannot specify a servlet path as a welcome file. -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: .do as welcome-file Does anyone has figured out how to do this? welcome-file-list welcome-file/start/start.do/welcome-file /welcome-file-list I am not able to make it work. TIA, Adolfo. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands
Re: .do as welcome-file
I like to do it with a filter. I can accomplish several things with it, tighter security, I prevent someone from calling any of my jsp's directly and I can then have the welcome page be an action. Ed Mainguy, Mike wrote: This is actually the way I do it. -Original Message- From: Menke, John [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:58 AM To: 'Struts Users Mailing List' Subject: RE: .do as welcome-file I guess it's all the same as long as it works. You solution might be simpler actually no web.xml configs for the servlet -Original Message- From: Christian Bollmeyer [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:52 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I usually just put s/th like this in my index.jsp jsp:forward page=/main.do / and that's it. Whats the possible advantage of using a redirect or other solutions that also require a physical file in the root dir? -- Chris - Original Message - From: Menke, John [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 3:28 PM Subject: RE: .do as welcome-file Here's a trick to get an action to execute as home page in your webapp without having to do the jsp redirect. Put a file called webapp.launch in the root directory of your webapp Then configure these settings in your web.xml servlet servlet-nameredirector/servlet-name servlet-classyourpackage.Redirector/servlet-class /servlet servlet-mapping servlet-nameredirector/servlet-name url-pattern*.launch/url-pattern /servlet-mapping package yourpackage; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; /** * Redirector to start application on browse to root url * */ public class Redirector extends HttpServlet { /** * Stub method */ public void destroy() { } /** * Forward the user to start page of webapp * [EMAIL PROTECTED] request [EMAIL PROTECTED] response [EMAIL PROTECTED] ServletException [EMAIL PROTECTED] IOException */ public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.sendRedirect(home.do); } /** * Description of the Method */ public void init() throws ServletException { } } -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:05 AM To: Struts Users Mailing List Subject: Re: .do as welcome-file I can confirm that this hack works for tomcat. Create the dummy file start/start.do and tomcat will be happy, and you will still get the actual struts mapping. On 09/23/2003 02:06 PM Mainguy, Mike wrote: I haven't tried it, but I've been told that, in tomcat, if you create a file with that exact name it will work properly. Evidently you cannot specify a servlet path as a welcome file. -Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 7:00 AM To: [EMAIL PROTECTED] Subject: .do as welcome-file Does anyone has figured out how to do this? welcome-file-list welcome-file/start/start.do/welcome-file /welcome-file-list I am not able to make it work. TIA, Adolfo. _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- struts 1.1 + tomcat 4.1.27 + java 1.4.2 Linux 2.4.20 RH9 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
Re: .do as welcome-file
It's a matter of personal preferences. Mine is to move all .jsp etc. files to a directory underneath /WEB-INF and make use of ForwardAction instead. I found this to be the easiest approach to enforce the 'Action First' rule, in particular when combined with Tiles. Of course, my 'default' start page is an Action, too (usually named main.do, start.do or the like). -- Chris - Original Message - From: Ed Robbins [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 4:57 PM Subject: Re: .do as welcome-file I like to do it with a filter. I can accomplish several things with it, tighter security, I prevent someone from calling any of my jsp's directly and I can then have the welcome page be an action. Ed Mainguy, Mike wrote: This is actually the way I do it. -Original Message- From: Menke, John [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2003 9:58 AM To: 'Struts Users Mailing List' Subject: RE: .do as welcome-file I guess it's all the same as long as it works. You solution might be simpler actually no web.xml configs for the servlet -- CLIP! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WELCOME to struts-user@jakarta.apache.org
Hi, I am using the following image tag in my JSP page (map.jsp) inside a form. html:input type=image src=mapSource property= / When I invoke the JSP page in a browser, the src should be populated with an URL for map image (http://../map1.jpg). But it does not. Please help. The form bean and action class and their mapping are shown below. MapForm Class = import org.apache.struts.action.ActionForm ; import com.esri.aims.mtier.io.ConnectionProxy; import com.esri.aims.mtier.model.map.Map; /** * @author adas * * To change the template for this generated type comment go to * WindowPreferencesJavaCode GenerationCode and Comments */ public class MapForm extends ActionForm { /* Map Source*/ private String mapSource; private Map map; public MapForm(){ try { ConnectionProxy mcp = new ConnectionProxy(); mcp.setConnectionType(ConnectionProxy.HTTP); mcp.setService(nmfs); mcp.setHost(geo); map = new Map(); map.initMap( mcp, 0, false,false, false, false); map.setBackground(220,165,63); } catch (Exception e){ } } public String getMapSource() { return (this.mapSource); } public void setMapSource() { this.mapSource = map.getMapOutput().getURL(); } } MapAction Class == import org.apache.struts.action.Action; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; import org.apache.struts.action.ActionForm; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * @author adas * * To change the template for this generated type comment go to * WindowPreferencesJavaCode GenerationCode and Comments */ public class MapAction extends Action { public ActionForward perform(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { MapForm f = (MapForm) form; // get the form bean // and take the last name value String mapSource = f.getMapSource(); // Forward control to the specified success target return (mapping.findForward(success)); } } struts-config = struts-config !-- == Form Bean Definitions === -- form-beans form-bean name=mapForm type=com.PSGS.MapForm/ /form-beans !-- == Action Mapping Definitions == -- action-mappings action path=/map type=com.PSGS.MapAction name=mapForm input=/map.jsp scope=request forward name=success path=/map.jsp/ forward name=failure path=/map.jsp/ /action /action-mappings /struts-config - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Missing images style sheet in welcome file
sriram wrote: Hi, In my web application (using struts), I have login.jsp as welcome file. I've defined the welcome file in web.xml as follows: welcome-file-list welcome-file/jsp/login.jsp/welcome-file /welcome-file-list And in login.jsp, I'm using relative path to load images and style sheet. My directory structure is as follows: ---web | |--css | |--jsp | |--images | |--WEB-INF login.jsp is located in /web/jsp folder. In login.jsp, I'm including style sheet as follows: link href=../css/style.css rel=stylesheet type=text/css ../css/style.css -- the style sheet is located in /web/css folder. Now, when I browse http://localhost:8080/myApp, login.jsp is displayed as welcome page, but the style sheet is not found. Same is the case with images on login.jsp. (this problem is occurring on Linux) But when I use http://localhost:8080/myApp/jsp/login.jsp, then it is displaying everything perfectly. And http://localhost:8080/myApp displays the login page correctly on Windows. Any idea what could be the problem? Sriram The browser makes the request for the images and stylesheet relative to the path it *thinks* the login.jsp is at. In this case it sees the login.jsp page as being: http://localhost:8080/myApp/login.jsp so when it tries to access the stylesheet it is looking for: http://localhost:8080/myApp/../css/style.css which becomes: http://localhost:8080/css/style.css and that doesn't exist. What you can do is use some global forwards in your struts-config.xml such as global-forwards forward name=baseStylesheet path=/css/style.css/ /global-forwards and in your login.jsp do this: link rel=stylesheet type=text/css href=html:rewrite forward='baseStylesheet' / / Then the rewrite should put in the path relative to the web application eg it will put in the path '/myApp/css/style.css' You can use the html:img tags for your images. -- Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Missing images style sheet in welcome file
Hi, In my web application (using struts), I have login.jsp as welcome file. I've defined the welcome file in web.xml as follows: welcome-file-list welcome-file/jsp/login.jsp/welcome-file /welcome-file-list And in login.jsp, I'm using relative path to load images and style sheet. My directory structure is as follows: ---web | |--css | |--jsp | |--images | |--WEB-INF login.jsp is located in /web/jsp folder. In login.jsp, I'm including style sheet as follows: link href=../css/style.css rel=stylesheet type=text/css ../css/style.css -- the style sheet is located in /web/css folder. Now, when I browse http://localhost:8080/myApp, login.jsp is displayed as welcome page, but the style sheet is not found. Same is the case with images on login.jsp. (this problem is occurring on Linux) But when I use http://localhost:8080/myApp/jsp/login.jsp, then it is displaying everything perfectly. And http://localhost:8080/myApp displays the login page correctly on Windows. Any idea what could be the problem? Sriram
RE: Missing images style sheet in welcome file
Nagendra, After posting the question, I realized that I haven't included html:base/ in .jsp file. I included that and it worked fine. Thanks. Sriram -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 12:53 PM To: [EMAIL PROTECTED] Subject: Re: Missing images style sheet in welcome file hi, have u looked in to the the final url after the page is rendered.?? have u tried using the html:base/ in ur jsp?? -- nagi ---Original Message--- From: Struts Users Mailing mailto:[EMAIL PROTECTED] List Date: Monday, August 25, 2003 12:12:56 PM To: 'Struts Users Mailing mailto:[EMAIL PROTECTED] List' Subject: Missing images style sheet in welcome file Hi, In my web application (using struts), I have login.jsp as welcome file. I've defined the welcome file in web.xml as follows: welcome-file-list welcome-file/jsp/login.jsp/welcome-file /welcome-file-list And in login.jsp, I'm using relative path to load images and style sheet. My directory structure is as follows: ---web | |--css | |--jsp | |--images | |--WEB-INF login.jsp is located in /web/jsp folder. In login.jsp, I'm including style sheet as follows: link href=../css/style.css rel=stylesheet type=text/css ../css/style.css -- the style sheet is located in /web/css folder. Now, when I browse http://localhost:8080/myApp, login.jsp is displayed as welcome page, but the style sheet is not found. Same is the case with images on login.jsp. (this problem is occurring on Linux) But when I use http://localhost:8080/myApp/jsp/login.jsp, http://localhost:8080/myApp/jsp/login.jsp, then it is displaying everything perfectly. And http://localhost:8080/myApp displays the login page correctly on Windows. Any idea what could be the problem? Sriram http://www.incredimail.com/redir.asp?ad_id=309lang=9 IncrediMail - Email has finally evolved - http://www.incredimail.com/redir.asp?ad_id=309lang=9 Click Here
RE: Missing images style sheet in welcome file
I forgot to include html:base/ in login.jsp. I've included this and it worked! -Original Message- From: sriram [mailto:[EMAIL PROTECTED] Sent: Monday, August 25, 2003 11:19 AM To: 'Struts Users Mailing List' Subject: Missing images style sheet in welcome file Hi, In my web application (using struts), I have login.jsp as welcome file. I've defined the welcome file in web.xml as follows: welcome-file-list welcome-file/jsp/login.jsp/welcome-file /welcome-file-list And in login.jsp, I'm using relative path to load images and style sheet. My directory structure is as follows: ---web | |--css | |--jsp | |--images | |--WEB-INF login.jsp is located in /web/jsp folder. In login.jsp, I'm including style sheet as follows: link href=../css/style.css rel=stylesheet type=text/css ../css/style.css -- the style sheet is located in /web/css folder. Now, when I browse http://localhost:8080/myApp, login.jsp is displayed as welcome page, but the style sheet is not found. Same is the case with images on login.jsp. (this problem is occurring on Linux) But when I use http://localhost:8080/myApp/jsp/login.jsp, then it is displaying everything perfectly. And http://localhost:8080/myApp displays the login page correctly on Windows. Any idea what could be the problem? Sriram
Setting a Welcome File + Tiles + PreCompiled JSP's
I'm using tiles and i know i can't set the welcomefile/ attribute in web.xml to a tile definition or a struts action url. I'm also precompiling all my JSP's so i can't assign it to a JSP... i was thinking about assign it to a html file and then onLoad i could redirect to my logon action url... to do this i'd have to hard code the ipaddress and port number into my url so i don't really want to do that. Any ideas how i might do this? _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Setting a Welcome File + Tiles + PreCompiled JSP's
Use the HTML META ... tag? HTML HEAD META HTTP-EQUIV=Refresh CONTENT=0;URL=/myapp/do/myaction /HEAD BODY/BODY /HTML Or, alternatively if you want to use window.onLoad - checkout the source on IE's error page that does this pretty effectively by extracting the server information from document.location.href - full source attached below (you'll need to identify the appropriate bits): !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2 Final//EN html head style a:link {font:8pt/11pt verdana; color:red} a:visited {font:8pt/11pt verdana; color:#4e4e4e} /style meta HTTP-EQUIV=Content-Type Content=text-html; charset=Windows-1252 titleHTTP 404 Not Found/title /head script function Homepage(){ // in real bits, urls get returned to our script like this: // res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm //For testing use DocURL = res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm; DocURL = document.location.href; //this is where the http or https will be, as found by searching for :// but skipping the res:// protocolIndex=DocURL.indexOf(://,4); //this finds the ending slash for the domain server serverIndex=DocURL.indexOf(/,protocolIndex + 3); //for the href, we need a valid URL to the domain. We search for the # symbol to find the begining //of the true URL, and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker. //urlresult=DocURL.substring(protocolIndex - 4,serverIndex); BeginURL=DocURL.indexOf(#,1) + 1; if (protocolIndex - BeginURL 7) urlresult= urlresult=DocURL.substring(BeginURL,serverIndex); //for display, we need to skip after http://, and go to the next slash displayresult=DocURL.substring(protocolIndex + 3 ,serverIndex); // Security precaution: must filter out urlResult and displayresult forbiddenChars = new RegExp([\'\], g); // Global search/replace urlresult = urlresult.replace(forbiddenChars, ); displayresult = displayresult.replace(forbiddenChars, ); document.write('A target=_top HREF=' + urlresult + '' + displayresult + /a); } /script body bgcolor=white object id=saOC CLASSID='clsid:B45FF030-4447-11D2-85DE-00C04FA35C89' HEIGHT=0 width=0/object table width=400 cellpadding=3 cellspacing=5 tr td id=tableProps valign=top align=leftimg id=pagerrorImg SRC=pagerror.gif width=25 height=33/td td id=tableProps2 align=left valign=middle width=360h1 id=errortype style=COLOR: black; FONT: 13pt/15pt verdanaspan id=errorTextThe page cannot be found/span/h1 /td /tr tr td id=tablePropsWidth width=400 colspan=2font style=COLOR: black; FONT: 8pt/11pt verdanaThe page you are looking for might have been removed, had its name changed, or is temporarily unavailable./font/td /tr tr td id=tablePropsWidth2 width=400 colspan=2font id=LID1 style=COLOR: black; FONT: 8pt/11pt verdanahr color=#C0C0C0 noshade p id=LID2Please try the following:/pul li id=list1If you typed the page address in the Address bar, make sure that it is spelled correctly.br /li li id=list2Open the script Homepage(); /script home page, and then look for links to the information you want. /li li id=list3Click the a href=javascript:history.back(1)img valign=bottom border=0 src=back.gif Back/a button to try another link. /li li ID=list4Click a onclick=saOC.NavigateToDefaultSearch();event.returnValue=false href=img border=0 src=search.gif width=16 height=16 alt=search.gif (114 bytes) align=center Search/a to look for information on the Internet. /li /ul pbr /p h2 id=ietext style=font:8pt/11pt verdana; color:blackHTTP 404 - File not foundbr Internet Explorer BR /h2 /font/td /tr /table /body /html -Original Message- From: Pat Quinn [mailto:[EMAIL PROTECTED] Sent: 21 August 2003 12:17 To: [EMAIL PROTECTED] Subject: Setting a Welcome File + Tiles + PreCompiled JSP's I'm using tiles and i know i can't set the welcomefile/ attribute in web.xml to a tile definition or a struts action url. I'm also precompiling all my JSP's so i can't assign it to a JSP... i was thinking about assign it to a html file and then onLoad i could redirect to my logon action url... to do this i'd have to hard code the ipaddress and port number into my url so i don't really want to do that. Any ideas how i might do this? _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com
Re: Setting a Welcome File + Tiles + PreCompiled JSP's
I use a filter to catch requests that map to / and request my Homepage.do action instead. So I don't have any index.html or index.jsp page at all. I think the 2.3 spec wants some sort of file to map to. I did hear of one person who set the welcome-file to 'index.do' and put a dummy index.do file in there (with a note that it was a dummy and not to delete). The web container was happy because there was a file there called 'index.do'. Since Struts is mapped to process *.do, the person defined an action called 'index' and struts could do its normal processing, forwarding off to the .jsp in /WEB-INF/. I don't know if that is portable amongst containers though. Pat Quinn wrote: I'm using tiles and i know i can't set the welcomefile/ attribute in web.xml to a tile definition or a struts action url. I'm also precompiling all my JSP's so i can't assign it to a JSP... i was thinking about assign it to a html file and then onLoad i could redirect to my logon action url... to do this i'd have to hard code the ipaddress and port number into my url so i don't really want to do that. Any ideas how i might do this? _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting a Welcome File + Tiles + PreCompiled JSP's
I just have an index.jsp that I still include in the war, even though all my JSPs are pre-compiled. I'm not actually sure if the file version or the pre-compiled version gets called. Doesn't really matter I guess.And I use a META refresh to redirect to my main page: meta http-equiv=Refresh content=0;url=html:rewrite page=/main.do / K.C. Pat Quinn wrote: I'm using tiles and i know i can't set the welcomefile/ attribute in web.xml to a tile definition or a struts action url. I'm also precompiling all my JSP's so i can't assign it to a JSP... i was thinking about assign it to a html file and then onLoad i could redirect to my logon action url... to do this i'd have to hard code the ipaddress and port number into my url so i don't really want to do that. Any ideas how i might do this? _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - 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: Setting a Welcome File + Tiles + PreCompiled JSP's
I remember reading something when we first started building our STRUTS application that said that you had to have a physical file outside the WEB-INF directory representing your welcomefile. All of our JSPs reside in a subdirectory under WEB-INF, so we put a blank file named index.do in the root directory and it works like a charm (no redirects needed). Kevin -Original Message- From: K.C. Baltz [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2003 3:14 PM To: Struts Users Mailing List Subject: Re: Setting a Welcome File + Tiles + PreCompiled JSP's I just have an index.jsp that I still include in the war, even though all my JSPs are pre-compiled. I'm not actually sure if the file version or the pre-compiled version gets called. Doesn't really matter I guess.And I use a META refresh to redirect to my main page: meta http-equiv=Refresh content=0;url=html:rewrite page=/main.do / K.C. Pat Quinn wrote: I'm using tiles and i know i can't set the welcomefile/ attribute in web.xml to a tile definition or a struts action url. I'm also precompiling all my JSP's so i can't assign it to a JSP... i was thinking about assign it to a html file and then onLoad i could redirect to my logon action url... to do this i'd have to hard code the ipaddress and port number into my url so i don't really want to do that. Any ideas how i might do this? _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus - 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] *** This electronic mail transmission contains confidential and/or privileged information intended only for the person(s) named. Any use, distribution, copying or disclosure by another person is strictly prohibited. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Action in Welcome File List
This is my welcome.jsp file. %@ page contentType=text/html; charset=UTF-8 % %@ page language=java % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html:html locale=true head titleWELCOME TO STRUTS/title /head body logic:redirect href=http://localhost:8181/SPWeb/showlogon.do; / /body /html:html And it works, no problem as yet Regards, Shashank -Original Message- From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 4:17 PM To: 'Struts Users Mailing List' Subject: RE: Struts Action in Welcome File List But you can redirect using logic redirect tag ? Mohan -Original Message- From: Suzette Daniel [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 8:03 PM To: 'Struts Users Mailing List' Subject: RE: Struts Action in Welcome File List Nope this is not supported, the web.xml must map to a file. -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:51 AM To: 'Struts Users Mailing List' Subject: RE: Struts Action in Welcome File List Can't you just do this: welcome-file-list welcome-file/PMTAction.do/welcome-file /welcome-file-list I do it with JRun4. Not sure if all containers will do an action instead of a JSP. -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 12:41 AM To: Struts Users Mailing List Subject: Re: Struts Action in Welcome File List Hmmm...tried that but still blanks out after a while...I'm wondering if there's an issue with my use of sessions...would that come into play here? Jon On Tuesday, July 29, 2003, at 06:56 PM, John Cavacas wrote: Try, logic:redirect forward=HOME/ In your index.jsp page. Also, look at sruts-blank.war example application for an easy to understand example of this. John -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM To: [EMAIL PROTECTED] Subject: Struts Action in Welcome File List Hi, I've been using Struts now for some time and enjoy it immensely! However, I've recently run into a problem that has me perplexed. Usually I can figure these things out and not bother the mail lists but this one requires your help ;-) I've pulled some info from the Programming Jakarta Struts book by Chuck Cavaness on how to use a Struts action in the welcome file list of a web.xml file. Based on the instructions in the book I have the following welcome file entry in my web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list and the following code in my index.jsp: %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body logic:forward name=HOME/ /body /html and the following entry in my struts-config.xml file: global-forwards forward name=HOME path=PMTAction.do redirect=false //global-forwards So, when I first fire up Tomcat everything forwards fine but after a while, if I hit the following URL: http://localhost:8080/pmt/index.jsp I get a blank page. No forwarding. Nothing. I've tried every combo possible here, including using logic:redirect/ but eventually it stops forwarding. Am I doing something subtly wrong or drastically wrong here? Thanks in advance, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended for the use of the individual(s) or entity it was addressed to and may contain confidential and/or privileged information. If the reader of this transmission is not the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited. If you receive this communication in error, please notify the sender immediately and delete this communication from your system(s) to which it was sent and/or replicated to. (c) 2003 Sapiens Americas Corp. - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Action in Welcome File List
But you can redirect using logic redirect tag ? Mohan -Original Message- From: Suzette Daniel [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 8:03 PM To: 'Struts Users Mailing List' Subject: RE: Struts Action in Welcome File List Nope this is not supported, the web.xml must map to a file. -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:51 AM To: 'Struts Users Mailing List' Subject: RE: Struts Action in Welcome File List Can't you just do this: welcome-file-list welcome-file/PMTAction.do/welcome-file /welcome-file-list I do it with JRun4. Not sure if all containers will do an action instead of a JSP. -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 12:41 AM To: Struts Users Mailing List Subject: Re: Struts Action in Welcome File List Hmmm...tried that but still blanks out after a while...I'm wondering if there's an issue with my use of sessions...would that come into play here? Jon On Tuesday, July 29, 2003, at 06:56 PM, John Cavacas wrote: Try, logic:redirect forward=HOME/ In your index.jsp page. Also, look at sruts-blank.war example application for an easy to understand example of this. John -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM To: [EMAIL PROTECTED] Subject: Struts Action in Welcome File List Hi, I've been using Struts now for some time and enjoy it immensely! However, I've recently run into a problem that has me perplexed. Usually I can figure these things out and not bother the mail lists but this one requires your help ;-) I've pulled some info from the Programming Jakarta Struts book by Chuck Cavaness on how to use a Struts action in the welcome file list of a web.xml file. Based on the instructions in the book I have the following welcome file entry in my web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list and the following code in my index.jsp: %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body logic:forward name=HOME/ /body /html and the following entry in my struts-config.xml file: global-forwards forward name=HOME path=PMTAction.do redirect=false //global-forwards So, when I first fire up Tomcat everything forwards fine but after a while, if I hit the following URL: http://localhost:8080/pmt/index.jsp I get a blank page. No forwarding. Nothing. I've tried every combo possible here, including using logic:redirect/ but eventually it stops forwarding. Am I doing something subtly wrong or drastically wrong here? Thanks in advance, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended for the use of the individual(s) or entity it was addressed to and may contain confidential and/or privileged information. If the reader of this transmission is not the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited. If you receive this communication in error, please notify the sender immediately and delete this communication from your system(s) to which it was sent and/or replicated to. (c) 2003 Sapiens Americas Corp. - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Action in Welcome File List
I think I had my slashes mixed upI just copied what was in the struts-blank project and it seems to be working just fine. Thanks all for helping me sort out the confusion! Jon On Wednesday, July 30, 2003, at 06:50 PM, John Cavacas wrote: Can you deploy and run correctly struts-blank.war? If you can bring up http://localhost:8080/struts-blank/ then its not a Struts problem. Check the slash on your action. If your action is defined like so: action path=/Someaction... Be sure in your forward you have forward name=HOME path=/Someaction.do/ Specifying forward name=HOME path=/Someaction/ should also work. I think... John This communication is intended for the use of the individual(s) or entity it was addressed to and may contain confidential and/or privileged information. If the reader of this transmission is not the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited. If you receive this communication in error, please notify the sender immediately and delete this communication from your system(s) to which it was sent and/or replicated to. (c) 2003 Sapiens Americas Corp. - 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: Struts Action in Welcome File List
I got this problem sometime back.. But apparently it was a problem with one of the html tags- it wasn't properly closed. To detect it what I did was to Get a view Source on the blank page. Saved it as a .XML file. Opened the XML file in the browser. It showed exactly where the tag wasn't closed.. Swaroop -Original Message- From: message message [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 11:07 AM To: [EMAIL PROTECTED] Subject: Re: Struts Action in Welcome File List Actually this blank page phenomenon happend to me a long time ago. I remember taking out the line content type. That was the only change I made and it worked. From: Jon Wynacht [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Struts Action in Welcome File List Date: Tue, 29 Jul 2003 22:21:25 -0700 Didn't work for me. I'm stumped ;-( Jon On Tuesday, July 29, 2003, at 09:55 PM, Dan Tran wrote: This works for me %@ page language=java contentType=text/html;charset=utf-8 % % response.sendRedirect(./PMTAction.do); % -D - Original Message - From: Jon Wynacht [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM Subject: Re: Struts Action in Welcome File List Hmmm...tried that but still blanks out after a while...I'm wondering if there's an issue with my use of sessions...would that come into play here? Jon On Tuesday, July 29, 2003, at 06:56 PM, John Cavacas wrote: Try, logic:redirect forward=HOME/ In your index.jsp page. Also, look at sruts-blank.war example application for an easy to understand example of this. John -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM To: [EMAIL PROTECTED] Subject: Struts Action in Welcome File List Hi, I've been using Struts now for some time and enjoy it immensely! However, I've recently run into a problem that has me perplexed. Usually I can figure these things out and not bother the mail lists but this one requires your help ;-) I've pulled some info from the Programming Jakarta Struts book by Chuck Cavaness on how to use a Struts action in the welcome file list of a web.xml file. Based on the instructions in the book I have the following welcome file entry in my web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list and the following code in my index.jsp: %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body logic:forward name=HOME/ /body /html and the following entry in my struts-config.xml file: global-forwards forward name=HOME path=PMTAction.do redirect=false //global-forwards So, when I first fire up Tomcat everything forwards fine but after a while, if I hit the following URL: http://localhost:8080/pmt/index.jsp I get a blank page. No forwarding. Nothing. I've tried every combo possible here, including using logic:redirect/ but eventually it stops forwarding. Am I doing something subtly wrong or drastically wrong here? Thanks in advance, Jon --- - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended for the use of the individual(s) or entity it was addressed to and may contain confidential and/or privileged information. If the reader of this transmission is not the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited. If you receive this communication in error, please notify the sender immediately and delete this communication from your system(s) to which it was sent and/or replicated to. (c) 2003 Sapiens Americas Corp. - 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] - 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] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - 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: Struts Action in Welcome File List
Can't you just do this: welcome-file-list welcome-file/PMTAction.do/welcome-file /welcome-file-list I do it with JRun4. Not sure if all containers will do an action instead of a JSP. -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 12:41 AM To: Struts Users Mailing List Subject: Re: Struts Action in Welcome File List Hmmm...tried that but still blanks out after a while...I'm wondering if there's an issue with my use of sessions...would that come into play here? Jon On Tuesday, July 29, 2003, at 06:56 PM, John Cavacas wrote: Try, logic:redirect forward=HOME/ In your index.jsp page. Also, look at sruts-blank.war example application for an easy to understand example of this. John -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM To: [EMAIL PROTECTED] Subject: Struts Action in Welcome File List Hi, I've been using Struts now for some time and enjoy it immensely! However, I've recently run into a problem that has me perplexed. Usually I can figure these things out and not bother the mail lists but this one requires your help ;-) I've pulled some info from the Programming Jakarta Struts book by Chuck Cavaness on how to use a Struts action in the welcome file list of a web.xml file. Based on the instructions in the book I have the following welcome file entry in my web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list and the following code in my index.jsp: %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body logic:forward name=HOME/ /body /html and the following entry in my struts-config.xml file: global-forwards forward name=HOME path=PMTAction.do redirect=false //global-forwards So, when I first fire up Tomcat everything forwards fine but after a while, if I hit the following URL: http://localhost:8080/pmt/index.jsp I get a blank page. No forwarding. Nothing. I've tried every combo possible here, including using logic:redirect/ but eventually it stops forwarding. Am I doing something subtly wrong or drastically wrong here? Thanks in advance, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended for the use of the individual(s) or entity it was addressed to and may contain confidential and/or privileged information. If the reader of this transmission is not the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited. If you receive this communication in error, please notify the sender immediately and delete this communication from your system(s) to which it was sent and/or replicated to. (c) 2003 Sapiens Americas Corp. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Action in Welcome File List
Nope this is not supported, the web.xml must map to a file. -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 9:51 AM To: 'Struts Users Mailing List' Subject: RE: Struts Action in Welcome File List Can't you just do this: welcome-file-list welcome-file/PMTAction.do/welcome-file /welcome-file-list I do it with JRun4. Not sure if all containers will do an action instead of a JSP. -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 12:41 AM To: Struts Users Mailing List Subject: Re: Struts Action in Welcome File List Hmmm...tried that but still blanks out after a while...I'm wondering if there's an issue with my use of sessions...would that come into play here? Jon On Tuesday, July 29, 2003, at 06:56 PM, John Cavacas wrote: Try, logic:redirect forward=HOME/ In your index.jsp page. Also, look at sruts-blank.war example application for an easy to understand example of this. John -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM To: [EMAIL PROTECTED] Subject: Struts Action in Welcome File List Hi, I've been using Struts now for some time and enjoy it immensely! However, I've recently run into a problem that has me perplexed. Usually I can figure these things out and not bother the mail lists but this one requires your help ;-) I've pulled some info from the Programming Jakarta Struts book by Chuck Cavaness on how to use a Struts action in the welcome file list of a web.xml file. Based on the instructions in the book I have the following welcome file entry in my web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list and the following code in my index.jsp: %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body logic:forward name=HOME/ /body /html and the following entry in my struts-config.xml file: global-forwards forward name=HOME path=PMTAction.do redirect=false //global-forwards So, when I first fire up Tomcat everything forwards fine but after a while, if I hit the following URL: http://localhost:8080/pmt/index.jsp I get a blank page. No forwarding. Nothing. I've tried every combo possible here, including using logic:redirect/ but eventually it stops forwarding. Am I doing something subtly wrong or drastically wrong here? Thanks in advance, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended for the use of the individual(s) or entity it was addressed to and may contain confidential and/or privileged information. If the reader of this transmission is not the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited. If you receive this communication in error, please notify the sender immediately and delete this communication from your system(s) to which it was sent and/or replicated to. (c) 2003 Sapiens Americas Corp. - 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] - 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: Struts Action in Welcome File List
Well, I haven't tried this, but I did notice someone a while ago saying that this DOES work, as long as you use a small trick. The welcome-file does have to specify a file that exists, but that doesn't mean the web container will actually SERVE that file. The person who mentioned this said that they just created the named file and gave it arbitrary contents (like This will never be served to the client). The web container then passed the URL to the controller, which forwarded to the appropriate action. -Original Message- From: Suzette Daniel [mailto:[EMAIL PROTECTED] Nope this is not supported, the web.xml must map to a file. -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Can't you just do this: welcome-file-list welcome-file/PMTAction.do/welcome-file /welcome-file-list I do it with JRun4. Not sure if all containers will do an action instead of a JSP. -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Hmmm...tried that but still blanks out after a while...I'm wondering if there's an issue with my use of sessions...would that come into play here? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Action in Welcome File List
Are you talking about a person using the same container as you? Because I know with JRun there isn't any work arounds needed. So I know that a physical file does not have to exist for every container. I'm surprised JRun worked like this since it caused me a problem with SecurityFilter that Tomcat users don't see. You just never know what will work in one container compared to another. You know they should really think about standardizing these things, with like, some sort of spec :-) -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2003 3:26 PM To: Struts Users Mailing List Subject: RE: Struts Action in Welcome File List Well, I haven't tried this, but I did notice someone a while ago saying that this DOES work, as long as you use a small trick. The welcome-file does have to specify a file that exists, but that doesn't mean the web container will actually SERVE that file. The person who mentioned this said that they just created the named file and gave it arbitrary contents (like This will never be served to the client). The web container then passed the URL to the controller, which forwarded to the appropriate action. -Original Message- From: Suzette Daniel [mailto:[EMAIL PROTECTED] Nope this is not supported, the web.xml must map to a file. -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Can't you just do this: welcome-file-list welcome-file/PMTAction.do/welcome-file /welcome-file-list I do it with JRun4. Not sure if all containers will do an action instead of a JSP. -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Hmmm...tried that but still blanks out after a while...I'm wondering if there's an issue with my use of sessions...would that come into play here? - 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: Struts Action in Welcome File List
Can you deploy and run correctly struts-blank.war? If you can bring up http://localhost:8080/struts-blank/ then its not a Struts problem. Check the slash on your action. If your action is defined like so: action path=/Someaction... Be sure in your forward you have forward name=HOME path=/Someaction.do/ Specifying forward name=HOME path=/Someaction/ should also work. I think... John This communication is intended for the use of the individual(s) or entity it was addressed to and may contain confidential and/or privileged information. If the reader of this transmission is not the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited. If you receive this communication in error, please notify the sender immediately and delete this communication from your system(s) to which it was sent and/or replicated to. (c) 2003 Sapiens Americas Corp. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts Action in Welcome File List
Hi, I've been using Struts now for some time and enjoy it immensely! However, I've recently run into a problem that has me perplexed. Usually I can figure these things out and not bother the mail lists but this one requires your help ;-) I've pulled some info from the Programming Jakarta Struts book by Chuck Cavaness on how to use a Struts action in the welcome file list of a web.xml file. Based on the instructions in the book I have the following welcome file entry in my web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list and the following code in my index.jsp: %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body logic:forward name=HOME/ /body /html and the following entry in my struts-config.xml file: global-forwards forward name=HOME path=PMTAction.do redirect=false //global-forwards So, when I first fire up Tomcat everything forwards fine but after a while, if I hit the following URL: http://localhost:8080/pmt/index.jsp I get a blank page. No forwarding. Nothing. I've tried every combo possible here, including using logic:redirect/ but eventually it stops forwarding. Am I doing something subtly wrong or drastically wrong here? Thanks in advance, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Action in Welcome File List
Try, logic:redirect forward=HOME/ In your index.jsp page. Also, look at sruts-blank.war example application for an easy to understand example of this. John -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM To: [EMAIL PROTECTED] Subject: Struts Action in Welcome File List Hi, I've been using Struts now for some time and enjoy it immensely! However, I've recently run into a problem that has me perplexed. Usually I can figure these things out and not bother the mail lists but this one requires your help ;-) I've pulled some info from the Programming Jakarta Struts book by Chuck Cavaness on how to use a Struts action in the welcome file list of a web.xml file. Based on the instructions in the book I have the following welcome file entry in my web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list and the following code in my index.jsp: %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body logic:forward name=HOME/ /body /html and the following entry in my struts-config.xml file: global-forwards forward name=HOME path=PMTAction.do redirect=false //global-forwards So, when I first fire up Tomcat everything forwards fine but after a while, if I hit the following URL: http://localhost:8080/pmt/index.jsp I get a blank page. No forwarding. Nothing. I've tried every combo possible here, including using logic:redirect/ but eventually it stops forwarding. Am I doing something subtly wrong or drastically wrong here? Thanks in advance, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended for the use of the individual(s) or entity it was addressed to and may contain confidential and/or privileged information. If the reader of this transmission is not the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited. If you receive this communication in error, please notify the sender immediately and delete this communication from your system(s) to which it was sent and/or replicated to. (c) 2003 Sapiens Americas Corp. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts Action in Welcome File List
Hmmm...tried that but still blanks out after a while...I'm wondering if there's an issue with my use of sessions...would that come into play here? Jon On Tuesday, July 29, 2003, at 06:56 PM, John Cavacas wrote: Try, logic:redirect forward=HOME/ In your index.jsp page. Also, look at sruts-blank.war example application for an easy to understand example of this. John -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM To: [EMAIL PROTECTED] Subject: Struts Action in Welcome File List Hi, I've been using Struts now for some time and enjoy it immensely! However, I've recently run into a problem that has me perplexed. Usually I can figure these things out and not bother the mail lists but this one requires your help ;-) I've pulled some info from the Programming Jakarta Struts book by Chuck Cavaness on how to use a Struts action in the welcome file list of a web.xml file. Based on the instructions in the book I have the following welcome file entry in my web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list and the following code in my index.jsp: %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body logic:forward name=HOME/ /body /html and the following entry in my struts-config.xml file: global-forwards forward name=HOME path=PMTAction.do redirect=false //global-forwards So, when I first fire up Tomcat everything forwards fine but after a while, if I hit the following URL: http://localhost:8080/pmt/index.jsp I get a blank page. No forwarding. Nothing. I've tried every combo possible here, including using logic:redirect/ but eventually it stops forwarding. Am I doing something subtly wrong or drastically wrong here? Thanks in advance, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended for the use of the individual(s) or entity it was addressed to and may contain confidential and/or privileged information. If the reader of this transmission is not the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited. If you receive this communication in error, please notify the sender immediately and delete this communication from your system(s) to which it was sent and/or replicated to. (c) 2003 Sapiens Americas Corp. - 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: Struts Action in Welcome File List
Didn't work for me. I'm stumped ;-( Jon On Tuesday, July 29, 2003, at 09:55 PM, Dan Tran wrote: This works for me %@ page language=java contentType=text/html;charset=utf-8 % % response.sendRedirect(./PMTAction.do); % -D - Original Message - From: Jon Wynacht [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM Subject: Re: Struts Action in Welcome File List Hmmm...tried that but still blanks out after a while...I'm wondering if there's an issue with my use of sessions...would that come into play here? Jon On Tuesday, July 29, 2003, at 06:56 PM, John Cavacas wrote: Try, logic:redirect forward=HOME/ In your index.jsp page. Also, look at sruts-blank.war example application for an easy to understand example of this. John -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM To: [EMAIL PROTECTED] Subject: Struts Action in Welcome File List Hi, I've been using Struts now for some time and enjoy it immensely! However, I've recently run into a problem that has me perplexed. Usually I can figure these things out and not bother the mail lists but this one requires your help ;-) I've pulled some info from the Programming Jakarta Struts book by Chuck Cavaness on how to use a Struts action in the welcome file list of a web.xml file. Based on the instructions in the book I have the following welcome file entry in my web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list and the following code in my index.jsp: %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body logic:forward name=HOME/ /body /html and the following entry in my struts-config.xml file: global-forwards forward name=HOME path=PMTAction.do redirect=false //global-forwards So, when I first fire up Tomcat everything forwards fine but after a while, if I hit the following URL: http://localhost:8080/pmt/index.jsp I get a blank page. No forwarding. Nothing. I've tried every combo possible here, including using logic:redirect/ but eventually it stops forwarding. Am I doing something subtly wrong or drastically wrong here? Thanks in advance, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended for the use of the individual(s) or entity it was addressed to and may contain confidential and/or privileged information. If the reader of this transmission is not the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited. If you receive this communication in error, please notify the sender immediately and delete this communication from your system(s) to which it was sent and/or replicated to. (c) 2003 Sapiens Americas Corp. - 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] - 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: Struts Action in Welcome File List
Actually this blank page phenomenon happend to me a long time ago. I remember taking out the line content type. That was the only change I made and it worked. From: Jon Wynacht [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Struts Action in Welcome File List Date: Tue, 29 Jul 2003 22:21:25 -0700 Didn't work for me. I'm stumped ;-( Jon On Tuesday, July 29, 2003, at 09:55 PM, Dan Tran wrote: This works for me %@ page language=java contentType=text/html;charset=utf-8 % % response.sendRedirect(./PMTAction.do); % -D - Original Message - From: Jon Wynacht [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM Subject: Re: Struts Action in Welcome File List Hmmm...tried that but still blanks out after a while...I'm wondering if there's an issue with my use of sessions...would that come into play here? Jon On Tuesday, July 29, 2003, at 06:56 PM, John Cavacas wrote: Try, logic:redirect forward=HOME/ In your index.jsp page. Also, look at sruts-blank.war example application for an easy to understand example of this. John -Original Message- From: Jon Wynacht [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 29, 2003 9:41 PM To: [EMAIL PROTECTED] Subject: Struts Action in Welcome File List Hi, I've been using Struts now for some time and enjoy it immensely! However, I've recently run into a problem that has me perplexed. Usually I can figure these things out and not bother the mail lists but this one requires your help ;-) I've pulled some info from the Programming Jakarta Struts book by Chuck Cavaness on how to use a Struts action in the welcome file list of a web.xml file. Based on the instructions in the book I have the following welcome file entry in my web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list and the following code in my index.jsp: %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body logic:forward name=HOME/ /body /html and the following entry in my struts-config.xml file: global-forwards forward name=HOME path=PMTAction.do redirect=false //global-forwards So, when I first fire up Tomcat everything forwards fine but after a while, if I hit the following URL: http://localhost:8080/pmt/index.jsp I get a blank page. No forwarding. Nothing. I've tried every combo possible here, including using logic:redirect/ but eventually it stops forwarding. Am I doing something subtly wrong or drastically wrong here? Thanks in advance, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This communication is intended for the use of the individual(s) or entity it was addressed to and may contain confidential and/or privileged information. If the reader of this transmission is not the intended recipient, you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited. If you receive this communication in error, please notify the sender immediately and delete this communication from your system(s) to which it was sent and/or replicated to. (c) 2003 Sapiens Americas Corp. - 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] - 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] _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WARNING: invalid welcome file
Hi, This may be slightly out of topic..but I need some suggestions in this regard. Probably someone has encountered this problem before. In my struts application's web.xml, I've defined welcome page as follows: welcome-file-list welcome-file/jsp/Login.jsp/welcome-file /welcome-file-list When I deploy it on JBoss Windows environment, it's working fine. When I deploy it on JBoss Linux environment, it's showing a msg: WARNING: invalid welcome file: /jsp/Login.jsp And in the browser, when I try to view http://servername:8080/appName (where appName is the name of .ear file I've deployed), It's displaying /jsp/Login.jsp, but none of the style sheets and images are obtained. When I type the entire path in the browser (as below) http://servername:8080/appName/jsp/Login.jsp, then everything is perfect. Any clue why this is happening? Sriram
RE: WARNING: invalid welcome file
Try without leading / -Original Message- From: sriram [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 9:42 AM To: 'Struts Users Mailing List' Subject: WARNING: invalid welcome file Hi, This may be slightly out of topic..but I need some suggestions in this regard. Probably someone has encountered this problem before. In my struts application's web.xml, I've defined welcome page as follows: welcome-file-list welcome-file/jsp/Login.jsp/welcome-file /welcome-file-list When I deploy it on JBoss Windows environment, it's working fine. When I deploy it on JBoss Linux environment, it's showing a msg: WARNING: invalid welcome file: /jsp/Login.jsp And in the browser, when I try to view http://servername:8080/appName (where appName is the name of .ear file I've deployed), It's displaying /jsp/Login.jsp, but none of the style sheets and images are obtained. When I type the entire path in the browser (as below) http://servername:8080/appName/jsp/Login.jsp, then everything is perfect. Any clue why this is happening? Sriram - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WARNING: invalid welcome file
The leading / tells the app that this file is in the root app, and apparently it is not. At 07:11 PM 7/16/03 +0530, you wrote: Hi, This may be slightly out of topic..but I need some suggestions in this regard. Probably someone has encountered this problem before. In my struts application's web.xml, I've defined welcome page as follows: welcome-file-list welcome-file/jsp/Login.jsp/welcome-file /welcome-file-list When I deploy it on JBoss Windows environment, it's working fine. When I deploy it on JBoss Linux environment, it's showing a msg: WARNING: invalid welcome file: /jsp/Login.jsp And in the browser, when I try to view http://servername:8080/appName (where appName is the name of .ear file I've deployed), It's displaying /jsp/Login.jsp, but none of the style sheets and images are obtained. When I type the entire path in the browser (as below) http://servername:8080/appName/jsp/Login.jsp, then everything is perfect. Any clue why this is happening? Sriram LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WARNING: invalid welcome file
I believe that the welcome file list is just a list of filenames to look for in any directory if the user makes a request for a directory name without a filename. So, they should not start with leading slashes. Some containers are more tolerant of this than others, but it seems clear to me now that the welcome file entries should not have slashes in their names. To get the behavior you want, you probably want to change your welcome file to just index.jsp (no slashes) and then make an index.jsp file that redirects to your login page and put it in the root directory of your app. web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list index.jsp: % response.sendRedirect(request.getContextPath() + /jsp/Login.jsp); % -Max - Original Message - From: Micael [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 8:18 AM Subject: Re: WARNING: invalid welcome file The leading / tells the app that this file is in the root app, and apparently it is not. At 07:11 PM 7/16/03 +0530, you wrote: Hi, This may be slightly out of topic..but I need some suggestions in this regard. Probably someone has encountered this problem before. In my struts application's web.xml, I've defined welcome page as follows: welcome-file-list welcome-file/jsp/Login.jsp/welcome-file /welcome-file-list When I deploy it on JBoss Windows environment, it's working fine. When I deploy it on JBoss Linux environment, it's showing a msg: WARNING: invalid welcome file: /jsp/Login.jsp And in the browser, when I try to view http://servername:8080/appName (where appName is the name of .ear file I've deployed), It's displaying /jsp/Login.jsp, but none of the style sheets and images are obtained. When I type the entire path in the browser (as below) http://servername:8080/appName/jsp/Login.jsp, then everything is perfect. Any clue why this is happening? Sriram LEGAL NOTICE This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be confidential and legally privileged. This information is intended only for the use of the individual or entity to whom this electronic mail transmission was sent as indicated above. If you are not the intended recipient, any disclosure, copying, distribution, or action taken in reliance on the contents of the information contained in this transmission is strictly prohibited. If you have received this transmission in error, please delete the message. Thank you - 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: WARNING: invalid welcome file
The only formal restriction is that they can't begin or end with a /. A container is supposed to append the content of each welcome-file element to the requested URI and see whether a resource is mapped to the resulting URI. So, while it's unusual, embedded / characters should be supported. Quoting Max Cooper [EMAIL PROTECTED]: I believe that the welcome file list is just a list of filenames to look for in any directory if the user makes a request for a directory name without a filename. So, they should not start with leading slashes. Some containers are more tolerant of this than others, but it seems clear to me now that the welcome file entries should not have slashes in their names. To get the behavior you want, you probably want to change your welcome file to just index.jsp (no slashes) and then make an index.jsp file that redirects to your login page and put it in the root directory of your app. web.xml: welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list index.jsp: % response.sendRedirect(request.getContextPath() + /jsp/Login.jsp); % -Max - Original Message - From: Micael [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 8:18 AM Subject: Re: WARNING: invalid welcome file The leading / tells the app that this file is in the root app, and apparently it is not. At 07:11 PM 7/16/03 +0530, you wrote: Hi, This may be slightly out of topic..but I need some suggestions in this regard. Probably someone has encountered this problem before. In my struts application's web.xml, I've defined welcome page as follows: welcome-file-list welcome-file/jsp/Login.jsp/welcome-file /welcome-file-list When I deploy it on JBoss Windows environment, it's working fine. When I deploy it on JBoss Linux environment, it's showing a msg: WARNING: invalid welcome file: /jsp/Login.jsp And in the browser, when I try to view http://servername:8080/appName (where appName is the name of .ear file I've deployed), It's displaying /jsp/Login.jsp, but none of the style sheets and images are obtained. When I type the entire path in the browser (as below) http://servername:8080/appName/jsp/Login.jsp, then everything is perfect. Any clue why this is happening? Sriram -- 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]
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]
welcome file in web.xml
hi, can i use this in web.xml welcome-file-list welcome-filejsp/login.do?action=""> /welcome-file-listTIA --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
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
[Off Topic] re-pre-compiling only jsps that have changed - was Re: Filterto redirect to welcome action when pre-compiling JSPs
Hi. Apologies for going slightly off topic (!), and the long title, but with all this talk about pre-compiling JSPs, thought I'd jump in with a question that relates to jasper no-longer recognising when a file has changed due to the new _jsp which it seems to add to the end of files it compiles. This proves VERY frustrating when using Ant in development, as you have to pre-compile *all* your jsp's everytime you make a change, and then restart the server. Surely there is a way round this. Has anyone else see it? Many thanks, David Jason Lea [EMAIL PROTECTED] on 03/25/2003 02:23:03 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To:Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:Re: Filter to redirect to welcome action when pre-compiling JSPs gaffer wrote: Hi Jason, At this very moment, I am trying to solve a similar issue. Would you mind posting the relevant snippets from web.xml and struts-config? Such as paths to actions, url-pattern, etc. Thanks Al Ok, here goes... web.xml: web-app ... !-- Filter: redirect to Struts forwardName-- filter filter-nameWelcomeFilter/filter-name filter-classnz.net.kumachan.project.WelcomeFilter/filter-class init-param param-nameforwardName/param-name param-valuehomepage/param-value /init-param /filter ... filter-mapping filter-nameWelcomeFilter/filter-name url-pattern//url-pattern /filter-mapping ... !-- Standard Action Servlet -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup3/load-on-startup /servlet !-- Standard Action Servlet Mapping -- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping ... /web-app Note: I don't have a welcome-file-list defined in web.xml. My WelcomeFilter takes a Struts Global Forward, looks up the forward (in this case it would return /Homepage.do). I could have just put /Homepage.do as the forwardName and use req.getRequestDispatcher(forwardName).forward(req,res) instead of messing with the Struts code. Hmm, maybe that would be nicer... I might change it now :) struts-config.xml: struts-config ... global-forwards ... forward name=homepage path=/Homepage.do/ ... global-forwards ... action-mappings ... action path=/Homepage type=org.apache.struts.actions.ForwardAction parameter=main.homepage/ ... /action-mappings ... /struts-config Note: The action /Homepage forwards to the parameter main.homepage which maps to a Tiles definition eg in tiles-defs.xml: definition name=main.homepage extends=.mainLayout but I could have used something like WEB-INF/jsp/pages/Homepage.jsp for the parameter Hope this helps... Jason Lea On Mon, 2003-03-24 at 22:01, Jason Lea wrote: Cool. It's good to know someone else has done this. I thought I should post this just so someone else looking at pre-compilation of JSPs would find it useful, but also to see if there are any glaring issues or if it is a Good Thing (TM) :-) Jason David Graham wrote: This is exactly what I did :-). David From: Jason Lea [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Filter to redirect to welcome action when pre-compiling JSPs Date: Tue, 25 Mar 2003 17:47:14 +1200 I have been playing around with JSP pre-compilation with Tomcat-4.1.24 (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html) so I can check my JSP pages for compiler errors before deployment, but also to remove the delay that the first hit incurs. The only problem with this is the welcome-file which has to point to a physical jsp page and not a servlet. The Struts in Action book suggests using a index.jsp page with a logic:redirect to a Welcome action, which is what I was doing. I tried creating a servlet that would forward the request onto my Welcome action servlet-mapping with a url-pattern/url-pattern, but this seemed to match any request and cause lots of problems. So I dropped that idea and instead have used a filter... filter-mapping filter-nameWelcomeFilter/filter-name url-pattern//url-pattern /filter-mapping which works perfectly. It only fires for http://localhost/app/ or http://localhost/app and my filter forwards the request onto my Welcome action correctly. I can now get rid of index.jsp and all my other JSPs are pre-compiled. I have also hidden all of my JSPs under the WEB-INF so they cannot be called directly and have to go through my Struts actions. Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED
Filter to redirect to welcome action when pre-compiling JSPs
I have been playing around with JSP pre-compilation with Tomcat-4.1.24 (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html) so I can check my JSP pages for compiler errors before deployment, but also to remove the delay that the first hit incurs. The only problem with this is the welcome-file which has to point to a physical jsp page and not a servlet. The Struts in Action book suggests using a index.jsp page with a logic:redirect to a Welcome action, which is what I was doing. I tried creating a servlet that would forward the request onto my Welcome action servlet-mapping with a url-pattern/url-pattern, but this seemed to match any request and cause lots of problems. So I dropped that idea and instead have used a filter... filter-mapping filter-nameWelcomeFilter/filter-name url-pattern//url-pattern /filter-mapping which works perfectly. It only fires for http://localhost/app/ or http://localhost/app and my filter forwards the request onto my Welcome action correctly. I can now get rid of index.jsp and all my other JSPs are pre-compiled. I have also hidden all of my JSPs under the WEB-INF so they cannot be called directly and have to go through my Struts actions. Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filter to redirect to welcome action when pre-compiling JSPs
This is exactly what I did :-). David From: Jason Lea [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Filter to redirect to welcome action when pre-compiling JSPs Date: Tue, 25 Mar 2003 17:47:14 +1200 I have been playing around with JSP pre-compilation with Tomcat-4.1.24 (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html) so I can check my JSP pages for compiler errors before deployment, but also to remove the delay that the first hit incurs. The only problem with this is the welcome-file which has to point to a physical jsp page and not a servlet. The Struts in Action book suggests using a index.jsp page with a logic:redirect to a Welcome action, which is what I was doing. I tried creating a servlet that would forward the request onto my Welcome action servlet-mapping with a url-pattern/url-pattern, but this seemed to match any request and cause lots of problems. So I dropped that idea and instead have used a filter... filter-mapping filter-nameWelcomeFilter/filter-name url-pattern//url-pattern /filter-mapping which works perfectly. It only fires for http://localhost/app/ or http://localhost/app and my filter forwards the request onto my Welcome action correctly. I can now get rid of index.jsp and all my other JSPs are pre-compiled. I have also hidden all of my JSPs under the WEB-INF so they cannot be called directly and have to go through my Struts actions. Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filter to redirect to welcome action when pre-compiling JSPs
Cool. It's good to know someone else has done this. I thought I should post this just so someone else looking at pre-compilation of JSPs would find it useful, but also to see if there are any glaring issues or if it is a Good Thing (TM) :-) Jason David Graham wrote: This is exactly what I did :-). David From: Jason Lea [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Filter to redirect to welcome action when pre-compiling JSPs Date: Tue, 25 Mar 2003 17:47:14 +1200 I have been playing around with JSP pre-compilation with Tomcat-4.1.24 (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html) so I can check my JSP pages for compiler errors before deployment, but also to remove the delay that the first hit incurs. The only problem with this is the welcome-file which has to point to a physical jsp page and not a servlet. The Struts in Action book suggests using a index.jsp page with a logic:redirect to a Welcome action, which is what I was doing. I tried creating a servlet that would forward the request onto my Welcome action servlet-mapping with a url-pattern/url-pattern, but this seemed to match any request and cause lots of problems. So I dropped that idea and instead have used a filter... filter-mapping filter-nameWelcomeFilter/filter-name url-pattern//url-pattern /filter-mapping which works perfectly. It only fires for http://localhost/app/ or http://localhost/app and my filter forwards the request onto my Welcome action correctly. I can now get rid of index.jsp and all my other JSPs are pre-compiled. I have also hidden all of my JSPs under the WEB-INF so they cannot be called directly and have to go through my Struts actions. Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea Email: [EMAIL PROTECTED] Phone/Fax: +64 3 381 2907 Mobile:+64 21 040 2708 Address: 9a Tabart Street, Christchurch, New Zealand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filter to redirect to welcome action when pre-compiling JSPs
Hi Jason, At this very moment, I am trying to solve a similar issue. Would you mind posting the relevant snippets from web.xml and struts-config? Such as paths to actions, url-pattern, etc. Thanks Al On Mon, 2003-03-24 at 22:01, Jason Lea wrote: Cool. It's good to know someone else has done this. I thought I should post this just so someone else looking at pre-compilation of JSPs would find it useful, but also to see if there are any glaring issues or if it is a Good Thing (TM) :-) Jason David Graham wrote: This is exactly what I did :-). David From: Jason Lea [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Filter to redirect to welcome action when pre-compiling JSPs Date: Tue, 25 Mar 2003 17:47:14 +1200 I have been playing around with JSP pre-compilation with Tomcat-4.1.24 (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html) so I can check my JSP pages for compiler errors before deployment, but also to remove the delay that the first hit incurs. The only problem with this is the welcome-file which has to point to a physical jsp page and not a servlet. The Struts in Action book suggests using a index.jsp page with a logic:redirect to a Welcome action, which is what I was doing. I tried creating a servlet that would forward the request onto my Welcome action servlet-mapping with a url-pattern/url-pattern, but this seemed to match any request and cause lots of problems. So I dropped that idea and instead have used a filter... filter-mapping filter-nameWelcomeFilter/filter-name url-pattern//url-pattern /filter-mapping which works perfectly. It only fires for http://localhost/app/ or http://localhost/app and my filter forwards the request onto my Welcome action correctly. I can now get rid of index.jsp and all my other JSPs are pre-compiled. I have also hidden all of my JSPs under the WEB-INF so they cannot be called directly and have to go through my Struts actions. Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- gaffer [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filter to redirect to welcome action when pre-compiling JSPs
It's easier to maintain than a bunch of one line index.jsp files that redirect to another page and it gave me an excuse to learn more about filters :-). David From: Jason Lea [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Filter to redirect to welcome action when pre-compiling JSPs Date: Tue, 25 Mar 2003 18:01:54 +1200 Cool. It's good to know someone else has done this. I thought I should post this just so someone else looking at pre-compilation of JSPs would find it useful, but also to see if there are any glaring issues or if it is a Good Thing (TM) :-) Jason David Graham wrote: This is exactly what I did :-). David From: Jason Lea [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Filter to redirect to welcome action when pre-compiling JSPs Date: Tue, 25 Mar 2003 17:47:14 +1200 I have been playing around with JSP pre-compilation with Tomcat-4.1.24 (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html) so I can check my JSP pages for compiler errors before deployment, but also to remove the delay that the first hit incurs. The only problem with this is the welcome-file which has to point to a physical jsp page and not a servlet. The Struts in Action book suggests using a index.jsp page with a logic:redirect to a Welcome action, which is what I was doing. I tried creating a servlet that would forward the request onto my Welcome action servlet-mapping with a url-pattern/url-pattern, but this seemed to match any request and cause lots of problems. So I dropped that idea and instead have used a filter... filter-mapping filter-nameWelcomeFilter/filter-name url-pattern//url-pattern /filter-mapping which works perfectly. It only fires for http://localhost/app/ or http://localhost/app and my filter forwards the request onto my Welcome action correctly. I can now get rid of index.jsp and all my other JSPs are pre-compiled. I have also hidden all of my JSPs under the WEB-INF so they cannot be called directly and have to go through my Struts actions. Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea Email: [EMAIL PROTECTED] Phone/Fax: +64 3 381 2907 Mobile:+64 21 040 2708 Address: 9a Tabart Street, Christchurch, New Zealand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filter to redirect to welcome action when pre-compiling JSPs
gaffer wrote: Hi Jason, At this very moment, I am trying to solve a similar issue. Would you mind posting the relevant snippets from web.xml and struts-config? Such as paths to actions, url-pattern, etc. Thanks Al Ok, here goes... web.xml: web-app ... !-- Filter: redirect to Struts forwardName-- filter filter-nameWelcomeFilter/filter-name filter-classnz.net.kumachan.project.WelcomeFilter/filter-class init-param param-nameforwardName/param-name param-valuehomepage/param-value /init-param /filter ... filter-mapping filter-nameWelcomeFilter/filter-name url-pattern//url-pattern /filter-mapping ... !-- Standard Action Servlet -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup3/load-on-startup /servlet !-- Standard Action Servlet Mapping -- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping ... /web-app Note: I don't have a welcome-file-list defined in web.xml. My WelcomeFilter takes a Struts Global Forward, looks up the forward (in this case it would return /Homepage.do). I could have just put /Homepage.do as the forwardName and use req.getRequestDispatcher(forwardName).forward(req,res) instead of messing with the Struts code. Hmm, maybe that would be nicer... I might change it now :) struts-config.xml: struts-config ... global-forwards ... forward name=homepage path=/Homepage.do/ ... global-forwards ... action-mappings ... action path=/Homepage type=org.apache.struts.actions.ForwardAction parameter=main.homepage/ ... /action-mappings ... /struts-config Note: The action /Homepage forwards to the parameter main.homepage which maps to a Tiles definition eg in tiles-defs.xml: definition name=main.homepage extends=.mainLayout but I could have used something like WEB-INF/jsp/pages/Homepage.jsp for the parameter Hope this helps... Jason Lea On Mon, 2003-03-24 at 22:01, Jason Lea wrote: Cool. It's good to know someone else has done this. I thought I should post this just so someone else looking at pre-compilation of JSPs would find it useful, but also to see if there are any glaring issues or if it is a Good Thing (TM) :-) Jason David Graham wrote: This is exactly what I did :-). David From: Jason Lea [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Filter to redirect to welcome action when pre-compiling JSPs Date: Tue, 25 Mar 2003 17:47:14 +1200 I have been playing around with JSP pre-compilation with Tomcat-4.1.24 (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html) so I can check my JSP pages for compiler errors before deployment, but also to remove the delay that the first hit incurs. The only problem with this is the welcome-file which has to point to a physical jsp page and not a servlet. The Struts in Action book suggests using a index.jsp page with a logic:redirect to a Welcome action, which is what I was doing. I tried creating a servlet that would forward the request onto my Welcome action servlet-mapping with a url-pattern/url-pattern, but this seemed to match any request and cause lots of problems. So I dropped that idea and instead have used a filter... filter-mapping filter-nameWelcomeFilter/filter-name url-pattern//url-pattern /filter-mapping which works perfectly. It only fires for http://localhost/app/ or http://localhost/app and my filter forwards the request onto my Welcome action correctly. I can now get rid of index.jsp and all my other JSPs are pre-compiled. I have also hidden all of my JSPs under the WEB-INF so they cannot be called directly and have to go through my Struts actions. Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jason Lea Email: [EMAIL PROTECTED] Phone/Fax: +64 3 381 2907 Mobile:+64 21 040 2708 Address: 9a Tabart Street, Christchurch, New Zealand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Filter to redirect to welcome action when pre-compiling JSPs
Thanks for sharing! On Mon, 2003-03-24 at 23:23, Jason Lea wrote: gaffer wrote: Hi Jason, At this very moment, I am trying to solve a similar issue. Would you mind posting the relevant snippets from web.xml and struts-config? Such as paths to actions, url-pattern, etc. Thanks Al Ok, here goes... web.xml: web-app ... !-- Filter: redirect to Struts forwardName-- filter filter-nameWelcomeFilter/filter-name filter-classnz.net.kumachan.project.WelcomeFilter/filter-class init-param param-nameforwardName/param-name param-valuehomepage/param-value /init-param /filter ... filter-mapping filter-nameWelcomeFilter/filter-name url-pattern//url-pattern /filter-mapping ... !-- Standard Action Servlet -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup3/load-on-startup /servlet !-- Standard Action Servlet Mapping -- servlet-mapping servlet-nameaction/servlet-name url-pattern*.do/url-pattern /servlet-mapping ... /web-app Note: I don't have a welcome-file-list defined in web.xml. My WelcomeFilter takes a Struts Global Forward, looks up the forward (in this case it would return /Homepage.do). I could have just put /Homepage.do as the forwardName and use req.getRequestDispatcher(forwardName).forward(req,res) instead of messing with the Struts code. Hmm, maybe that would be nicer... I might change it now :) struts-config.xml: struts-config ... global-forwards ... forward name=homepage path=/Homepage.do/ ... global-forwards ... action-mappings ... action path=/Homepage type=org.apache.struts.actions.ForwardAction parameter=main.homepage/ ... /action-mappings ... /struts-config Note: The action /Homepage forwards to the parameter main.homepage which maps to a Tiles definition eg in tiles-defs.xml: definition name=main.homepage extends=.mainLayout but I could have used something like WEB-INF/jsp/pages/Homepage.jsp for the parameter Hope this helps... Jason Lea On Mon, 2003-03-24 at 22:01, Jason Lea wrote: Cool. It's good to know someone else has done this. I thought I should post this just so someone else looking at pre-compilation of JSPs would find it useful, but also to see if there are any glaring issues or if it is a Good Thing (TM) :-) Jason David Graham wrote: This is exactly what I did :-). David From: Jason Lea [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Filter to redirect to welcome action when pre-compiling JSPs Date: Tue, 25 Mar 2003 17:47:14 +1200 I have been playing around with JSP pre-compilation with Tomcat-4.1.24 (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html) so I can check my JSP pages for compiler errors before deployment, but also to remove the delay that the first hit incurs. The only problem with this is the welcome-file which has to point to a physical jsp page and not a servlet. The Struts in Action book suggests using a index.jsp page with a logic:redirect to a Welcome action, which is what I was doing. I tried creating a servlet that would forward the request onto my Welcome action servlet-mapping with a url-pattern/url-pattern, but this seemed to match any request and cause lots of problems. So I dropped that idea and instead have used a filter... filter-mapping filter-nameWelcomeFilter/filter-name url-pattern//url-pattern /filter-mapping which works perfectly. It only fires for http://localhost/app/ or http://localhost/app and my filter forwards the request onto my Welcome action correctly. I can now get rid of index.jsp and all my other JSPs are pre-compiled. I have also hidden all of my JSPs under the WEB-INF so they cannot be called directly and have to go through my Struts actions. Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- gaffer [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED
Re: BaseBean questions [was] [ANN] Struttin' With Struts beta (newbies esp. welcome)
Rick Reumann wrote: Thanks vic for the kind words and feedback. I replied to you privately. Rest of this email is in regard to the BaseBeans stuff I looked it. Comments below... On Wed, Mar 12,'03(08:51 PM GMT-0500), Vic wrote: So consider using list/collection based beans. Ex: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/bP/WEB-INF/src/war/org/apache/scaffoldingLib/base Note that I use iBatis.com DAO, a good and fast SQL based DAO. I've been looking at the classes from the link above and I think what would really help me is seeing an actual web app implement the org.apache.scaffoldingLib.base.BaseBean and see it being used for CRUD operations. I think you had a web app to download on your basebeans.com site but I'm not sure what to download to see this in action (should I look at the Portal download?) I have not release yet, so no download. It does work, but you have to CVS out of sf.net or I can e-mail you separate. It's work in progress, dispatch is not done yet. (I am time slicing as is everyone doing open source. As soon as a few more things work, I will create a early build for easier download (non-cvs)) You are welcome to use my code, its Apache license, (or develop a module you check in to my code, for example user registration, similar to employee list above) For the sake of this discussion lets consider an application that would allow a user to view Employees, insert an employee, update an employee etc. (I'm thinking of updating my lessons, with your approval of course, to incorporate some of these ideas, but I want to make sure I understand them first:) Using the List backed BaseBean idea, it appears that all the ActionForm beans would extend BaseBean. I guess the big difference in this approach, compared to the others I've seen documented, is your Form beans are actually responsible for a lot more than just being holders for simple form field properties. My design is this: A bean should delegate DAO. Being list/collection bean is not controversial. Having zero-copy beans is. This lets JSTL, Model 1, SOAP, etc. etc use beans, and it's easy to unit test (see my abstract testIt() in bean). Also, my beans are seriazable, so server can fail over and recover session beans, or during development, you do not have to login. People have called this approach simpler. When writing a complex application, a simpler design is helpfull. The other design is as intended by developers of Struts, for example: http://www.eyde.net/eyde/index.do?date=20021021#213801 (a Struts blog) or variation in Scaffolding in struts.sf.net. There is a lot of DAO-type code in Action, and copying of fields, and being Struts bound. Advantage is that it can more easily display wrong data in Validation. Explore both. So lets take a typical example of where a user wants to update Employee information on a form. I take it our EmployeeFormBean would have your usual firstName, lastName fields, but then rather than pass this bean off to be converted into a Data Transfer Object and then passed off to a model layer to be updated, you would instead simply do something like this in your Action: (in the execute or dispatch method of an Action called for doing an update): EmployeeFormBean emp = (EmployeeFormBean)form; emp.save(); // To do this would we need to override the BaseBean's save() method? I assume you also would need to provide an implementation of the BaseDAO's update(List l) method? I use OO, I am very comfortable leveraging OO, since OO increases re usability and productivity. (and I am a certified OO instructor for like 8 years) Let me just say: is a/has a, which is even on a Sun Java Cert. Developer exam. Or extends/delegates is the other way. So let me try to explain the implementation. There are things that are in common with beans, like *apples and oranges*! If you are trained in functional decomposition, top/down, bottom up, or structural design, you look for differences. But OO is like genetic: Apples and Oranges are trees, grow fruit, you can eat it, it can peel, etc. So they are 98% same! Point is is crate a baseBean, that I extend to create concrete form beans. Any code the I find that is common, I put in base (which I call programing after design, since even after I created a lot of concrete beans, I can add code and they all benefit). Also, a bean should not do persistence, but should delegate. So I create a helper object, a DAOImplementation. ( a DAO also has a base). One thing is obvoice, a baseBean needs to CRUD, so it makes sense to baseBean { public void save() { DAO.update(); }} So each concrete bean has a concrete DAO, since each bean needs it's own specific CRUD. But ... I can also write generic CRUD in base DAO and baseBean, via reflection, getMetaData, etc. All I am saying is extend and delegate. One more wrinkle. DB access it the slowest part of J2EE architecture, is well known. A DAO design that works in development might not stale in production
Re: BaseBean questions [was] [ANN] Struttin' With Struts beta(newbies esp. welcome)
On Thu, 13 Mar 2003 06:22:58 -0500 Vic Cekvenich [EMAIL PROTECTED] wrote: Also, a bean should not do persistence, but should delegate. So I create a helper object, a DAOImplementation. ( a DAO also has a base). One thing is obvoice, a baseBean needs to CRUD, so it makes sense to baseBean { public void save() { DAO.update(); }} I love the OO approach to your code, I'm just still very confused about how a simple implementation of a BaseBean would work in calling a DAO to save itself? In other words, what gets passed to the DAO from the BaseBean implementation to do the CRUD? For example in a case where you had: EmployeeFormBean extends BaseBean I would take it EmployeeForBean would need to hold user fields such as firstName, lastName, address, etc with appropriate getter and setters. How do these fields then get passed to your DAO for the CRUD operations? Thanks, -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: BaseBean questions [was] [ANN] Struttin' With Struts beta (newbies esp. welcome)
Maybe you should be doing Vic's labs, Rick ;- I loved the walkthroughs BTW - it is particularly useful to have worked examples of various concepts - this can save literally hours by having a working example - particularly with new bits one may not have used previously, i.e. all of it is incredibly useful for beginners. It *can* take a while trying to understand the various options with struts - at least getting something working is a great starting point. Kudos to you for the Struttin' With Struts idea *and* implementation. Looking forward to the next bits :- I must admit to being a (recently introduced but) great fan of Vic's basebeans approach - it has greatly simplified getting CRUD working with struts for me and introduced me to some very neat OO techniques. The code is minimal - and as with all great ideas - its elegance is in its simplicity. I'll refrain from trying to answer your question as I may be speaking out-of-turn - might be better for Vic to answer this direct. H. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: 13 March 2003 16:42 To: Struts Users Mailing List Subject: Re: BaseBean questions [was] [ANN] Struttin' With Struts beta (newbies esp. welcome) On Thu, 13 Mar 2003 06:22:58 -0500 Vic Cekvenich [EMAIL PROTECTED] wrote: Also, a bean should not do persistence, but should delegate. So I create a helper object, a DAOImplementation. ( a DAO also has a base). One thing is obvoice, a baseBean needs to CRUD, so it makes sense to baseBean { public void save() { DAO.update(); }} I love the OO approach to your code, I'm just still very confused about how a simple implementation of a BaseBean would work in calling a DAO to save itself? In other words, what gets passed to the DAO from the BaseBean implementation to do the CRUD? For example in a case where you had: EmployeeFormBean extends BaseBean I would take it EmployeeForBean would need to hold user fields such as firstName, lastName, address, etc with appropriate getter and setters. How do these fields then get passed to your DAO for the CRUD operations? Thanks, -- Rick Reumann - 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: [ANN] Struttin' With Struts beta (newbies esp. welcome)
Sorry to take so long to get back to you. Thanks for the kind words. For some reason I missed your email in the stack... comment below... On Tue, 11 Mar 2003 17:49:34 -0600 Dan Allen [EMAIL PROTECTED] wrote: html:link action=/setupEmployeeFormAdd Employee/html:link I wanted to use the html-el tags and for some reason html-el link doesn't have an action for some reason. Maybe you can post to the list and ask why? The reason I say that is because new users need to grasp the concept that the URL is not actually a page but rather a server command, which is interpretted by the controller to be an Action followed by a View. Also, it is good to keep any references to the action mapping patter out of the View so that if you need to change from /do/* - *.do Good point, what should I use with the html-el tag to enable to define an action though in the html-el:link which is what I'm using for the lessons (I just call it html:link but it's using the html-el.tld). Let me know if you have any suggestions. -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
On Tue, 11 Mar 2003 18:51:10 -0600 Dan Allen [EMAIL PROTECTED] wrote: Two more comments: In the second tutorial, you are preparing the employeeForm using the SetUpEmployeeAction. In doing so, you run employeeForm.setDepartment(2); Shouldn't you instead set the default department selection in the form reset() method? I initially I did have that in the reset method, but then I wanted to show how you could use a SetUpAction to set up stuff in your bean if you wanted to. I also was lazy and didn't feel like explaining the reset method:)... you're right though I should have probably just kept it there. In regards to the discussion on using Tokens for the forward mapping keys (such as success and continue) you may also want to note that doing so allows you to have two tokens point to the same definition. In short Tokens.SUCCESS_KEY = success; Tokens.CONTINUE_KEY = success; So you can really play with the means of your Action class without having to bother the Action class. In short the action class shouldn't really care what view is choosen or its meaning, it just deals with the general workflow, such as success failure continue redo sigh, yea, the more I think about it I actually really should just use constants there and I'll include your explanation. I'm pissed I didn't include it from the start. Thanks for the comments and suggestions. I appreciate it. -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
On Thu, 13 Mar 2003 16:20:39 -0500 Rick Reumann [EMAIL PROTECTED] wrote: Maybe you can post to the list and ask why? he he I thought I was replying to a personal e-mail and didn't realize this went to the list... so I guess since it's now on the list... Why doesn't the html-el tag have an action attribute? Is there something that should be used instead? -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: BaseBean questions [was] [ANN] Struttin' With Struts beta (newbiesesp. welcome)
Rick Reumann wrote: On Thu, 13 Mar 2003 06:22:58 -0500 Vic Cekvenich [EMAIL PROTECTED] wrote: Also, a bean should not do persistence, but should delegate. So I create a helper object, a DAOImplementation. ( a DAO also has a base). One thing is obvoice, a baseBean needs to CRUD, so it makes sense to baseBean { public void save() { DAO.update(); }} I love the OO approach to your code, I'm just still very confused about how a simple implementation of a BaseBean would work in calling a DAO to save itself? In other words, what gets passed to the DAO from the BaseBean implementation to do the CRUD? For example in a case where you had: EmployeeFormBean extends BaseBean I would take it EmployeeForBean would need to hold user fields such as firstName, lastName, address, etc with appropriate getter and setters. How do these fields then get passed to your DAO for the CRUD operations? A bean has getters and setters as you said, and it gets and sets them to a list (of a maps), where a list is a property of the Bean! So that is why I say list/collection backed bean. So no DAO here, and simple to fake for a prototype, even multi row. Then on bean.save(){ myDAO.update(localList); } That is the beans part! It delegates, so no magic or secret. 3rd, in DAO update (list l) { // code to intalize a transaction // code to iterate the list // code to update each row //code to commit, release // Suprisingly, this code can be generic/reusable via OO } Yes, your implemenation is great. I will walk you over the phone. hth, V Thanks, - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
* Phil Steitz [EMAIL PROTECTED] [0346 19:46]: Mark Zeltser wrote: Rick, Good job, somehow I can't unzip war files, I am getting corrupt zip file exception. Mark. Use jar -xf war file name War files are jar files, not zips. Your JDK should include the jar utility in its /bin directory. Yeah, but jar files are zip files :) -- Dave Mack: Your stupidity, Allen, is simply not up to par. Allen Gwinn:Yours is. Rasputin :: Jack of All Trades - Master of Nuns - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
Rick, These lessons excellent! Congratulations. I didn't download the .war files, but just walked through the lessons ... very informative without being too involved. I have a feeling your URL will appear quite a lot on this list as a suggested learning resource. Susan Bradeen On 03/11/2003 02:36:38 AM Rick Reumann wrote: I created a web site that walks new Struts users step by step through the development of three VERY simple web applications in three lessons. Each lesson adds a few more features so that they build upon each other yet each stands alone such that if you follow the steps in any lesson you'll have built a very basic application regardless of which lesson you start with. I created these because there seemed to be lacking some more recent walk through Struts tutorials geared toward the very new Struts developer. I think real newbies will find them especially useful, but then again I could be way wrong:) I'm considering the site a beta because I'm sure there will be some mistakes. If anyone sees something I'm doing in a lesson that is way off (or a very bad practice) please let me know. Some of the stuff I know could be done in a more best practice way, but for the sake of trying to also keep the lessons small and simple some ideas weren't included (ie- I didn't use a constants interface for my forward definitions). If anyone wants to contribute, reword, or add anything please let me know. The site is there to help others. I got really lazy in a lot of places and didn't say much about certain things that I would have liked to. Hopefully over time the site will improve. Struttin' with Struts: http://www.reumann.net/do/struts/main -- Rick - 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: [ANN] Struttin' With Struts beta (newbies esp. welcome)
One good practice (for everyone) it to use list backed beans or collection backed bean. #1. When you use mutlirow, beans need to iterate (Collection) so your design has to have it anyway. #2. You can more easily change the DAO implementation of the DAO interface, if you only use it as a list/collection. If your DAO proves not scalable in real production, this is very nice. #3. You can get SQL data, or XML, or MQ, or CORBA, etc, and just put it in the list via your DAO. #4. You can create a prototype by just hard coding a list when you declare it (List l = {Bush, President}, {Collin, General};) , and not implement the DAO until later in the project. Or teach Struts, without going into model. But if you want to go model later, most DAO's return a list/collection. Did that even make sense? So consider using list/collection based beans. Ex: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/bP/WEB-INF/src/war/org/apache/scaffoldingLib/base Note that I use iBatis.com DAO, a good and fast SQL based DAO. 2nd, consider moving up lessons on Tiles, Menu, etc. I found success on projects when presentation was done up front as a prototype with action just doing nothing but returning success to a tile. And the action being called from a struts menu. 3rd consider teaching JSTL for tags. But I repeat, Excellent! I hope that we get a lot less newbie questions on the list thanks to Rick, eveyone, even old hats should take it. .V ps: Rick, I will make sure you get a pass to see/hear Ted Husted's live presentation via WebCast/Webex this Saturday. pps: I still think RowSet is best practice, but list/collection is a veery, very good practice and should work for most cases. Rick Reumann wrote: On Tue, 11 Mar 2003 06:49:54 -0500 Vic Cekvenich [EMAIL PROTECTED] wrote: Excellent!!! I will take the tutorial. I am wondering what are you doing for your Data Base, is it JDBC or something else. Thank you Vic. Actually since the lessons are very basic they don't even really touch the Model layer. They stop with a simple dummy call to service methods like: EmployeeDTO insertEmployee( EmployeeDTO employee ) { return employee; } My goal eventually is to build up to some model layer approaches on Database connectivity etc, but of course would have to run that stuff by you gurus :) as I'm still very weak in that area myself. Tentative lessons I'd like to see: Lesson IV - Tiles internationalization Lesson V - Accessing your model layer ( proper use of factories, services, DAOs etc.) nested tags It would be cool if someone wanted to create any of the above lessons following the same pattern of dealing with inserting/updating an employee. If each lesson follows the same functionality (with just added components/features) it makes it much easier for a new person to follow. Struttin' with Struts: http://www.reumann.net/do/struts/main - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
BaseBean questions [was] [ANN] Struttin' With Struts beta (newbiesesp. welcome)
Thanks vic for the kind words and feedback. I replied to you privately. Rest of this email is in regard to the BaseBeans stuff I looked it. Comments below... On Wed, Mar 12,'03(08:51 PM GMT-0500), Vic wrote: So consider using list/collection based beans. Ex: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/bP/WEB-INF/src/war/org/apache/scaffoldingLib/base Note that I use iBatis.com DAO, a good and fast SQL based DAO. I've been looking at the classes from the link above and I think what would really help me is seeing an actual web app implement the org.apache.scaffoldingLib.base.BaseBean and see it being used for CRUD operations. I think you had a web app to download on your basebeans.com site but I'm not sure what to download to see this in action (should I look at the Portal download?) For the sake of this discussion lets consider an application that would allow a user to view Employees, insert an employee, update an employee etc. (I'm thinking of updating my lessons, with your approval of course, to incorporate some of these ideas, but I want to make sure I understand them first:) Using the List backed BaseBean idea, it appears that all the ActionForm beans would extend BaseBean. I guess the big difference in this approach, compared to the others I've seen documented, is your Form beans are actually responsible for a lot more than just being holders for simple form field properties. So lets take a typical example of where a user wants to update Employee information on a form. I take it our EmployeeFormBean would have your usual firstName, lastName fields, but then rather than pass this bean off to be converted into a Data Transfer Object and then passed off to a model layer to be updated, you would instead simply do something like this in your Action: (in the execute or dispatch method of an Action called for doing an update): EmployeeFormBean emp = (EmployeeFormBean)form; emp.save(); // To do this would we need to override the BaseBean's save() method? I assume you also would need to provide an implementation of the BaseDAO's update(List l) method? I'm really starting to get lost here:) I think I need a simple walk through of what would take place upon a simple update of an employee. I'm also confused what would be held in this List (what type of objects is it holding) and how we would know what to update in the List? I also don't see how the DAOIBase fits into the picture (it has a doUpdate(List l, String s) method but none of the classes from the link you gave seem to implement it. The BaseBean seems to want implementations of DAO and not DAOIBase. I think I should stop asking questions until I first get a better handle on an example implentation of a BaseBean and what kind of objects are stored in the List that backs it. If the list is used for display purposes, such as for displaying a List of employees to the user, I get it (I think:).. you'd have an EmployeeFormBean (which extends BaseBean) that stores a List of EmployeeBean objects (not EmployeeFormBean objects). I'm not sure I have that use of the List backed Form Bean correct? Assuming I do, I'm still really confused on how the insert/update works using a BaseBean implementation. Where does the transfer take place from the FormBean fields that get submitted into a bean that some DAO could use to successfuly peform the insert/update? Im a bit under the weather so hopefully I didn't babble too much:) I'd really like to understand the implementation of a BaseBean better since it sounds very interesting (yet completely different from the way I've been using FormBeans so far). -- Rick Reumann Struttin' with Struts: http://www.reumann.net/do/struts/main - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
Excellent!!! I will take the tutorial. I am wondering what are you doing for your Data Base, is it JDBC or something else. .V Rick Reumann wrote: I created a web site that walks new Struts users step by step through the development of three VERY simple web applications in three lessons. Each lesson adds a few more features so that they build upon each other yet each stands alone such that if you follow the steps in any lesson you'll have built a very basic application regardless of which lesson you start with. I created these because there seemed to be lacking some more recent walk through Struts tutorials geared toward the very new Struts developer. I think real newbies will find them especially useful, but then again I could be way wrong:) I'm considering the site a beta because I'm sure there will be some mistakes. If anyone sees something I'm doing in a lesson that is way off (or a very bad practice) please let me know. Some of the stuff I know could be done in a more best practice way, but for the sake of trying to also keep the lessons small and simple some ideas weren't included (ie- I didn't use a constants interface for my forward definitions). If anyone wants to contribute, reword, or add anything please let me know. The site is there to help others. I got really lazy in a lot of places and didn't say much about certain things that I would have liked to. Hopefully over time the site will improve. Struttin' with Struts: http://www.reumann.net/do/struts/main - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Struttin' With Struts beta (newbies esp. welcome)
Good work Rick. I'm sure many users (new and not-so-new) will greatly benefit from your efforts. robert -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 2:37 AM To: Struts Users Mailing List Subject: [ANN] Struttin' With Struts beta (newbies esp. welcome) I created a web site that walks new Struts users step by step through the development of three VERY simple web applications in three lessons. Each lesson adds a few more features so that they build upon each other yet each stands alone such that if you follow the steps in any lesson you'll have built a very basic application regardless of which lesson you start with. I created these because there seemed to be lacking some more recent walk through Struts tutorials geared toward the very new Struts developer. I think real newbies will find them especially useful, but then again I could be way wrong:) I'm considering the site a beta because I'm sure there will be some mistakes. If anyone sees something I'm doing in a lesson that is way off (or a very bad practice) please let me know. Some of the stuff I know could be done in a more best practice way, but for the sake of trying to also keep the lessons small and simple some ideas weren't included (ie- I didn't use a constants interface for my forward definitions). If anyone wants to contribute, reword, or add anything please let me know. The site is there to help others. I got really lazy in a lot of places and didn't say much about certain things that I would have liked to. Hopefully over time the site will improve. Struttin' with Struts: http://www.reumann.net/do/struts/main -- Rick - 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: [ANN] Struttin' With Struts beta (newbies esp. welcome)
On Tue, 11 Mar 2003 06:49:54 -0500 Vic Cekvenich [EMAIL PROTECTED] wrote: Excellent!!! I will take the tutorial. I am wondering what are you doing for your Data Base, is it JDBC or something else. Thank you Vic. Actually since the lessons are very basic they don't even really touch the Model layer. They stop with a simple dummy call to service methods like: EmployeeDTO insertEmployee( EmployeeDTO employee ) { return employee; } My goal eventually is to build up to some model layer approaches on Database connectivity etc, but of course would have to run that stuff by you gurus :) as I'm still very weak in that area myself. Tentative lessons I'd like to see: Lesson IV - Tiles internationalization Lesson V - Accessing your model layer ( proper use of factories, services, DAOs etc.) nested tags It would be cool if someone wanted to create any of the above lessons following the same pattern of dealing with inserting/updating an employee. If each lesson follows the same functionality (with just added components/features) it makes it much easier for a new person to follow. Struttin' with Struts: http://www.reumann.net/do/struts/main -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
Rick, Good job, somehow I can't unzip war files, I am getting corrupt zip file exception. Mark. Rick Reumann wrote: I created a web site that walks new Struts users step by step through the development of three VERY simple web applications in three lessons. Each lesson adds a few more features so that they build upon each other yet each stands alone such that if you follow the steps in any lesson you'll have built a very basic application regardless of which lesson you start with. I created these because there seemed to be lacking some more recent walk through Struts tutorials geared toward the very new Struts developer. I think real newbies will find them especially useful, but then again I could be way wrong:) I'm considering the site a beta because I'm sure there will be some mistakes. If anyone sees something I'm doing in a lesson that is way off (or a very bad practice) please let me know. Some of the stuff I know could be done in a more best practice way, but for the sake of trying to also keep the lessons small and simple some ideas weren't included (ie- I didn't use a constants interface for my forward definitions). If anyone wants to contribute, reword, or add anything please let me know. The site is there to help others. I got really lazy in a lot of places and didn't say much about certain things that I would have liked to. Hopefully over time the site will improve. Struttin' with Struts: http://www.reumann.net/do/struts/main -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
On Tue, 11 Mar 2003 11:53:39 -0500 Mark Zeltser [EMAIL PROTECTED] wrote: Good job, somehow I can't unzip war files, I am getting corrupt zip file exception. I haven't tried to unzip a war file on Windows. Can you rename it to .zip and see what happens? You should just be able to plop it in your webapps directory and it'll expand for you. Struttin' with Struts: http://www.reumann.net/do/struts/main -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
Mark Zeltser wrote: Rick, Good job, somehow I can't unzip war files, I am getting corrupt zip file exception. Mark. Use jar -xf war file name War files are jar files, not zips. Your JDK should include the jar utility in its /bin directory. Rick Reumann wrote: I created a web site that walks new Struts users step by step through the development of three VERY simple web applications in three lessons. Each lesson adds a few more features so that they build upon each other yet each stands alone such that if you follow the steps in any lesson you'll have built a very basic application regardless of which lesson you start with. I created these because there seemed to be lacking some more recent walk through Struts tutorials geared toward the very new Struts developer. I think real newbies will find them especially useful, but then again I could be way wrong:) I'm considering the site a beta because I'm sure there will be some mistakes. If anyone sees something I'm doing in a lesson that is way off (or a very bad practice) please let me know. Some of the stuff I know could be done in a more best practice way, but for the sake of trying to also keep the lessons small and simple some ideas weren't included (ie- I didn't use a constants interface for my forward definitions). If anyone wants to contribute, reword, or add anything please let me know. The site is there to help others. I got really lazy in a lot of places and didn't say much about certain things that I would have liked to. Hopefully over time the site will improve. Struttin' with Struts: http://www.reumann.net/do/struts/main -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - 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: [ANN] Struttin' With Struts beta (newbies esp. welcome)
Thanks, I didn't notice it was in .war.zip format. Mark. Phil Steitz wrote: Mark Zeltser wrote: Rick, Good job, somehow I can't unzip war files, I am getting corrupt zip file exception. Mark. Use jar -xf war file name War files are jar files, not zips. Your JDK should include the jar utility in its /bin directory. Rick Reumann wrote: I created a web site that walks new Struts users step by step through the development of three VERY simple web applications in three lessons. Each lesson adds a few more features so that they build upon each other yet each stands alone such that if you follow the steps in any lesson you'll have built a very basic application regardless of which lesson you start with. I created these because there seemed to be lacking some more recent walk through Struts tutorials geared toward the very new Struts developer. I think real newbies will find them especially useful, but then again I could be way wrong:) I'm considering the site a beta because I'm sure there will be some mistakes. If anyone sees something I'm doing in a lesson that is way off (or a very bad practice) please let me know. Some of the stuff I know could be done in a more best practice way, but for the sake of trying to also keep the lessons small and simple some ideas weren't included (ie- I didn't use a constants interface for my forward definitions). If anyone wants to contribute, reword, or add anything please let me know. The site is there to help others. I got really lazy in a lot of places and didn't say much about certain things that I would have liked to. Hopefully over time the site will improve. Struttin' with Struts: http://www.reumann.net/do/struts/main -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - 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] -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Struttin' With Struts beta (newbies esp. welcome)
Winzip will open all of these and probably more: arc arj b64 bhx cab hqx lzh mim tar tgz gz z jar war ear sar uu uue xxe -- James Mitchell Software Developer/Struts Evangelist http://struts.sourceforge.net/struts-atlanta/ -Original Message- From: Phil Steitz [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 2:44 PM To: Struts Users Mailing List Subject: Re: [ANN] Struttin' With Struts beta (newbies esp. welcome) Mark Zeltser wrote: Rick, Good job, somehow I can't unzip war files, I am getting corrupt zip file exception. Mark. Use jar -xf war file name War files are jar files, not zips. Your JDK should include the jar utility in its /bin directory. Rick Reumann wrote: I created a web site that walks new Struts users step by step through the development of three VERY simple web applications in three lessons. Each lesson adds a few more features so that they build upon each other yet each stands alone such that if you follow the steps in any lesson you'll have built a very basic application regardless of which lesson you start with. I created these because there seemed to be lacking some more recent walk through Struts tutorials geared toward the very new Struts developer. I think real newbies will find them especially useful, but then again I could be way wrong:) I'm considering the site a beta because I'm sure there will be some mistakes. If anyone sees something I'm doing in a lesson that is way off (or a very bad practice) please let me know. Some of the stuff I know could be done in a more best practice way, but for the sake of trying to also keep the lessons small and simple some ideas weren't included (ie- I didn't use a constants interface for my forward definitions). If anyone wants to contribute, reword, or add anything please let me know. The site is there to help others. I got really lazy in a lot of places and didn't say much about certain things that I would have liked to. Hopefully over time the site will improve. Struttin' with Struts: http://www.reumann.net/do/struts/main -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANN] Struttin' With Struts beta (newbies esp. welcome)
I've got an idea that may be good for the model layer of your demo. I usually create implementations of my services that just use a class with one or more static maps for storing data. Downside, restart the app server and lose all your data. Upside, (1) it's a fast way to get going, (2) everyone will understand it, and (3) it's a good way to create a semi-working service for your demo without having to talk about the model layer, which is really a separate issue from struts. If you decide to write a tutorial about model technologies, it can be separate from the struts tutorial and just talk about how to implement your service, decoupling your tutorials like the model should be decoupled from the presentation. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 10:25 AM To: Struts Users Mailing List Subject: Re: [ANN] Struttin' With Struts beta (newbies esp. welcome) On Tue, 11 Mar 2003 06:49:54 -0500 Vic Cekvenich [EMAIL PROTECTED] wrote: Excellent!!! I will take the tutorial. I am wondering what are you doing for your Data Base, is it JDBC or something else. Thank you Vic. Actually since the lessons are very basic they don't even really touch the Model layer. They stop with a simple dummy call to service methods like: EmployeeDTO insertEmployee( EmployeeDTO employee ) { return employee; } My goal eventually is to build up to some model layer approaches on Database connectivity etc, but of course would have to run that stuff by you gurus :) as I'm still very weak in that area myself. Tentative lessons I'd like to see: Lesson IV - Tiles internationalization Lesson V - Accessing your model layer ( proper use of factories, services, DAOs etc.) nested tags It would be cool if someone wanted to create any of the above lessons following the same pattern of dealing with inserting/updating an employee. If each lesson follows the same functionality (with just added components/features) it makes it much easier for a new person to follow. Struttin' with Struts: http://www.reumann.net/do/struts/main -- Rick Reumann - 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: [ANN] Struttin' With Struts beta (newbies esp. welcome)
A good way to tell if win zip will open your archive is to create a shortcut on your desktop to winzip. Try to open the shortcut while dragging the file that you want to open. This works for Jar, War, Zip, Tar, Exe (That where created in winzip) and many other compressed file types. - Original Message - From: James Mitchell [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 2:50 PM Subject: RE: [ANN] Struttin' With Struts beta (newbies esp. welcome) Winzip will open all of these and probably more: arc arj b64 bhx cab hqx lzh mim tar tgz gz z jar war ear sar uu uue xxe -- James Mitchell Software Developer/Struts Evangelist http://struts.sourceforge.net/struts-atlanta/ -Original Message- From: Phil Steitz [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 2:44 PM To: Struts Users Mailing List Subject: Re: [ANN] Struttin' With Struts beta (newbies esp. welcome) Mark Zeltser wrote: Rick, Good job, somehow I can't unzip war files, I am getting corrupt zip file exception. Mark. Use jar -xf war file name War files are jar files, not zips. Your JDK should include the jar utility in its /bin directory. Rick Reumann wrote: I created a web site that walks new Struts users step by step through the development of three VERY simple web applications in three lessons. Each lesson adds a few more features so that they build upon each other yet each stands alone such that if you follow the steps in any lesson you'll have built a very basic application regardless of which lesson you start with. I created these because there seemed to be lacking some more recent walk through Struts tutorials geared toward the very new Struts developer. I think real newbies will find them especially useful, but then again I could be way wrong:) I'm considering the site a beta because I'm sure there will be some mistakes. If anyone sees something I'm doing in a lesson that is way off (or a very bad practice) please let me know. Some of the stuff I know could be done in a more best practice way, but for the sake of trying to also keep the lessons small and simple some ideas weren't included (ie- I didn't use a constants interface for my forward definitions). If anyone wants to contribute, reword, or add anything please let me know. The site is there to help others. I got really lazy in a lot of places and didn't say much about certain things that I would have liked to. Hopefully over time the site will improve. Struttin' with Struts: http://www.reumann.net/do/struts/main -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - 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] - 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: [ANN] Struttin' With Struts beta (newbies esp. welcome)
I just add it to my right click menu. For 2000 and XP, you can do it using 'open with' context menu. With 98 and NT, you can do it in the Registry. I hope saying 'do it in the Registry' doesn't get hung up in our scan mail :D -- James Mitchell Software Developer/Struts Evangelist http://struts.sourceforge.net/struts-atlanta/ -Original Message- From: Daniel Jaffa [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 4:12 PM To: Struts Users Mailing List Subject: Re: [ANN] Struttin' With Struts beta (newbies esp. welcome) A good way to tell if win zip will open your archive is to create a shortcut on your desktop to winzip. Try to open the shortcut while dragging the file that you want to open. This works for Jar, War, Zip, Tar, Exe (That where created in winzip) and many other compressed file types. - Original Message - From: James Mitchell [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 2:50 PM Subject: RE: [ANN] Struttin' With Struts beta (newbies esp. welcome) Winzip will open all of these and probably more: arc arj b64 bhx cab hqx lzh mim tar tgz gz z jar war ear sar uu uue xxe -- James Mitchell Software Developer/Struts Evangelist http://struts.sourceforge.net/struts-atlanta/ -Original Message- From: Phil Steitz [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 2:44 PM To: Struts Users Mailing List Subject: Re: [ANN] Struttin' With Struts beta (newbies esp. welcome) Mark Zeltser wrote: Rick, Good job, somehow I can't unzip war files, I am getting corrupt zip file exception. Mark. Use jar -xf war file name War files are jar files, not zips. Your JDK should include the jar utility in its /bin directory. Rick Reumann wrote: I created a web site that walks new Struts users step by step through the development of three VERY simple web applications in three lessons. Each lesson adds a few more features so that they build upon each other yet each stands alone such that if you follow the steps in any lesson you'll have built a very basic application regardless of which lesson you start with. I created these because there seemed to be lacking some more recent walk through Struts tutorials geared toward the very new Struts developer. I think real newbies will find them especially useful, but then again I could be way wrong:) I'm considering the site a beta because I'm sure there will be some mistakes. If anyone sees something I'm doing in a lesson that is way off (or a very bad practice) please let me know. Some of the stuff I know could be done in a more best practice way, but for the sake of trying to also keep the lessons small and simple some ideas weren't included (ie- I didn't use a constants interface for my forward definitions). If anyone wants to contribute, reword, or add anything please let me know. The site is there to help others. I got really lazy in a lot of places and didn't say much about certain things that I would have liked to. Hopefully over time the site will improve. Struttin' with Struts: http://www.reumann.net/do/struts/main -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
On Tue, 11 Mar 2003 16:10:47 -0500 Derek Richardson [EMAIL PROTECTED] wrote: I've got an idea that may be good for the model layer of your demo. I usually create implementations of my services that just use a class with one or more static maps for storing data. Actually I used that approach in another demo and had the objects serialized so they persisted. I was too lazy in these lessons to add that extra functionality but probably will do so in a future lesson (or a reworking of the existing ones). -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
These tutorials rock, even for people that have been using struts for a while. Nothing beats reviewing concepts from the ground up over and over. You always pick up something new. That is why I love reading linux tutorials even after 3 years of using it. One suggesion: In the first tutorial you make use of html:link and explain its purpose, but you leave out using the action attribute and substitute it for page instead. I think it might be better for the sake of the tutorial to make it html:link action=/setupEmployeeFormAdd Employee/html:link The reason I say that is because new users need to grasp the concept that the URL is not actually a page but rather a server command, which is interpretted by the controller to be an Action followed by a View. Also, it is good to keep any references to the action mapping patter out of the View so that if you need to change from /do/* - *.do you can do so by only updating your two configuration files (web.xml and struts-config.xml) and not have to call up your JSP developer and tell him that all action patterns need to be changed. the page attribute should really only be used for assets, since all jsp pages should be masked by an action anyway. I hope you find my defense to be clear. Please respond if you have any objections/rebutals. Thank you so very much. I will do my absolute best to try to donate at least some portion of a tutorial once I get a few projects off my plate here. Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, [EMAIL PROTECTED] http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - umm... i guess this is my signature. 8-} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
Two more comments: In the second tutorial, you are preparing the employeeForm using the SetUpEmployeeAction. In doing so, you run employeeForm.setDepartment(2); Shouldn't you instead set the default department selection in the form reset() method? Naturally the reset() method is the incorrect place to populate the options, but it is a good place to define which one will be selected by default. In regards to the discussion on using Tokens for the forward mapping keys (such as success and continue) you may also want to note that doing so allows you to have two tokens point to the same definition. In short Tokens.SUCCESS_KEY = success; Tokens.CONTINUE_KEY = success; So you can really play with the means of your Action class without having to bother the Action class. In short the action class shouldn't really care what view is choosen or its meaning, it just deals with the general workflow, such as success failure continue redo Dan -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Daniel Allen, [EMAIL PROTECTED] http://www.mojavelinux.com/ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - If you still don't like it, that's ok: that's why I'm boss. I simply know better than you do. -- Linus Torvalds - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN] Struttin' With Struts beta (newbies esp. welcome)
I created a web site that walks new Struts users step by step through the development of three VERY simple web applications in three lessons. Each lesson adds a few more features so that they build upon each other yet each stands alone such that if you follow the steps in any lesson you'll have built a very basic application regardless of which lesson you start with. I created these because there seemed to be lacking some more recent walk through Struts tutorials geared toward the very new Struts developer. I think real newbies will find them especially useful, but then again I could be way wrong:) I'm considering the site a beta because I'm sure there will be some mistakes. If anyone sees something I'm doing in a lesson that is way off (or a very bad practice) please let me know. Some of the stuff I know could be done in a more best practice way, but for the sake of trying to also keep the lessons small and simple some ideas weren't included (ie- I didn't use a constants interface for my forward definitions). If anyone wants to contribute, reword, or add anything please let me know. The site is there to help others. I got really lazy in a lot of places and didn't say much about certain things that I would have liked to. Hopefully over time the site will improve. Struttin' with Struts: http://www.reumann.net/do/struts/main -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
thanx a lot for the concept, great work rick. regards, amit malhotra - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Welcome back Eddie (Was RE: ASP == STRUTS)
Eddie Bush...now *that's* a name I hadn't heard in a while. Welcome back... Sri -Original Message- From: Eddie Bush [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20, 2003 10:32 AM To: Struts Users Mailing List Subject: Re: ASP == STRUTS You're not likely to have much success with doing that -- unless you have a Servlet container running behind IIS. Apache Tomcat (a servlet container) can be run under MS IIS using a special driver -- and I believe that is supposed to work quite well. I would imagine other vendors of servlet containers also provide a mechanism by which you could run their servlet container under IIS -- seeing as how M$ is used a lot (but less than Apache! :-P) I can't vouch for how the ASP stuff would work in conjunction with your JSP stuff, but my guess is that they are not something that would play well together. You couldn't manipulate one with the other very well I wouldn't think. The one way around this I can think of would be through standard request/response mechanisms -- where you would perhaps send data, via a HTTP request, to one from the other -- everything is compatible at that level. Priyank Johri wrote: Hello, Has anyone experimented with Struts on some application server, but ASPs on IIS ? Priyank -- Eddie Bush - 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]
Welcome
The only person I am concerned about is the one who wrote Wellcome! - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 23, 2002 12:08 AM Subject: Re: This guy from the bank raised a question ? filtering all mail from [EMAIL PROTECTED] directly into the trash ... ah, that's better. From: Zahid Rahman [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: This guy from the bank raised a question ? Date: Mon, 23 Sep 2002 00:02:36 +0100 dsfd sdgfdskjgh aalgda dfjg dfkhsl ;lhg sdfdsjhg kjhl hfkj h fd kjj sihkj jfkdhg hlkjs hlkds lks lk fkgjfh glfd hgs dfdfg dfj j ud OK. - Original Message - From: Tero P Paananen [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, September 22, 2002 11:08 PM Subject: RE: This guy from the bank raised a question ? In future address me directly. You can call me Mr. Rahman or Sir. Mr. Zahid, Sir, kindly realise that today is not Friday. Whoever let their Friday posting bot loose, please come and collect it. -TPP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Error: Cannot retrieve ActionForward named welcome
I defined the following configuration: index.jsp: logic:redirect forward=welcome/ struts-config.xml: global-forwards forward name=welcome path=/Welcome.do / /global-forwards action-mappings action path=/Welcome type=org.apache.struts.actions.ForwardAction parameter=pages/Welcome.jsp / /action-mappings welcome.jsp: tiles:insert definition=site.login.page flush=true / When I run the application I have the error javax.servlet.ServletException: Cannot create redirect URL: java.net.MalformedURLException: Cannot retrive ActionForward named welcome I don't understand this error. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Error: Cannot retrieve ActionForward named welcome
We're case-sensitive. welcome != Welcome. You defined your foward as Welcome and then asked for welcome -- it does not exist. Change forward=welcome to forward=Welcome. Heligon Sandra wrote: I defined the following configuration: index.jsp: logic:redirect forward=welcome/ struts-config.xml: global-forwards forward name=welcome path=/Welcome.do / /global-forwards action-mappings action path=/Welcome type=org.apache.struts.actions.ForwardAction parameter=pages/Welcome.jsp / /action-mappings welcome.jsp: tiles:insert definition=site.login.page flush=true / When I run the application I have the error javax.servlet.ServletException: Cannot create redirect URL: java.net.MalformedURLException:Cannot retrive ActionForward named welcome I don't understand this error. -- Eddie Bush -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Error: Cannot retrieve ActionForward named welcome
Sorry - I didn't look closely enough (in a hurry to get out the door for an appointment). I don't see a problem ... Heligon Sandra wrote: I defined the following configuration: index.jsp: logic:redirect forward=welcome/ struts-config.xml: global-forwards forward name=welcome path=/Welcome.do / /global-forwards action-mappings action path=/Welcome type=org.apache.struts.actions.ForwardAction parameter=pages/Welcome.jsp / /action-mappings welcome.jsp: tiles:insert definition=site.login.page flush=true / When I run the application I have the error javax.servlet.ServletException: Cannot create redirect URL: java.net.MalformedURLException:Cannot retrive ActionForward named welcome I don't understand this error. -- Eddie Bush -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
The Shifting Session Action.LOCALE_KEY Value Mystery -- Sleuths Welcome!
I use the following page to set the session Action.LOCALE_KEY to some language. (I know, it could be done differently.) This works great except I get the correct Action.LOCALE_KEY value for every page except index.jsp. Why would that be? I had this configured before so the index page also worked. Now, if I set the language to, say lang=ko, it works in every page but the index page and the index page shows that the session object is different than the session object is on every other page. That is nutty. Anyone have an idea? %@ page language=java import=java.util.*,org.apache.struts.action.* contentType=text/html;charset=utf-8 % %@ taglib uri=template prefix=template % %@ taglib uri=bean prefix=bean % %@ taglib uri=html prefix=html % html:html locale=true % String language = null; String localeValue = request.getParameter(locale); if(localeValue != null) { language = localeValue.substring(0, 2); response.setContentType(text/html;charset=utf-8); Locale newLocale = new Locale(language); session.setAttribute(Action.LOCALE_KEY, newLocale); } % template:insert template=../template/template_work.jsp template:put name=title content=../title/language_title.jsp/ template:put name=navigation content=../navigation/standard_navigation.jsp/ template:put name=content content=../content/language_content.jsp/ /template:insert /html:html -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: The Shifting Session Action.LOCALE_KEY Value Mystery -- Sleuths Welcome!
On this situation, if the index page is in another language, it works on the index.jsp page fine, i.e., if I set my browser to Italian, Chinese, etc. it will show up correctly. At 01:49 PM 9/10/2002 -0700, you wrote: I use the following page to set the session Action.LOCALE_KEY to some language. (I know, it could be done differently.) This works great except I get the correct Action.LOCALE_KEY value for every page except index.jsp. Why would that be? I had this configured before so the index page also worked. Now, if I set the language to, say lang=ko, it works in every page but the index page and the index page shows that the session object is different than the session object is on every other page. That is nutty. Anyone have an idea? %@ page language=java import=java.util.*,org.apache.struts.action.* contentType=text/html;charset=utf-8 % %@ taglib uri=template prefix=template % %@ taglib uri=bean prefix=bean % %@ taglib uri=html prefix=html % % String language = null; String localeValue = request.getParameter(locale); if(localeValue != null) { language = localeValue.substring(0, 2); response.setContentType(text/html;charset=utf-8); Locale newLocale = new Locale(language); session.setAttribute(Action.LOCALE_KEY, newLocale); } % -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
struts-blank from nightly build:forward=welcome ,but show welcome.do as URL
it same very strange,in the web.xml,it is configured that any request such as name.do will be forward to servlet name(and the url will also be like **/name),but now in the struts-blank example,request is welcome(forward is alse a request?),but the URL shown in the browse is **/welcom.do and also plus ;jsessionid=6412CB72925D25CF20CCED7063B3D22F. Does the struts use url rewritting for every request? %@ taglib uri=/tags/struts-logic prefix=logic % logic:redirect forward=welcome/ _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: struts-blank from nightly build:forward=welcome ,but showwelcome.do as URL
On Wed, 28 Aug 2002, wu qihua wrote: Date: Wed, 28 Aug 2002 01:22:44 + From: wu qihua [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: struts-blank from nightly build:forward=welcome , but show welcome.do as URL it same very strange,in the web.xml,it is configured that any request such as name.do will be forward to servlet name(and the url will also be like **/name),but now in the struts-blank example,request is welcome(forward is alse a request?),but the URL shown in the browse is **/welcom.do and also plus ;jsessionid=6412CB72925D25CF20CCED7063B3D22F. Does the struts use url rewritting for every request? Struts calls the URL rewriting functions for you on every request. However, after the *first* request for a session, the servlet container will recognize that you have cookies on and stop adding the session id on to the URLs that it generates. Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Welcome file and struts
Hi folks! I have got a question concerning the welcome file in the web.xml. I have tried the following: welcome-file-list welcome-file/index.do/welcome-file /welcome-file-list Could it be that tomcat has problems with this because the file doesn´t physically exist? The reason for assuming this is that index.vm (velocity template) seems to work!? Could someone please give me some guidelines on how to get tomcat to load my index.do on startup. Any help would be really appreciated. Thanks, Michael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Welcome file and struts
I don´t want get impatient ;-), but usually there is a lot more action here! It´s just my luck that when I answer a question, everyone seems to be on vacation :-) ! Has anyone else experienced this problem? Is there a workaround? Thanks, Michael - Original Message - From: Michael Delamere [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 16, 2002 10:32 AM Subject: Welcome file and struts Hi folks! I have got a question concerning the welcome file in the web.xml. I have tried the following: welcome-file-list welcome-file/index.do/welcome-file /welcome-file-list Could it be that tomcat has problems with this because the file doesn´t physically exist? The reason for assuming this is that index.vm (velocity template) seems to work!? Could someone please give me some guidelines on how to get tomcat to load my index.do on startup. Any help would be really appreciated. Thanks, Michael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re[2]: Welcome file and struts
That topic was discussed here http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34650.html Darek Friday, August 16, 2002, 12:30:00 PM, you wrote: MD I don´t want get impatient ;-), but usually there is a lot more action here! MD It´s just my luck that when I answer a question, everyone seems to be on MD vacation :-) ! MD Has anyone else experienced this problem? Is there a workaround? MD Thanks, MD Michael MD - Original Message - MD From: Michael Delamere [EMAIL PROTECTED] MD To: Struts Users Mailing List [EMAIL PROTECTED] MD Sent: Friday, August 16, 2002 10:32 AM MD Subject: Welcome file and struts Hi folks! I have got a question concerning the welcome file in the web.xml. I have tried the following: welcome-file-list welcome-file/index.do/welcome-file /welcome-file-list Could it be that tomcat has problems with this because the file doesn´t physically exist? The reason for assuming this is that index.vm (velocity template) seems to work!? Could someone please give me some guidelines on how to get tomcat to load MD my index.do on startup. Any help would be really appreciated. Thanks, Michael -- Best regards, Dariusz Wojtas mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Welcome file and struts
Oops. Sorry guess I missed the original post! Yeh. I couldnt get this one to work either. Darn nuisance. I ended up creating a very simple .html file that used a meta refresh to redirect to the required action thusly: html head meta http-equiv=refresh content=0;URL='preLogin.do'/ /head body nbsp; /body /html -Original Message- From: Michael Delamere [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 18:30 To: Struts Users Mailing List Subject: Re: Welcome file and struts I don´t want get impatient ;-), but usually there is a lot more action here! It´s just my luck that when I answer a question, everyone seems to be on vacation :-) ! Has anyone else experienced this problem? Is there a workaround? Thanks, Michael - Original Message - From: Michael Delamere [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 16, 2002 10:32 AM Subject: Welcome file and struts Hi folks! I have got a question concerning the welcome file in the web.xml. I have tried the following: welcome-file-list welcome-file/index.do/welcome-file /welcome-file-list Could it be that tomcat has problems with this because the file doesn´t physically exist? The reason for assuming this is that index.vm (velocity template) seems to work!? Could someone please give me some guidelines on how to get tomcat to load my index.do on startup. Any help would be really appreciated. Thanks, Michael -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Re[2]: Welcome file and struts
thanks! Nevertheless, it´s fairly quiet for a friday :-) ! Regards, Michael p.s. I found another solution which involved a META-Refresh, but I think the thread below has a better solution (if it works :-) ). - Original Message - From: Dariusz Wojtas [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 16, 2002 12:30 PM Subject: Re[2]: Welcome file and struts That topic was discussed here http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34650.html Darek Friday, August 16, 2002, 12:30:00 PM, you wrote: MD I don´t want get impatient ;-), but usually there is a lot more action here! MD It´s just my luck that when I answer a question, everyone seems to be on MD vacation :-) ! MD Has anyone else experienced this problem? Is there a workaround? MD Thanks, MD Michael MD - Original Message - MD From: Michael Delamere [EMAIL PROTECTED] MD To: Struts Users Mailing List [EMAIL PROTECTED] MD Sent: Friday, August 16, 2002 10:32 AM MD Subject: Welcome file and struts Hi folks! I have got a question concerning the welcome file in the web.xml. I have tried the following: welcome-file-list welcome-file/index.do/welcome-file /welcome-file-list Could it be that tomcat has problems with this because the file doesn´t physically exist? The reason for assuming this is that index.vm (velocity template) seems to work!? Could someone please give me some guidelines on how to get tomcat to load MD my index.do on startup. Any help would be really appreciated. Thanks, Michael -- Best regards, Dariusz Wojtas mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]