There is. Create a simple action in your struts xml file and map it to the
framework class ActionSupport (com.opensymphony.xwork2.ActionSupport).

I haven't done this myself (although I have derived my actions from
ActionSupport). But I believe it will do what you want.

Cheers,

Steve

-----Original Message-----
From: Jim Collings [mailto:jlistn...@gmail.com] 
Sent: 15 May 2009 12:41
To: Struts Users Mailing List
Subject: Re: Problem dispatching in /content dir

Here's a bit of clarification:

page-one.jsp which is in /content
     |
     \-page-two      <--Have to use this to access page two because
it, also is in "/content". This means calling an empty "execute()".
          |
          \-page-two.jsp
               |
               \page-two  <--Page two action "page-two!dosomething"

Now I could put in a dummy action that just forwards to "page-two.jsp"
but why? It seems like there should be a better way.


Jim C.

On Fri, May 15, 2009 at 7:16 AM, Jim Collings <jlistn...@gmail.com> wrote:
>
> So I have a jsp that needs to submit to another jsp. Both are in /content.
When I use file-name.jsp I get 404. When I use file-name, I get the action
that file-name.jsp submits to.
>
> Any ideas on how I can work around this?
>
> Jim C.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to