RE: Struts 2 and Sitemesh

2008-05-19 Thread Asleson, Ryan

OK, I now get content.  I specified the wrong value in the 
tag's namespace attribute.
 

-Original Message-
From: Asleson, Ryan [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 16, 2008 2:27 PM
To: Struts Users Mailing List
Subject: RE: Struts 2 and Sitemesh


OK, doing that made the error go away, but none of the content is
showing up.  Hmm. 

-Original Message-
From: Relph,Brian [mailto:[EMAIL PROTECTED]
Sent: Friday, May 16, 2008 2:22 PM
To: Struts Users Mailing List
Subject: RE: Struts 2 and Sitemesh


You might try this:





You can also reference this issue:

https://issues.apache.org/struts/browse/WW-2079


Brian Relph

-Original Message-
From: Relph,Brian [mailto:[EMAIL PROTECTED]
Sent: Friday, May 16, 2008 2:14 PM
To: Struts Users Mailing List
Subject: RE: Struts 2 and Sitemesh


Can you provide your struts.xml? 

Brian Relph

-Original Message-
From: Asleson, Ryan [mailto:[EMAIL PROTECTED]
Sent: Friday, May 16, 2008 1:52 PM
To: Struts Users Mailing List
Subject: Struts 2 and Sitemesh

 
Hello,
 
I'm new to Struts 2 and have some experience with Sitemesh, but I'm
having trouble getting the two to work together.
 
I have defined a decorator like this:
 

/*.action


So it should be decorating anything that goes to Struts 2.  The
default.jsp file has a line that looks like this:
 
http://www.biworldwide.com/info/index.html> " />
 
When I run the page it fails with this error:
 
javax.servlet.ServletException: java.io.FileNotFoundException:
/myapp/include/footer.action
 
I know the decorator default.jsp is being applied because when I remove
the  tag from it there are no errors.
 
If I change the 's page attribute to be an external
website, it works too.
 
So, it looks like it's not getting the call to another internal action.
I've triple-check the path and it is correct.  In fact, I disabled
Sitemesh and went to the /myapp/include/footer.action and it displayed
correctly.
 
Here's what's in web.xml:
 
 
struts-cleanup
/*

 
   
sitemesh
/*

 

struts2
/*


I don't know what else to do.  Can anybody figure out what's going on??
 
Thank you!!
 
-Ryan
 
 

This e-mail message is being sent solely for use by the intended
recipient(s) and may contain confidential information.  Any unauthorized
review, use, disclosure or distribution is prohibited.  If you are not
the intended recipient, please contact the sender by phone or reply by
e-mail, delete the original message and destroy all copies. Thank you.

--
CONFIDENTIALITY NOTICE This message and any included attachments are
from Cerner Corporation and are intended only for the addressee. The
information contained in this message is confidential and may constitute
inside or non-public information under international, federal, or state
securities laws. Unauthorized forwarding, printing, copying,
distribution, or use of such information is strictly prohibited and may
be unlawful. If you are not the addressee, please promptly delete this
message and notify the sender of the delivery error by e-mail or you may
call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
(816)221-1024.

-
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 e-mail message is being sent solely for use by the intended
recipient(s) and may contain confidential information.  Any unauthorized
review, use, disclosure or distribution is prohibited.  If you are not
the intended recipient, please contact the sender by phone or reply by
e-mail, delete the original message and destroy all copies. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


This e-mail message is being sent solely for use by the intended recipient(s) 
and may contain confidential information.  Any unauthorized review, use, 
disclosure or distribution is prohibited.  If you are not the intended 
recipient, please contact the sender by phone or reply by e-mail, delete the 
original message and destroy all copies. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts 2 and Sitemesh

2008-05-16 Thread Jeromy Evans

Asleson, Ryan wrote:
 

 

 " />
 



When you use this tag, how does sitemesh invoke the action?  The 
exception implies its looking for a file and doesn't know it needs to 
invoke something through Struts2 Filter.  I'm not sure of the solution, 
but it should be a common SiteMesh question.


Relph,Brian wrote:

You might try this:






This works because the action is not invoked via the Filter.  Instead 
its invoked directly by the tag as the code emulates an invocation and 
action context, with the inherent risks already mentioned.  However, as 
the output from the action is written to the response, so I'm not sure 
how SiteMesh would know how to decorate only that section.


You could try using the s:include tag as it works differently than 
s:action, but I'm still not sure how sitemesh will go with it.


Which version of Struts2 are you using exactly?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts 2 and Sitemesh

2008-05-16 Thread Asleson, Ryan

OK, doing that made the error go away, but none of the content is
showing up.  Hmm. 

-Original Message-
From: Relph,Brian [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 16, 2008 2:22 PM
To: Struts Users Mailing List
Subject: RE: Struts 2 and Sitemesh


You might try this:





You can also reference this issue:

https://issues.apache.org/struts/browse/WW-2079


Brian Relph

-Original Message-
From: Relph,Brian [mailto:[EMAIL PROTECTED]
Sent: Friday, May 16, 2008 2:14 PM
To: Struts Users Mailing List
Subject: RE: Struts 2 and Sitemesh


Can you provide your struts.xml? 

Brian Relph

-Original Message-
From: Asleson, Ryan [mailto:[EMAIL PROTECTED]
Sent: Friday, May 16, 2008 1:52 PM
To: Struts Users Mailing List
Subject: Struts 2 and Sitemesh

 
Hello,
 
I'm new to Struts 2 and have some experience with Sitemesh, but I'm
having trouble getting the two to work together.
 
I have defined a decorator like this:
 

/*.action


So it should be decorating anything that goes to Struts 2.  The
default.jsp file has a line that looks like this:
 
http://www.biworldwide.com/info/index.html> " />
 
When I run the page it fails with this error:
 
javax.servlet.ServletException: java.io.FileNotFoundException:
/myapp/include/footer.action
 
I know the decorator default.jsp is being applied because when I remove
the  tag from it there are no errors.
 
If I change the 's page attribute to be an external
website, it works too.
 
So, it looks like it's not getting the call to another internal action.
I've triple-check the path and it is correct.  In fact, I disabled
Sitemesh and went to the /myapp/include/footer.action and it displayed
correctly.
 
Here's what's in web.xml:
 
 
struts-cleanup
/*

 
   
sitemesh
/*

 

struts2
/*


I don't know what else to do.  Can anybody figure out what's going on??
 
Thank you!!
 
-Ryan
 
 

This e-mail message is being sent solely for use by the intended
recipient(s) and may contain confidential information.  Any unauthorized
review, use, disclosure or distribution is prohibited.  If you are not
the intended recipient, please contact the sender by phone or reply by
e-mail, delete the original message and destroy all copies. Thank you.

--
CONFIDENTIALITY NOTICE This message and any included attachments are
from Cerner Corporation and are intended only for the addressee. The
information contained in this message is confidential and may constitute
inside or non-public information under international, federal, or state
securities laws. Unauthorized forwarding, printing, copying,
distribution, or use of such information is strictly prohibited and may
be unlawful. If you are not the addressee, please promptly delete this
message and notify the sender of the delivery error by e-mail or you may
call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1)
(816)221-1024.

-
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 e-mail message is being sent solely for use by the intended recipient(s) 
and may contain confidential information.  Any unauthorized review, use, 
disclosure or distribution is prohibited.  If you are not the intended 
recipient, please contact the sender by phone or reply by e-mail, delete the 
original message and destroy all copies. Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Struts 2 and Sitemesh

2008-05-16 Thread Relph,Brian

You might try this:





You can also reference this issue:

https://issues.apache.org/struts/browse/WW-2079


Brian Relph

-Original Message-
From: Relph,Brian [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 16, 2008 2:14 PM
To: Struts Users Mailing List
Subject: RE: Struts 2 and Sitemesh


Can you provide your struts.xml? 

Brian Relph

-Original Message-
From: Asleson, Ryan [mailto:[EMAIL PROTECTED]
Sent: Friday, May 16, 2008 1:52 PM
To: Struts Users Mailing List
Subject: Struts 2 and Sitemesh

 
Hello,
 
I'm new to Struts 2 and have some experience with Sitemesh, but I'm having 
trouble getting the two to work together.
 
I have defined a decorator like this:
 

/*.action


So it should be decorating anything that goes to Struts 2.  The default.jsp 
file has a line that looks like this:
 
http://www.biworldwide.com/info/index.html> " />
 
When I run the page it fails with this error:
 
javax.servlet.ServletException: java.io.FileNotFoundException:
/myapp/include/footer.action
 
I know the decorator default.jsp is being applied because when I remove the 
 tag from it there are no errors.
 
If I change the 's page attribute to be an external 
website, it works too.
 
So, it looks like it's not getting the call to another internal action.
I've triple-check the path and it is correct.  In fact, I disabled Sitemesh and 
went to the /myapp/include/footer.action and it displayed correctly.
 
Here's what's in web.xml:
 
 
struts-cleanup
/*

 
   
sitemesh
/*

 

struts2
/*


I don't know what else to do.  Can anybody figure out what's going on??
 
Thank you!!
 
-Ryan
 
 

This e-mail message is being sent solely for use by the intended recipient(s) 
and may contain confidential information.  Any unauthorized review, use, 
disclosure or distribution is prohibited.  If you are not the intended 
recipient, please contact the sender by phone or reply by e-mail, delete the 
original message and destroy all copies. Thank you.

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

-
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 2 and Sitemesh

2008-05-16 Thread Relph,Brian

Can you provide your struts.xml? 

Brian Relph

-Original Message-
From: Asleson, Ryan [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 16, 2008 1:52 PM
To: Struts Users Mailing List
Subject: Struts 2 and Sitemesh

 
Hello,
 
I'm new to Struts 2 and have some experience with Sitemesh, but I'm having 
trouble getting the two to work together.
 
I have defined a decorator like this:
 

/*.action


So it should be decorating anything that goes to Struts 2.  The default.jsp 
file has a line that looks like this:
 
http://www.biworldwide.com/info/index.html> " />
 
When I run the page it fails with this error:
 
javax.servlet.ServletException: java.io.FileNotFoundException:
/myapp/include/footer.action
 
I know the decorator default.jsp is being applied because when I remove the 
 tag from it there are no errors.
 
If I change the 's page attribute to be an external 
website, it works too.
 
So, it looks like it's not getting the call to another internal action.
I've triple-check the path and it is correct.  In fact, I disabled Sitemesh and 
went to the /myapp/include/footer.action and it displayed correctly.
 
Here's what's in web.xml:
 
 
struts-cleanup
/*

 
   
sitemesh
/*

 

struts2
/*


I don't know what else to do.  Can anybody figure out what's going on??
 
Thank you!!
 
-Ryan
 
 

This e-mail message is being sent solely for use by the intended recipient(s) 
and may contain confidential information.  Any unauthorized review, use, 
disclosure or distribution is prohibited.  If you are not the intended 
recipient, please contact the sender by phone or reply by e-mail, delete the 
original message and destroy all copies. Thank you.

--
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]