This is happening because you have an IllegalArgumentException being
thrown when Webwork tries to set the field with a "" String value...
Must be the field is a non-String which cannot accept a ""? In
validate() in ActionSupport it checks the errors and errormessages and
if there are any, it throws a ResultException telling Webwork to forward
to your INPUT view. You must not have a view mapped for INPUT, so it's
giving this error.

You can either:

A) override validate() to not do this
B) put a mapping in for a result of input

If you put something like this:

Error Messages:<br>
    <webwork:iterator value="errorMessages">
        <webwork:property/><br>
    </webwork:iterator>
    </p>

<p>
    Field Errors:<br>
    <webwork:iterator value="errors">
        field: <webwork:property value="key"/> error: <webwork:property
value="value"/><br>
    </webwork:iterator>
    </p>

At the top of your jsp, it will show any errors you have.

Jason

> -----Original Message-----
> From: Morten Wilken [mailto:[EMAIL PROTECTED] 
> Sent: Friday, February 28, 2003 7:30 PM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] submitting from a form causes problems
> 
> 
> hi all,
> i have problem,
> when i try to submit a form to an action, and one of the form 
> fields is empty i get an odd message (ie. when the querystring is
> 
>  http://localhost/save.action?entryId=
> 
> No view for result [input] exists for action [save]
> 
> i am not sure how to handle this since it seems to come up 
> before i get control in doExecute() (if i do supply an 
> entryId it works fine) my views.properties contain this: 
> save.action = SaveEntryAction
> 
> save.success = entry.action
> 
> save.error = edit.action
> 
> 
> 
> any pointers?
> 
> 
> 
> 
> ----- Original Message -----
> From: "Jones, Marty B." <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, February 28, 2003 9:30 PM
> Subject: [OS-webwork] RE: Opensymphony-webwork digest, Vol 1 
> #433 - 1 msg
> 
> 
> > Dang,
> >
> > I was hoping that Jrun was not the problem.  I am pretty much stuck 
> > with Jrun so I guess I will not be able to use this 
> framework.  When I 
> > get some free time I will try to see what is going with 
> this framework 
> > and Jrun4.
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > Sent: Friday, February 28, 2003 2:25 PM
> > To: [EMAIL PROTECTED]
> > Subject: Opensymphony-webwork digest, Vol 1 #433 - 1 msg
> >
> >
> > Send Opensymphony-webwork mailing list submissions to 
> > [EMAIL PROTECTED]
> >
> > To subscribe or unsubscribe via the World Wide Web, visit 
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > or, via email, send a message with subject or body 'help' to 
> > [EMAIL PROTECTED]
> >
> > You can reach the person managing the list at 
> > [EMAIL PROTECTED]
> >
> > When replying, please edit your Subject line so it is more specific 
> > than "Re: Contents of Opensymphony-webwork digest..."
> >
> >
> > Today's Topics:
> >
> >    1. RE: Newbie Question (Andre Mermegas)
> >
> > --__--__--
> >
> > Message: 1
> > From: "Andre Mermegas" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Subject: RE: [OS-webwork] Newbie Question
> > Date: Fri, 28 Feb 2003 13:38:15 -0500
> > Reply-To: [EMAIL PROTECTED]
> >
> > I had a problem with jrun4 as well, but I didn't look into 
> it much as 
> > I = was not committed to using it, I just swapped in resin.
> >
> >
> > Regards,
> > -Andre Mermegas
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] 
> On Behalf Of 
> > = Scott Farquhar
> > Sent: Friday, February 28, 2003 11:21 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [OS-webwork] Newbie Question
> >
> > There is a good chance that this could be a JRun problem.  
> Have you=20 
> > applied the latest service pack?
> >
> > Is anyone else out there using JRun?
> >
> > It may be easier to test your configuration on a server 
> that is known 
> > to =
> >
> > work, such as Resin, Orion, Tomcat, Jetty or Websphere.
> >
> > Cheers,
> > Scott
> >
> > Jones, Marty B. wrote:
> > > I have just started playing with webwork and I am using 
> the examples 
> > > =
> > as a
> > > guide on how everything works.  I have created a small 
> application =
> > that
> > > basically has one jsp called login.jsp .  I have created a 
> > > action.xml =
> > file
> > > and placed it in the classes folder of my webapp.  Here is the 
> > > snippet =
> > of
> > my
> > > actions.xml
> > >=20
> > >=20
> > > <actions>
> > >    <action name=3D"Login" alias=3D"login">
> > >    <view name=3D"input">login.jsp</view>
> > >       <view name=3D"success">login.jsp</view>
> > >       <view name=3D"error">login.jsp</view>
> > >    </action>
> > > </actions>
> > >=20
> > > I have created a class called Login that extends 
> ActionSupport. =20
> > >
> > 
> //////////////////////////////////////////////////////////////////////
> > ///=
> > ///
> > > /////////////////////
> > > import webwork.action.ActionSupport;
> > >=20
> > > /**
> > >  * @author martyj
> > >  */
> > > public class Login extends ActionSupport {
> > >=20
> > > =20
> > >
> > 
> /*********************************************************************
> > ***=
> > ***
> > >      * Method doExecute - [Method Description]
> > >      * @see webwork.action.ActionSupport#doExecute()
> > >      *=20
> > >      * Created By Marty Jones - Feb 28, 2003 8:05:54 AM
> > > =20
> > >
> > 
> **********************************************************************
> > ***=
> > */
> > >     protected String doExecute() throws Exception {
> > >        =20
> > >         return SUCCESS;
> > >     }
> > >=20
> > > }
> > >
> > 
> //////////////////////////////////////////////////////////////////////
> > ///=
> > ///
> > > /////////////////////
> > >=20
> > > my url to access this action is
> > >=20
> > > http://martyj-laptop2k:8102/v4/login.action
> > >=20
> > >=20
> > > I am using the web.xml from the example application which 
> maps the =
> > action
> > > servlet to the webwork.dispatcher.ServletDispatcher=20
> > >=20
> > >=20
> > >=20
> > > I am getting the following error when I attempt to run 
> the action: 
> > >=20  02/28 08:27:11 error=20
> > > java.lang.IllegalStateException
> > > at 
> jrun.servlet.JRunResponse.getOutputStream(JRunResponse.java:181)
> > > at
> > > =
> > 
> webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:17
> > 2)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
> > > at
> > > jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
> > > at
> > > =
> > 
> jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:2
> > 26)=
> >
> > > at
> > > =
> > 
> jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:5
> > 27)=
> >
> > > at 
> jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
> > > at
> > >
> > 
> jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.ja
> > va:=
> > 451
> > > )
> > > at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
> > >=20
> > >=20
> > > Does anyone have any ideas what is going on?
> > >=20
> > > I am using Jrun4 as my webserver.
> > >=20
> > >=20
> > > -------------------------------------------------------
> > > This sf.net email is sponsored by:ThinkGeek
> > > Welcome to geek heaven.
> > > http://thinkgeek.com/sf  
> > >_______________________________________________
> > > Opensymphony-webwork mailing list  
> > >[EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> > >=20
> >
> > --=20
> >
> > ATLASSIAN - http://www.atlassian.com
> > Expert J2EE Software, Services and Support
> > -------------------------------------------------------
> > Need a simple, powerful way to track and manage issues?
> > Try JIRA - http://www.atlassian.com/software/jira
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf 
> > _______________________________________________
> > Opensymphony-webwork mailing list 
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >
> >
> >
> >
> >
> > --__--__--
> >
> > _______________________________________________
> > Opensymphony-webwork mailing list 
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> >
> >
> > End of Opensymphony-webwork Digest
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf 
> > _______________________________________________
> > Opensymphony-webwork mailing list 
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to