struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: Mapping struts.xml actions to their full URL
Date Mon, 11 Mar 2019 12:42:14 GMT
The "servlet prefix" (whatever that is) is dependent on the deployment, not
the app.

On Mon, Mar 11, 2019 at 8:22 AM shonlevin1234@gmail.com <
shonlevin1234@gmail.com> wrote:

> As part of security tests we are doing, I have to map the actions appears
> in struts.xml to their full URLs. I know to connect between the namespace
> and the action name of every action from struts.xml, but how can I know
> which servlet refers to each action?
>
> For example, this is my struts.xml file-
>
> <package name="mypackage" namespace="/barspace">
>     <action name="bar" class="mypackage.simpleAction">
>         <result name="success" type="dispatcher">bar2.jsp</result>
>     </action>
> </package>
>
> I know that the URL contains the path "/barspace/bar.action" but how can I
> build the rest of the URL (with the servlet prefix as well)?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

-- 
em: davelnewton@gmail.com
mo: 908-380-8699
tw: @dave_newton <https://twitter.com/dave_newton>
li: dave-newton <https://www.linkedin.com/in/dave-newton/>
gh: davelnewton <https://github.com/davelnewton>
so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
bl[0]: Bucky Bits <http://buckybits.blogspot.com/>
bl[1]: Maker's End Blog <https://blog.makersend.com>
sk: davelnewton_skype

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message