RE: Best practices - help

2003-06-24 Thread Steve Raeburn
You should not access the JSP directly. Always send requests to the Action which will return an ActionForward to the JSP. In your example you should always be accessing /myaction.do and never /MyLayer.jsp You seem to have it set up OK, but there's no need for your global forward to the JSP.

RE: Best practices - help

2003-06-24 Thread Steve Raeburn
You should not access the JSP directly. Always send requests to the Action which will return an ActionForward to the JSP. In your example you should always be accessing /myaction.do and never /MyLayer.jsp You seem to have it set up OK, but there's no need for your global forward to the JSP.

Re: Best practices - help

2003-06-24 Thread TopBid987654321
Hi Steve, The problem is that /MyLayer.jsp happens to be my welcome page. This page has to be displayed on start up.How do I get struts process my Action servlet,myAction, in order to give /MyLayer.jsp the content it needs? Thanks

Re: Best practices - help

2003-06-24 Thread Ted Husted
The simplest thing is to have a HTML page (index.html) redirect to a welcome action: html head META HTTP-EQUIV=Refresh CONTENT=0;URL=./Welcome.do /head body /body /html You can then have the welcome action forward to whatever you please. action path=/Welcome forward=/MyLayer.jsp /

RE: Best practices - help

2003-06-24 Thread Steve Raeburn
jsp file, not just a snippet!) Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 24, 2003 4:11 AM To: [EMAIL PROTECTED] Subject: Re: Best practices - help Hi Steve, The problem is that /MyLayer.jsp happens to be my welcome page. This page

RE: Best practices - help

2003-06-24 Thread Jerry Jalenak
Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 6:32 AM To: Struts Users Mailing List Subject: RE: Best practices - help have a welcome jsp

[OT] HTTP Error Page? [was RE: Best practices - help]

2003-06-24 Thread Jerry Jalenak
] -Original Message- From: Steve Raeburn [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2003 6:32 AM To: Struts Users Mailing List Subject: RE: Best practices - help have a welcome jsp page that redirects to your action: struts-config.xml: global-forwards forward name=welcome path

Re: Best practices - help

2003-06-24 Thread TopBid987654321
Thank you all for your useful suggestions. I have gotten it up working now with only something left which I wish it were not there: I have this '../myaction.do' trailling at the end of the URL which I wish it were not there. Preferable would have been /myaction.do after being called in the

RE: Best practices - help

2003-06-24 Thread Chris Reeves
=welcome/ (that's the whole jsp file, not just a snippet!) Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: June 24, 2003 4:11 AM To: [EMAIL PROTECTED] Subject: Re: Best practices - help Hi Steve, The problem is that /MyLayer.jsp happens