struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Mistroni" <mmistr...@waersystems.com>
Subject RE: DynaValidatorForm Problem
Date Tue, 11 May 2004 09:55:49 GMT
Hi,
	Wild guess (not so wild, It happened to me more than
One time)

The fact that you declare your form (ticketForm I suppose) thru
Struts tag  <html:form > does not make it 
'visible' to scriptlet code

so, you would have do do

<% 
   DynaActionForm ticketForm =
(DynaActionForm)request.getAttribute("ticketForm");
String kosten = PropertyUtils.getSimpleProperty( ticketForm,
"kosten") .toString(); %>


probably by now u have solved the problem yourself :-)

regards
	marco



-----Original Message-----
From: Marc Tinnemeyer [mailto:marc-web@gmx.net] 
Sent: 02 May 2004 12:49
To: struts-user@jakarta.apache.org
Subject: DynaValidatorForm Problem

Hi everybody,

I got a problem accessing a DynaValidator's attribute through a
scriptlet.
Here is the codesnippet:


<bean:message key="text.premium" arg0='<%= kosten %>'/>

While "kosten" is the bean's attribute and "ticketForm" is the
DynaValidatorForm itself.

The friendly message a receive is:
"cannot resolve symbol symbol : variable ticketForm"

Does somebody have an idea on this ?

Kind Regards,
Marc Tinnemeyer

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message