You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jitender K Chukkavenkata <jc...@in.ibm.com> on 2004/09/21 05:05:14 UTC

Re: jasper exception

Which part of your code generated this? Can I have a look over it?

Thanks,
Jitender Kumar C.V.

Re: jasper exception

Posted by Jitender K Chukkavenkata <jc...@in.ibm.com>.
yeah...It might be the problem because...<html:frame> also expects any one 
of the properties.  Anyways...nice to c ur problem solved...

Cheers... :-)

Jitender Kumar C.V.

Be passionate at what ever you do.....


Re: jasper exception

Posted by Sebastian Ho <se...@bii.a-star.edu.sg>.
I got it working although I don't know why it behaves that way..

In my JSP, I have a </html:frame> somewhere in between the lines.
Once I remove it, the exception went away. That tag should not be there
anyway. No idea how it got there in the first place..

Thanks Kumar.

Sebastian Ho


On Tue, 2004-09-21 at 12:22, Jitender K Chukkavenkata wrote:
> I was just wondering that I couldnt find any mapping in JSP for the method 
> nextController().  Iam sorry I was actually expecting the value of action 
> attribute of <html:form> but not URL.
> 
> Jitender Kumar C.V.


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


Re: jasper exception

Posted by Jitender K Chukkavenkata <jc...@in.ibm.com>.
I was just wondering that I couldnt find any mapping in JSP for the method 
nextController().  Iam sorry I was actually expecting the value of action 
attribute of <html:form> but not URL.

Jitender Kumar C.V.

Re: jasper exception

Posted by Sebastian Ho <se...@bii.a-star.edu.sg>.
Hi

The URL did contains 'action' but I have been using 'action' as a
parameter for weeks and it is working fine.

btw how do I get the URL path? It is not shown in the browser.

------------------
struts-config
------------------
<action name="projectForm" path="/NewProject" attribute="project"
input="/WEB-INF/CreateProject.jsp" parameter="actionx" scope="session"
type="sg.edu.astar.flamingo.web.proteomics.action.CreateNewProjectAction" validate="true">
      <forward name="displaycreateexperiment"
path="/CreateExperiment.do"/>
    </action>


On Tue, 2004-09-21 at 11:21, Jitender K Chukkavenkata wrote:
> Hi,
> I need the url that you are giving for <html:form> and also the mapping of 
> the same in struts-config.xml...The error might be like you are using some 
> conflicting properties because, "forward", "href", "page" or "action" are 
> exclusive properties.  Any combination of  these properties for a tag 
> generates such kind of errors.
> 
> Thanks,
> Jitender Kumar C.V.


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


Re: jasper exception

Posted by Jitender K Chukkavenkata <jc...@in.ibm.com>.
Hi,
I need the url that you are giving for <html:form> and also the mapping of 
the same in struts-config.xml...The error might be like you are using some 
conflicting properties because, "forward", "href", "page" or "action" are 
exclusive properties.  Any combination of  these properties for a tag 
generates such kind of errors.

Thanks,
Jitender Kumar C.V.

Re: jasper exception

Posted by Sebastian Ho <se...@bii.a-star.edu.sg>.
Hi

The output doesn't even print out the "nextController" in the method
which I inserted..

Thanks

------------------
JSP
------------------


                <html:submit value="Reset" property="action"/>
                <html:submit property="action" value="Next">
                  <bean:message key="button.next"/>
                </html:submit>
<html:hidden property="page" value="createproject"/>

-----------------------
Action
-----------------------


public class CreateNewProjectAction extends DispatchLookupAction {
	public CreateNewProjectAction() {
	}

	protected Map getKeyMethodMap() {
  System.out.println("getKeyMethodMap");
		Map map = new HashMap();
		map.put("button.next", "nextController");
		return map;
	}

	public ActionForward nextController(ActionMapping mapping, ActionForm
form,
			HttpServletRequest request, HttpServletResponse response)
			throws IOException, ServletException, SystemException {
    System.out.println("nextController");
		ActionForward actionForward = null;
		String page = (String) request.getParameter("page");
    System.out.println("Page in nextController : " + page);
		if (page.equals("createproject")) {
			actionForward = nextFromCreateProject(mapping, form, request,
					response);
		} else if (page.equals("createexperiment")) {
			actionForward = nextFromCreateExperiment(mapping, form, request,
					response);
		}
		return actionForward;

}



On Tue, 2004-09-21 at 11:05, Jitender K Chukkavenkata wrote:
> Which part of your code generated this? Can I have a look over it?
> 
> Thanks,
> Jitender Kumar C.V.


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