RE: Struts Action in Welcome File List

2003-08-08 Thread Shashank Dixit
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

2003-08-06 Thread Mohan Radhakrishnan

  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

2003-07-31 Thread Jon Wynacht
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

2003-07-30 Thread Swaroop George
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

2003-07-30 Thread Bailey, Shane C.




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

2003-07-30 Thread Suzette Daniel
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

2003-07-30 Thread Karr, David
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

2003-07-30 Thread Bailey, Shane C.


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

2003-07-30 Thread John Cavacas
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

2003-07-29 Thread Jon Wynacht
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

2003-07-29 Thread John Cavacas
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

2003-07-29 Thread Jon Wynacht
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

2003-07-29 Thread Jon Wynacht
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

2003-07-29 Thread message message


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]