Re: How to disable character like Tilt(~) in the Action Name

2016-10-17 Thread Lukasz Lenart
It isn't but you have probably a default action ref defined e.g.
 and it's used to redirect to proper
action. Try login and using some non-default action with "~", e.g.
/~logout

2016-10-15 0:15 GMT+02:00 R Veach :
> Why are tilts(~) allowed and enabled by default?
> I thought struts would only look for URLs that match the action name in the
> config exactly, minus the extension.
> Are there other similar characters that struts will allow in the action url?
>
> On Thu, Oct 13, 2016 at 2:01 PM, Lukasz Lenart 
> wrote:
>
>> The simplest way is to define an excluded action as follow
>>
>> 
>>
>> 2016-10-13 14:00 GMT+02:00 Rajvinder Pal :
>> > Hi Everyone,
>> >
>> > I am trying to access the URL in the browser like below:-
>> >
>> > 1.) http://localhost:9084/myportal/login.do
>> > 2.) http://localhost:9084/myportal/~login.do
>> >
>> >
>> > struts.xml entry:-
>> >
>> > 
>> > 
>> > execute
>> > 
>> > /jsp/userlogin/loginPage.jsp
>> > 
>> >
>> >
>> >
>> > I am able to get the login page using both the URLs. I don't want to get
>> > the result  using second URL. PLease let me know if i need any
>> > configuration so that framework should not try to map ~login  to login in
>> > the struts.xml
>> >
>> > Regards,
>> > Rajvinder
>>
>> -
>> 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



Re: How to disable character like Tilt(~) in the Action Name

2016-10-14 Thread R Veach
Why are tilts(~) allowed and enabled by default?
I thought struts would only look for URLs that match the action name in the
config exactly, minus the extension.
Are there other similar characters that struts will allow in the action url?

On Thu, Oct 13, 2016 at 2:01 PM, Lukasz Lenart 
wrote:

> The simplest way is to define an excluded action as follow
>
> 
>
> 2016-10-13 14:00 GMT+02:00 Rajvinder Pal :
> > Hi Everyone,
> >
> > I am trying to access the URL in the browser like below:-
> >
> > 1.) http://localhost:9084/myportal/login.do
> > 2.) http://localhost:9084/myportal/~login.do
> >
> >
> > struts.xml entry:-
> >
> > 
> > 
> > execute
> > 
> > /jsp/userlogin/loginPage.jsp
> > 
> >
> >
> >
> > I am able to get the login page using both the URLs. I don't want to get
> > the result  using second URL. PLease let me know if i need any
> > configuration so that framework should not try to map ~login  to login in
> > the struts.xml
> >
> > Regards,
> > Rajvinder
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: How to disable character like Tilt(~) in the Action Name

2016-10-13 Thread Lukasz Lenart
The simplest way is to define an excluded action as follow



2016-10-13 14:00 GMT+02:00 Rajvinder Pal :
> Hi Everyone,
>
> I am trying to access the URL in the browser like below:-
>
> 1.) http://localhost:9084/myportal/login.do
> 2.) http://localhost:9084/myportal/~login.do
>
>
> struts.xml entry:-
>
> 
> 
> execute
> 
> /jsp/userlogin/loginPage.jsp
> 
>
>
>
> I am able to get the login page using both the URLs. I don't want to get
> the result  using second URL. PLease let me know if i need any
> configuration so that framework should not try to map ~login  to login in
> the struts.xml
>
> Regards,
> Rajvinder

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



How to disable character like Tilt(~) in the Action Name

2016-10-13 Thread Rajvinder Pal
Hi Everyone,

I am trying to access the URL in the browser like below:-

1.) http://localhost:9084/myportal/login.do
2.) http://localhost:9084/myportal/~login.do


struts.xml entry:-



execute

/jsp/userlogin/loginPage.jsp




I am able to get the login page using both the URLs. I don't want to get
the result  using second URL. PLease let me know if i need any
configuration so that framework should not try to map ~login  to login in
the struts.xml

Regards,
Rajvinder