Jim,

The normal process is to call the action e.g. <a href="goMyPage.action">

Struts will then (eventually) call the actions execute () method. This
returns a string that is mapped to the correct jsp page using a file like
my-struts.xml. The mapping will look something like: -

    <action name="goMyPage" class="...MyPage">
        <result>/content/EverythingOK.jsp</result>
        <result name="error">/content/ErrorPage.jsp</result>
    </action>

If you don't follow this paradigm then the framework will not be able to
perform the actions processing work or make any data available to the JSP
page. In other words you won't be using the framework.

Of course you can link directly to an html page. However I don't see the
reason to link to a jsp page unless it can pull some dynamic content out
from the framework.

Does this help?

Kind Regards,

Steve

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

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

Reply via email to