Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

Portlet problem

Vinicius Ferraz

2010-08-21

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi, Im using struts2 and eXo.

My JSP contains one form that submit to my action as follow:

<%@(protected)"* %>

<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
©2008 gg3721.com - Jax Systems, LLC, U.S.A.