Announcement Announcement Module
No announcement yet.
Renaming JSP files to jspx and everything breaks... Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Renaming JSP files to jspx and everything breaks...

    I am trying to rename all my JSP files used in WebFlow2 to JSPX.

    I go in to my STS project and rename the files to JSPX from JSP then I change the defaultViewSuffix in my flow.xml

    <bean id="mvcViewFactoryCreator" class=
         <property name="defaultViewSuffix" value=".jspx" />   
    this is the error:
    SEVERE: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: /WEB-INF/flows/helloworld/helloworld.jspx (line: 1, column: 2) The markup in the document preceding the root element must be well-formed.
    this is my helloworld.jspx
    <%@ taglib prefix="c" uri="" %>
    <%@ taglib prefix="form" uri="" %>
    	<title>Spring 3.0 MVC - Web Flow Example</title>
        <h2>Customer Registration</h2>
        <form:form commandName="customer">
          <input type="hidden" name="_flowExecutionKey"  value="${flowExecutionKey}"/>
          <font color=red><form:errors path="name" /></font><b>Name: </b>
           <form:input path="name"/><br/><p>
          <font color=red><form:errors path="phoneNumber" /></font>
          <b>Phone number: </b></td><td><form:input path="phoneNumber"/><br/>
          <font color=red><form:errors path="address" /></font>
          <b>Address: </b></td><td><form:input path="address"/><br/>
          <font color=red><form:errors path="city" /></font>
          <b>City: </b></td><td><form:input path="city"/><br/>
          <font color=red><form:errors path="state" /></font>
          <b>State: </b></td><td><form:input path="state"/><br/>
          <font color=red><form:errors path="zipCode" /></font>
          <b>Zip Code: </b>
          <form:input path="zipCode"/><br/>
          <input type="submit" name="_eventId_submit"   value="Submit" />
          <input type="submit" name="_eventId_cancel"    value="Cancel" />