Hi,

I want to read object from database in the first action class (i.e. Fruit
fruit) to store it into session and then to call other action class method
for editing of that method, is it possible ?

--
Thx, Milan


newton.dave wrote:
> 
> --- On Fri, 6/13/08, Milan Milanovic <[EMAIL PROTECTED]> wrote:
>> I want to have two action classes, the first class called
>> SearchAction will search from database and show results in a jsp page. 
>> When user click some row I want to pass that value (through a session) to
>> another action class called EditAction which will then show that object 
>> for editing. Is this possible to define in Struts 2?
> 
> Pass *what* value? You can't "pass an object" to an action. You could pass
> an ID. You could use that to *retrieve* an object from the session, if
> your application is small enough that it can keep all those objects in
> session for all the users.
> 
> It's more likely you'd use the ID to get the full object from a database,
> though.
> 
> Dave
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-Struts-2--Two-action-classes---tp17824236p17825719.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to