It is possible develop portlets with struts using other versions. I just
downloaded 2.2.1.

Struts 2 src contains examples about that. Incluind eXo plataform.

The original code runned 100%, but when I put the convention plugin jar and
put the @result annotation, the error ocurres.

After I send the stack trace.

Vinícius Ferraz Campos Florentino



On Sun, Aug 22, 2010 at 12:44 AM, Dave Newton <davelnew...@gmail.com> wrote:

> Do you have a complete stack trace? Is this new behavior under S2.2.1?
>
> Thanks,
> Dave
>
> On Sat, Aug 21, 2010 at 5:51 PM, Vinicius Ferraz
> <vinicius.fer...@gmail.com>wrote:
>
> > Hi, Im using struts2 and eXo.
> >
> > My JSP contains one form that submit to my action as follow:
> >
> > <%@ taglib prefix=*"s"* uri=*"/struts-tags"* %>
> >
> > <link rel=*"stylesheet"* type=*"text/css"* href="<s:url value=*
> > "/styles/styles.css"*/>">
> >
> > <H2>Input your name</H2>
> >
> > <s:form action=*"form-example"* method=*"POST"* portletMode=*"view"*>
> >
> >    <s:textfield label=*"First name"* name=*"firstName"*/>
> >
> >    <s:textfield label=*"Last name"* name=*"lastName"*/>
> >
> >    <s:submit value=*"Submit the form"*/>
> >
> > </s:form>
> >
> >
> >
> > Im using annotation (struts 2.2.1)
> >
> >
> >  @Results ({
> >
> >
> >
> >      @Result (name=FormExampleAction.*INPUT*, location=
> > "/WEB-INF/view/formExampleInputValidation.jsp"),
> >
> >      @Result (name=FormExampleAction.*SUCCESS*, location=
> > "/WEB-INF/view/formExample.jsp")
> >
> >
> >
> >
> >
> > })
> >
> >
> > After submit, throw a IllegalStateException on method isCommitted:
> > IllegalStateException("Not
> > allowed in event phase")
> >
> >
> >
> > Whats wrong? thanks
> >
> >
> > Vinícius Ferraz Campos Florentino
> >
>

Reply via email to