RE: DynaValidatorForm problem

2005-08-04 Thread Amol Yadwadkar
Hi List,
I got my mistake it was the wrong package given for the Class
DynaValidatorForm
Amol
-Original Message-
From: Amol Yadwadkar [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 05, 2005 11:13 AM
To: user@struts.apache.org
Subject: DynaValidatorForm problem

 

 

Hello List,

I am using the DynaValidatorForm but at the initialization it gives
these errors

 

Snippet of struts-config.xml :

 















 

 

























 

 

Can any one suggest me the solution ?

Thankx

Amol

 

Error Stack is as follows :-

 

 

 

javax.servlet.jsp.JspException: Exception creating bean of class
org.apache.struts.action.DynaValidatorForm: {1}
at
org.apache.struts.taglib.html.FormTag.initFormBean(FormTag.java:463)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:433)
at
jsp_servlet._hightouch.__popup_newapplicant._jspService(__popup_newappli
cant.java:192)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rvletStubImpl.java:1006)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:419)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:463)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:315)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche
rImpl.java:322)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
a:1056)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
ocessor.java:388)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
231)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
rvletStubImpl.java:1006)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:419)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
java:315)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
un(WebAppServletContext.java:6718)
at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
bject.java:321)
at
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121
)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
etContext.java:3764)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
java:2644)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

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



RE: DynaValidatorForm Problem

2004-05-11 Thread Marco Mistroni
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   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:[EMAIL PROTECTED] 
Sent: 02 May 2004 12:49
To: [EMAIL PROTECTED]
Subject: DynaValidatorForm Problem

Hi everybody,

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




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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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