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
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.
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
-
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
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
5 matches
Mail list logo