Mapping struts.xml actions to their full URL

2019-03-11 Thread shonlevin1234
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-



bar2.jsp



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-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Mapping struts.xml actions to their full URL

2019-03-11 Thread Dave Newton
The "servlet prefix" (whatever that is) is dependent on the deployment, not
the app.

On Mon, Mar 11, 2019 at 8:22 AM shonlevin1...@gmail.com <
shonlevin1...@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-
>
> 
> 
> bar2.jsp
> 
> 
>
> 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-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-- 
em: davelnew...@gmail.com
mo: 908-380-8699
tw: @dave_newton 
li: dave-newton 
gh: davelnewton 
so: Dave Newton 
bl[0]: Bucky Bits 
bl[1]: Maker's End Blog 
sk: davelnewton_skype


Spring Boot + Struts2 Convention Plugin Not Working

2019-03-11 Thread Rubens Gomes
I using Spring Boot + Struts2, and the convention plugin is not working.  That, 
is the request URL paths are not being automatically mapped  to their 
corresponding action classes at all.

Spring Boot: 1.5.19.RELEASE
Struts2: 2.5.20
Java VM JDK 1.8
Maven

I have the struts2-convention-plugin in my maven POM dependencies.  And I have 
registered the Struts2 StrutsPrepareAndExecuteFilter as a bean in Spring Boot, 
and the filter gets called in  the request filter chain. However, it is not 
resolving the incoming path to an action class using the convention plugin.

Below is a portion of my struts.xml:

http://struts.apache.org/dtds/struts-2.5.dtd";>

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  

  

  true
  ERROR
  com.ezlista
  dojo\..*,^struts\..*,^session\..*,^request\..*,^application\..*,^servlet(Request|Response)\..*,parameters\...*,^_csrf

  




  
.







HashMap with String as key

2019-03-11 Thread Prasanth
Hi,

When you have a HashMap backed form and String as key, are there any 
restrictions on the characters allowed?

I have keys like "2432-123" as I have to incorporate two ids in the key. When I 
have these keys the HashMap is not getting populated. If I change it, so that 
there is only one id (no hyphen) then the
data is getting posted as expected.

Thanks,
Prasanth


Migrating from Struts 1.2 to recent Struts

2019-03-11 Thread davidrobertwoosley
I'm forced to migrate a sizable application from Struts 1.2 to something 
recent, and I don't know where to start. I understand that Struts 1.2 is 
~ancient~ history and no longer supported in any way, shape or form. But it 
must be done.

How can I accomplish such a migration?

Thanks,

David


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



Re: Mapping struts.xml actions to their full URL

2019-03-11 Thread shonlevin1234



On 2019/03/11 12:42:14, Dave Newton  wrote: 
> The "servlet prefix" (whatever that is) is dependent on the deployment, not
> the app.
> 
> On Mon, Mar 11, 2019 at 8:22 AM shonlevin1...@gmail.com <
> shonlevin1...@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-
> >
> > 
> > 
> > bar2.jsp
> > 
> > 
> >
> > 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-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 
> -- 
> em: davelnew...@gmail.com
> mo: 908-380-8699
> tw: @dave_newton 
> li: dave-newton 
> gh: davelnewton 
> so: Dave Newton 
> bl[0]: Bucky Bits 
> bl[1]: Maker's End Blog 
> sk: davelnewton_skype
> Not sure you understood my question... a servlet is associated with a 
> specific web application so how can I know for every action in struts.xml to 
> which servlet it's mapped? 

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



Re: Mapping struts.xml actions to their full URL

2019-03-11 Thread shonlevin1234



On 2019/03/11 12:42:14, Dave Newton  wrote: 
> The "servlet prefix" (whatever that is) is dependent on the deployment, not
> the app.
> 
> On Mon, Mar 11, 2019 at 8:22 AM shonlevin1...@gmail.com <
> shonlevin1...@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-
> >
> > 
> > 
> > bar2.jsp
> > 
> > 
> >
> > 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-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
> 
> -- 
> em: davelnew...@gmail.com
> mo: 908-380-8699
> tw: @dave_newton 
> li: dave-newton 
> gh: davelnewton 
> so: Dave Newton 
> bl[0]: Bucky Bits 
> bl[1]: Maker's End Blog 
> sk: davelnewton_skype
> Not sure what do yo mean... a servlet is associated with a specific web 
> application so how can I get to which servlet each action is mapped to?

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



Re: Migrating from Struts 1.2 to recent Struts

2019-03-11 Thread Dave Newton
Kind of depends what you're migrating it to. Roughly speaking you copy your
business logic as-is and rewrite the web interface side of things.


On Mon, Mar 11, 2019 at 2:16 PM davidrobertwoos...@gmail.com <
davidrobertwoos...@gmail.com> wrote:

> I'm forced to migrate a sizable application from Struts 1.2 to something
> recent, and I don't know where to start. I understand that Struts 1.2 is
> ~ancient~ history and no longer supported in any way, shape or form. But it
> must be done.
>
> How can I accomplish such a migration?
>
> Thanks,
>
> David
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-- 
em: davelnew...@gmail.com
mo: 908-380-8699
tw: @dave_newton 
li: dave-newton 
gh: davelnewton 
so: Dave Newton 
bl[0]: Bucky Bits 
bl[1]: Maker's End Blog 
sk: davelnewton_skype