Re: [S2] - access to the action from a JSP page

2007-01-03 Thread Tom Jerry
why do I get this error ? java.lang.ClassCastException: org.apache.struts.validator.BeanValidatorForm at com.traveldesk.actions.MyRequestAction.AddRequest( MyRequestAction.java:49) public ActionForward AddRequest(...) { SubmitRequestForm submitRequestForm = (SubmitRequestForm)form; } pu

Re: [S2] - access to the action from a JSP page

2007-01-03 Thread Dariusz Wojtas
I wanted to access some complex object from the action inside the JSP page. My idea was to get access to the action, then to the object instance. Possibly this can be fixed by exposing the property as a ascriptlet variable and then casting it, ut I just wanted to know if this is allowed directly.

RE: [S2] - access to the action from a JSP page

2007-01-03 Thread Dave Newton
From: Dariusz Wojtas [mailto:[EMAIL PROTECTED] > I know how to access it using tags, but what I want is to access it > with plain Java inside a scriptle area. > Something similar to this: > > <% > MyTestAction act = ... ? > %> Why? Dave -

Re: [S2] - access to the action from a JSP page

2006-12-21 Thread Dariusz Wojtas
Thanks for the response. I know how to access it using tags, but what I want is to access it with plain Java inside a scriptle area. Something similar to this: <% MyTestAction act = ... ? %> Do I have to play with extra interfaces on the action? Or make it request aware and put the action its

RE: [S2] - access to the action from a JSP page

2006-12-20 Thread Wesslan
You can access all your actions public getters (and setters) from your JSP with something like . Action: Public String getPetName() { return "Dinky"; } JSP: Or did I misunderstand you? Hth, Peter -Original Message- From: Dariusz Wojtas [mailto:[EMAIL PROTECTED] Sent: den 20 decemb