Hi,
I've got the same problem. The solution is to use forwardPattern and
inputForward options to have complex, pattern based, repalcement of the uri
:
http://jakarta.apache.org/struts/userGuide/configuration.html#controller_con
fig
But after few tests and a look at the source code of struts b3
On Fri, 29 Nov 2002, Wendy Cameron wrote:
Date: Fri, 29 Nov 2002 09:22:20 +1000
From: Wendy Cameron [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: JSP's under WEB-INF... or not
I have been trying out
write a filter form JSP's
Regards Wendy
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 11:21 AM
To: Struts Users Mailing List
Subject: RE: JSP's under WEB-INF... or not
On Fri, 29 Nov 2002, Wendy Cameron wrote:
Date
On Mon, 2 Dec 2002, Wendy Cameron wrote:
Date: Mon, 2 Dec 2002 11:24:41 +1000
From: Wendy Cameron [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: JSP's under WEB-INF... or not
Yup this makes sense. I
-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 20, 2002 3:54 PM
To: Struts Users Mailing List
Subject: RE: JSP's under WEB-INF... or not
On Tue, 19 Nov 2002, David Graham wrote:
You can keep your jsps in public folders and protect them
Wouldnt it be easier and more portable to simply write a servlet filter that redirects
to accessDenide.screen view?
Regards Wendy
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Just curious - why would one choose to do this instead of simply
locating their JSP pages under WEB-INF (which is also portable)?
Well, the way I look at it, the WEB-INF is a container for application
resource files and meta data, not for the real application.
Also, if you put your stuff in
We are using tiles in this way without any problems.
We are using the tile-definition.xml
.
put name=mainContent value=/WEB-INF/customer/form/CustomerHistoryForm.jsp /
In addition, style sheets and inages work well with the rewrite tag.
Wendy Smoak [EMAIL PROTECTED] on 11/19/2002
Jeff wrote:
We are using tiles in this way without any problems.
We are using the tile-definition.xml
put name=mainContent
value=/WEB-INF/customer/form/CustomerHistoryForm.jsp /
Thank you! It's good to know someone has it working already. :) I'm only
up to the:
tiles:add value=header.jsp /
The only reason with struts to put the jsp's under the web-inf is to
guarantee that your actions are executed in the expected manner. If you
leave the jsp's in a public directory then it is possible to execute
them out of sequence or without the proper form load / unload since the
web server will
List' [EMAIL PROTECTED]
Subject: RE: JSP's under WEB-INF... or not
Date: Tue, 19 Nov 2002 18:42:52 -0500
The only reason with struts to put the jsp's under the web-inf is to
guarantee that your actions are executed in the expected manner. If you
leave the jsp's in a public directory
role-namenobody/role-name
/security-role
From: edgar [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: JSP's under WEB-INF... or not
Date: Tue, 19 Nov 2002 18:42:52 -0500
The only reason with struts to put the jsp's
List [EMAIL PROTECTED]
Subject: RE: JSP's under WEB-INF... or not
Date: Tue, 19 Nov 2002 21:54:00 -0800 (PST)
On Tue, 19 Nov 2002, David Graham wrote:
You can keep your jsps in public folders and protect them with this
security
rule in your web.xml file. This keeps your application portable
them big time about this. ;-)
--
Martin Cooper
David
From: Martin Cooper [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: JSP's under WEB-INF... or not
Date: Tue, 19 Nov 2002 21:54:00 -0800 (PST
logic:forward name=next /
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Friday, 7 June 2002 5:01 AM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: JSP's under WEB-INF?
In looking at the Struts doc, is there any reason why the following
Users Mailing List [EMAIL PROTECTED]
Subject: RE: JSP's under WEB-INF?
The best practices also points out using /do/* instead of /*.do so in
your example it should be /do/next.
Whether you use path matching or extension matching is mostly an issue of
personal taste, but one warning
Thats because you are not following the recommendation 100%
You should always go through an action.
even if next.jsp is a simple form..use /next.do instead
that way you can put this in your struts-config:
!-- go to next --
actionpath=/next
Ive re-written the struts-example to follow this pattern.
Heres the link...
http://struts-atlanta.open-tools.org/struts-example-jsp-mod.zip
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://struts-atlanta.open-tools.org
ICQ: 27651409
: JSP's under WEB-INF?
That's because you are not following the recommendation 100%
You should always go through an action.
even if next.jsp is a simple form..use /next.do instead
that way you can put this in your struts-config:
!-- go to next --
actionpath=/next
PROTECTED]]
Sent: Thursday, June 06, 2002 7:31 PM
To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]'
Subject: RE: JSP's under WEB-INF?
In looking at the Struts doc, is there any reason why the
following wouldn't
work just as well?
in the JSP
html:link forward=next
It sounds like you are using Struts in this application. The way you would
simply forward to a .jsp in Struts would be to access that .jsp from a
forward. This requires a couple of changed to the struts-config.xml..
In the action-mappings section add this line:
action path=/next
Ignore my I think you are using struts comment I just realized you are on
the Struts list [not the JUG list I thought I was replying to -- DOE!]
Nathan
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 4:23 PM
To: '[EMAIL PROTECTED]'
AOL;)
-Original Message-
From: Nathan Anderson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 7:39 PM
To: Struts Users Mailing List
Subject: RE: JSP's under WEB-INF?
Ignore my I think you are using struts comment I just realized
you are on
the Struts list [not the JUG
Thanks to everyone! Finally got everything in place in struts-config,
tested, and it works like a charm!
Jerry
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 6:47 PM
To: Struts Users Mailing List
Subject: RE: JSP's under WEB-INF?
Yes
The best practices also points out using /do/* instead of /*.do so in
your example it should be /do/next.
-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 06, 2002 5:30 PM
To: Struts Users Mailing List
Subject: RE: JSP's under WEB-INF
On Thu, 6 Jun 2002, James Ward wrote:
Date: Thu, 6 Jun 2002 18:16:41 -0600
From: James Ward [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: JSP's under WEB-INF?
The best practices also points out using
26 matches
Mail list logo