PS
In that case, forward to another JSP on that file userInfo information
should not be used.
(2012/06/15 9:10), Takanori Hayashi wrote:
Hello Anjib,
Assumed that you made the distinction on validate method,
then if forwarded JSP page is using userInfo session like
${userInfo.use
Hello Anjib,
Assumed that you made the distinction on validate method,
then if forwarded JSP page is using userInfo session like
${userInfo.userName}
the same error is shown.
[Caused by: javax.servlet.jsp.JspException: Cannot find bean: "userInfo"
in any scope ]
Because you are us
On Thu, Jun 14, 2012 at 9:18 AM, Anjib Mulepati wrote:
> I don't think problem is mapping correct page from Action class. If you
> look into my initial code posting /changepassword need form validation so
> it calls the validate() method and since there is no data it fails. I have
> input="change
I don't think problem is mapping correct page from Action class. If you
look into my initial code posting /changepassword need form validation
so it calls the validate() method and since there is no data it fails. I
have input="changePasswordPage" which takes to the tile where it look
for the s
Hello Anjib,
[Error message]
Caused by: javax.servlet.jsp.JspException: Cannot find bean: "userInfo"
in any scope
[Cause]
If someone type direct URL http://localhost:8080/MyApp/changepassword.do,
no userInfo in the session.
Then userIsLoggedIn method returns false,
return mapping.findForwa
I am looking for such prevention measure. Right now for most action I
have Base action where it check whether user has logged in or not.
On 6/13/2012 1:21 PM, Dave Newton wrote:
On Wednesday, June 13, 2012, Anjib Mulepati wrote:
Where and how I do that?
In Struts 1.2 you'd use a custom reque
On Wednesday, June 13, 2012, Anjib Mulepati wrote:
> Where and how I do that?
In Struts 1.2 you'd use a custom request processor (or just a filter). Not
sure about 1.3.
How are you preventing access to protected pages now?
Dave
codes in the Action
ChangePasswordAction?
On Wed, Jun 13, 2012 at 10:58 PM, Dave Newton
wrote:
Then it's likely you're doing something wrong if you're forwarding
to a
page before creating the info that page needs.
Dave
On Wed, Jun 13, 2012 at 10:53 AM, Anjib Mulepati
Eve
;>/**
>>>>> *
>>>>> * @param oldPwd
>>>>> */
>>>>>public void setOldPwd(String oldPwd) {
>>>>>this.oldPwd = oldPwd;
>>>>>}
>>>>>
>>>&
ction
ChangePasswordAction?
On Wed, Jun 13, 2012 at 10:58 PM, Dave Newton
wrote:
Then it's likely you're doing something wrong if you're forwarding to a
page before creating the info that page needs.
Dave
On Wed, Jun 13, 2012 at 10:53 AM, Anjib Mulepati
Even though I put valida
>>>/**
>>> * This is the action called from the Struts framework.
>>> * @param mapping The ActionMapping used to select this instance.
>>> * @param request The HTTP Request we are processing.
>>> * @return set of errors.
>>> *
page before creating the info that page needs.
Dave
On Wed, Jun 13, 2012 at 10:53 AM, Anjib Mulepati
wrote:
Even though I put validation in ActionForm validate() method failure
will
take to changePasswordPage. I do have validation to check form field.
On 6/13/2012 9:17 AM, Dave Newton
}
>
>/**
> *
> * @param mapping
> * @param request
> */
>@Override
>public void reset(ActionMapping mapping, HttpServletRequest request) {
>userName = "";
>oldPwd = "";
>password = "";
&g
Mulepati
wrote:
Even though I put validation in ActionForm validate() method failure will
take to changePasswordPage. I do have validation to check form field.
On 6/13/2012 9:17 AM, Dave Newton wrote:
Maybe some sort of validation would be helpful.
Dave
On Wed, Jun 13, 2012 at 9:03 AM, Anjib Mulep
Newton wrote:
> >
> >> Maybe some sort of validation would be helpful.
> >>
> >> Dave
> >>
> >> On Wed, Jun 13, 2012 at 9:03 AM, Anjib Mulepati
> >> wrote:
> >>
> >> Hi All,
> >>>
> >>> I have
sswordPage. I do have validation to check form field.
>
>
> On 6/13/2012 9:17 AM, Dave Newton wrote:
>
>> Maybe some sort of validation would be helpful.
>>
>> Dave
>>
>> On Wed, Jun 13, 2012 at 9:03 AM, Anjib Mulepati
>> wrote:
>>
>> Hi
:
Hi All,
I have question regarding handling form submission by direct URL in Struts
1.3.8
I have a page to change password which user can access after they login.
URL for that page is
http://localhost:8080/MyApp/**changepassword.do<http://localhost:8080/MyApp/changepassword.do>
I have
Maybe some sort of validation would be helpful.
Dave
On Wed, Jun 13, 2012 at 9:03 AM, Anjib Mulepati wrote:
> Hi All,
>
> I have question regarding handling form submission by direct URL in Struts
> 1.3.8
>
> I have a page to change password which user can access after the
Hi All,
I have question regarding handling form submission by direct URL in
Struts 1.3.8
I have a page to change password which user can access after they login.
URL for that page is http://localhost:8080/MyApp/changepassword.do
I have action mapping as follow:
scope="request&q
set the constant in ur struts.xml file
removing the extension in url in struts 2
Jq Jr wrote:
>
> Hi All,
>
> Can anyone tell me how to remove the extension of url in struts 2 ?
>
> Like
> /login instead of
> /login.action
>
--
View this message in cont
.properties files.
> > Actually I am not using the struts.properties instead I am putting those
> > values in tag.
> > Is it required to have struts.properties to remove the extension?
> >
> >
> > Thanks
> >
> >
> > Jq Jr wrote:
&
g?
> And can you post your struts.xml and struts.properties files.
> Actually I am not using the struts.properties instead I am putting those
> values in tag.
> Is it required to have struts.properties to remove the extension?
>
>
> Thanks
>
>
> Jq Jr wrote:
>>
>&
?
Thanks
Jq Jr wrote:
>
> Hi All,
>
> Can anyone tell me how to remove the extension of url in struts 2 ?
>
> Like
> /login instead of
> /login.action
>
--
View this message in context:
http://www.nabble.com/removing-the-extension-in-url-in-struts-2-tp19760365p
be configured in the struts.properties
> struts.action.extension=action
>
> but i dont knoe if you can leave it empty.
>
> maybe you should consider to you the rest-plugin.
>
>
>
> Jq Jr schrieb:
>>
>> Hi All,
>>
>> Can anyone tell me how to remove the exten
Hi,
the extension can be configured in the struts.properties
struts.action.extension=action
but i dont knoe if you can leave it empty.
maybe you should consider to you the rest-plugin.
Jq Jr schrieb:
Hi All,
Can anyone tell me how to remove the extension of url in struts 2 ?
Like
/login
Hi All,
Can anyone tell me how to remove the extension of url in struts 2 ?
Like
/login instead of
/login.action
--
View this message in context:
http://www.nabble.com/removing-the-extension-in-url-in-struts-2-tp19760365p19760365.html
Sent from the Struts - User mailing list archive at
uillaume Carré
>>
>> ---------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/hiding-.ac
thanks. it works
i tried just
struts.action.extension=
and it works
2007/9/7, Guillaume Carré <[EMAIL PROTECTED]>:
>
> 2007/9/7, Mirbek Nosinov <[EMAIL PROTECTED]>:
> > How to hide .action extension in url for my actions
> >
> > for example
> > if i have url for my action like
> > http://localho
2007/9/7, Mirbek Nosinov <[EMAIL PROTECTED]>:
> How to hide .action extension in url for my actions
>
> for example
> if i have url for my action like
> http://localhost:8080/cms2/StartPage.action
>
> but i need like
> http://localhost:8080/cms2/StartPage
you can modify the extension in struts.pro
How to hide .action extension in url for my actions
for example
if i have url for my action like
http://localhost:8080/cms2/StartPage.action
but i need like
http://localhost:8080/cms2/StartPage
How can i do it?
Thanks in advanced
SURESH GUDIVADA wrote:
Hi,
I have tried using request.getRequestDispatcher.forward() and returning the
actionforward to null
I used the below code
String customURL = getcustomURL();
RequestDispatcher req = request.getRequestDispatcher(customURL);
req.forward(request, response);
But it is not
Hi,
I have tried using request.getRequestDispatcher.forward() and returning the
actionforward to null
I used the below code
String customURL = getcustomURL();
RequestDispatcher req = request.getRequestDispatcher(customURL);
req.forward(request, response);
But it is not working. it always pre-
Christopher Becker wrote:
By proxy action, do you refer to the external url that I have already
mentioned?
If so, that is what I am trying to circumvent. The external servlet
returns a response which I do not wish to display to the user of our
application and the format of the response (over whi
By proxy action, do you refer to the external url that I have already
mentioned?
If so, that is what I am trying to circumvent. The external servlet
returns a response which I do not wish to display to the user of our
application and the format of the response (over which I have no
control) does no
The easiest way imho is to submit to your proxy action, which submits
to external server, receives response and returns this response to
browser.
Michael.
On 1/4/06, Christopher Becker <[EMAIL PROTECTED]> wrote:
> Greetings all;
>
> I have a Struts app (v1.27) and wish to add a user form whose AC
Greetings all;
I have a Struts app (v1.27) and wish to add a user form whose ACTION is
a URL that is external to the application ( a remote servlet).
I want to provide a "message sent" confirmation page to the user, but
dont know how to do this with an external form submission. Is there a
way t
Not *entirely* true about bookmarking either, although admittedly it is
more work...
I had one frame-based site that required bookmarkability (is that a
word?) on every page. To accomplish that, I had a "Bookmark This Page"
link that fired a Javascript function to add the appropriate URL. I
Michael Jouravlev wrote:
On 12/5/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
Or the fourth option is to use framesets. Of course if you do this, with
any of these approaches, you'll be causing your users pain in that there
will be no way they can bookmark pages and the browser's Refresh option
In Fact, I have made the application in the way in which, back and refresh
buttons cannot be used. If the user at any point on time clicks back or
refresh, he is logged out and his session expires!! Also, since i am
maintaining session and security for the site, bookmarking of pages is not
allowed.
Got mistake to fix. Instead this:
> Michael Jouravlev wrote:
> You can go with a more elaborate path to avoid problems with Back
> button and implicit resubmits on page refresh. In this case you accept
> an initial request, no matter GET or POST. Then you redirect to a
> particular action processin
Michael Jouravlev wrote:
On 12/5/05, Deepa Khetan <[EMAIL PROTECTED]> wrote:
Hi,
Just a bit of a question. Can i do some thing in Struts, which will enable
me to show the same URL all the time, for my aplication?? i mean i do not
want to show in the URL which action mapping i am calling, as in,
On 12/5/05, Deepa Khetan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Just a bit of a question. Can i do some thing in Struts, which will enable
> me to show the same URL all the time, for my aplication?? i mean i do not
> want to show in the URL which action mapping i am calling, as in,
> https:// tha
Hi,
Just a bit of a question. Can i do some thing in Struts, which will enable
me to show the same URL all the time, for my aplication?? i mean i do not
want to show in the URL which action mapping i am calling, as in,
https:// thats it, for all my actions??
Regards,
Deepa
43 matches
Mail list logo