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.
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.
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
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 /
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
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
]
-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
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
=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
9 matches
Mail list logo