K.C.
Suzette Daniel wrote:
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-file>index.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]