struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cedric Dumoulin <cedric.dumou...@lifl.fr>
Subject Re: Tiles + ActionForm.validation - problem !
Date Mon, 22 Jul 2002 08:58:04 GMT

  What is the date of your tilesForStruts1.0.jar ? It looks like the 
ActionComponentServlet chocks on a new call to 
getMultipartRequestHandler(...), which has been added in Struts1.1

Slava_L wrote:

>Nobody meets this problem ?
>
>----- Original Message -----
>From: "Slava_L" <lovkiys@esstu.ru>
>To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
>Sent: Friday, July 19, 2002 7:08 PM
>Subject: Tiles + ActionForm.validation - problem !
>
>
>Hi, list
>I'm very new to Tiles and when i tried to bind this cool stuff to my
>previously designed app, i  met a problem with validation.
>I'm usin' Struts 1.0.2 stable ver. + tilesForStruts1.0.jar (external tiles
>lib).
>I need my action to forward back to the same page, when any errors appeared
>
>in struts-config.xml i have an action:
>
>    <action path="/loadSomething"
>               type="mypackage.LoadSomethingAction"
>               name="someForm" >
>     <forward name="success" path="somePage"></forward>
>    </action>
>to load source page and another action mapping
>    <action path="/saveSomething"
>               type="mypackage.SaveSomethingAction"
>               name="someForm"
>               scope="request"
>               validate="true"
>               input="somePage">
>     <forward name="success" path="index.jsp"></forward>
>    </action>
>for savin entered data
>
>in tiles-def.xml i have definition:
>
>  <definition name="somePage" path="/template.jsp">
>    <put name="content"   value="some_page.jsp" />
>  </definition>
>where some_page.jsp contains an input form.
>
>When validation method returns not empty ActionErrors i recieve
>internal server error message like this one:
>java.lang.IllegalAccessError: try to access method
>org.apache.struts.action.ActionForm.getMultipartRequestHandler()Lorg/apache/
>struts/upload/MultipartRequestHandler; from class
>org.apache.struts.tiles.ActionComponentServlet
> at
>org.apache.struts.tiles.ActionComponentServlet.processValidate(ActionCompone
>ntServlet.java:167)
> at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1565)
> at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
>
>the question is How am i suppose to describe error page in action mapping ?
>input ? or somehow else .
>Help needed! (thanx a lot)
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>
>
>  
>



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


Mime
View raw message