Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: [Struts] Init formbean value before Initialisation?

Thread Tools

Re: [Struts] Init formbean value before Initialisation?

Wendy S
Posts: n/a
Daniel Cloutier wrote:
> i've got 2 actions, 2 forms and 2 jsps... on jsp1 i receive userinput
> (e.g. the username) and i want to show it in the form on the next jsp
> (in a text-component). how can i accomplish this without scriptlets?
> can i access the second formbean in the action of the first jsp?

Please post some of your code. It's easier to talk about this using real
names of Action classes and Forms.

I'm guessing Action1 fortwards to JSP1 which has the username field (a
login form?) When you submit that, it goes back to Action1, which sees
that the value is present and forwards where?

Wendy in Chandler, AZ
"BTW, Lucifer just called and he needs a pair of ice skates "
James Turner on struts-dev, voting to release Struts 1.1 Final
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
questions about object initialization, default-init and value-init Jess C++ 4 05-04-2007 02:47 AM
Accessing Struts Formbean attributes from JSP Squishy Java 1 07-03-2006 01:00 PM
struts formbean array size dynamically Uwe Voigt Java 5 05-08-2006 05:15 AM
How to populate a ArrayList FormBean attribute? Eduardo Java 4 09-19-2004 05:22 AM
Re: [Struts] Init formbean value before Initialisation? Xavier Tarrago Java 0 06-30-2003 09:08 AM