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
Where and how I do that?
On 6/13/2012 12:19 PM, Dave Newton wrote:
Sure, redirect any request without a user info object to the login page.
Dave
(pardon brevity and typos, on cell)
On Jun 13, 2012 12:16 PM, "Anjib Mulepati" wrote:
i know that. My question was how we handle such direct URL.
Sure, redirect any request without a user info object to the login page.
Dave
(pardon brevity and typos, on cell)
On Jun 13, 2012 12:16 PM, "Anjib Mulepati" wrote:
> i know that. My question was how we handle such direct URL. Like in this
> case. Is there any mechanism to prevent?
>
> On 6/13/2
i know that. My question was how we handle such direct URL. Like in this
case. Is there any mechanism to prevent?
On 6/13/2012 12:07 PM, Jason Zheng wrote:
That's the problem, when you type the URL directly, the
LoginSubmitAction.execute() method will not be invoked, so the 'userinfo'
is not ex
That's the problem, when you type the URL directly, the
LoginSubmitAction.execute() method will not be invoked, so the 'userinfo'
is not exits in any scope.
On Wed, Jun 13, 2012 at 11:58 PM, Anjib Mulepati wrote:
> User info is put into session after they log in so its in
> LoginSubmitAction clas
User info is put into session after they log in so its in
LoginSubmitAction class.
public class LoginSubmitAction extends org.apache.struts.action.Action {
private static final String ERROR = "errorFront";
private static final String SUCCESS = "success";
private static Log log = L
I don't see anything that puts a user info into session (or request, I
forgot where it was), so it makes sense the JSP would fail.
[OT] In the future, consider removing useless, empty comments so people
trying to help have less work to do :)
Dave
On Wed, Jun 13, 2012 at 11:43 AM, Anjib Mulepati
1. Base Class
public abstract class BaseAction extends org.apache.struts.action.Action {
private static Log log = LogFactory.getLog("BaseAction");
/**
*
* @param mapping
* @param form
* @param request
* @param response
* @return
* @throws IOException
Anjib, would you like to show us the 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:5
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 wrote:
> Even though I put validation in ActionForm validate() method failure will
> take to changePasswordPage. I do have
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 Mulepati 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 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 tha
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" name="Change
: can I configure my actions in a way/somehow that they
>> execute different methods when called through different HTTP methods
>> e.g. GET, POST maybe even DELETE.
>>
>> Call the action's input method if it is a GET, call the execute method
>> if it is a POST. (Ma
Call the action's input method if it is a GET, call the execute method
if it is a POST. (Maybe you can even call it 'restful form handling' :-)
Anyway, I have to look into your suggestion as well -
Thanks again!
Cheers,
Gunnar
HTTP methods are * <http://en.wikipedia.org/wi
, call the execute method
if it is a POST. (Maybe you can even call it 'restful form handling' :-)
Anyway, I have to look into your suggestion as well -
Thanks again!
Cheers,
Gunnar
HTTP methods are * <http://en.wikipedia.org/wiki/Http>*
Don Brown wrote:
Yep, that
should wor
Yep, that should work almost exactly as you describe, although what I
would do is use a single action definition. You can specify exactly
what method to call either in the URL (via the action!method.action
syntax) or in your action definition. Say you make the default case
be "input" in your act
Hi,
I worked with Spring-MVC in my past projects and I really liked the idea
of my form actions/controllers to initialize my forms when I access them
with an HTTP GET and then process the forms with an HTTP POST. The nice
effect of this is that I have one single URL that does form
initializat
-Original Message-
From: Wendel Schultz [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 16, 2006 11:56 AM
To: Struts Users Mailing List
Subject: RE: WebWork's OGNL form handling - very RoR in approach.
Possible in Struts 1.x?
Ok. I meant to declare the private Product a
apache.org
Subject: WebWork's OGNL form handling - very RoR in approach. Possible
in Struts 1.x?
One very nice thing about WebWork and presumably Struts 2.x is the OGNL
form data scraping. RoR takes a similar approach. Though I realize
many will push back at the idea, I wrote a fairly straigh
One very nice thing about WebWork and presumably Struts 2.x is the OGNL
form data scraping. RoR takes a similar approach. Though I realize
many will push back at the idea, I wrote a fairly straightforward way to
accomplish putting the form information conveniently in the Action class
using XWork'
gt;
>
> -Original Message-
> From: Leon Rosenberg [mailto:[EMAIL PROTECTED]
> Sent: Friday, April 01, 2005 2:31 PM
> To: 'Struts Users Mailing List'
> Subject: AW: Form Handling Question Generic
>
> Hi,
>
> If you really don't need to validate
ailto:[EMAIL PROTECTED]
Sent: Friday, April 01, 2005 2:31 PM
To: 'Struts Users Mailing List'
Subject: AW: Form Handling Question Generic
Hi,
If you really don't need to validate but just to store a list of objects in
the db, i'd suggest to forget about action forms and work
presentation objects' created by
the action, which would make it also very dynamical on the backend side, and
storing maps is something each persistence layer implementation is able of.
> -----Ursprüngliche Nachricht-
> Von: Scott Purcell [mailto:[EMAIL PROTECTED]
> Gesendet: Frei
presentation objects' created by
the action, which would make it also very dynamical on the backend side, and
storing maps is something each persistence layer implementation is able of.
> -----Ursprüngliche Nachricht-
> Von: Scott Purcell [mailto:[EMAIL PROTECTED]
> Gesendet: Frei
Hello,
I have been building an appliction using the Struts framework for a couple of
weeks and am starting to get a good feel for using it. So far I have been using
ActionForms and am pleased with them.
As I was going over the job specification yesterday, I noticed I am coming up
on a large
It sounds like you would want to use a session-scoped form containing an
array of Strings representing the total set of the selections. Then
you would use to create the checkboxes on the form. As a
far as the paging/selecting by letter -- this is not too hard -- you
just need your Action to h
Could someone offer some input on the best way to handle the necessary form
logic described below?
I have a popup window and that looks similar to the following:
Search: [ ] [Find]
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z All
-
34 matches
Mail list logo