RE: another newbie
Anyone using eclipse and jboss with struts? I'm getting this error as below : 12:30:48,329 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() for ser vlet jsp threw exception javax.servlet.jsp.JspException: Cannot retrieve mapping for action /submit at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:753) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443) at org.apache.jsp.submit_jsp._jspx_meth_html_form_0(submit_jsp.java:140) it looks like I'm missing something on the eclipse side. TIA, Amin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another newbie
Paste your struts.xml. Seems you are missing some information in struts.xml Amin Mohd Sani wrote: Anyone using eclipse and jboss with struts? I'm getting this error as below : 12:30:48,329 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() for ser vlet jsp threw exception javax.servlet.jsp.JspException: Cannot retrieve mapping for action /submit at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:753) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443) at org.apache.jsp.submit_jsp._jspx_meth_html_form_0(submit_jsp.java:140) it looks like I'm missing something on the eclipse side. TIA, Amin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another newbie
Looks like you have an action in the html:form in submit.jsp which is not there in the struts-config action mappings (checkout the case of the actions as well) Nitesh - Original Message - From: Amin Mohd Sani [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, June 17, 2005 11:59 AM Subject: RE: another newbie Anyone using eclipse and jboss with struts? I'm getting this error as below : 12:30:48,329 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() for ser vlet jsp threw exception javax.servlet.jsp.JspException: Cannot retrieve mapping for action /submit at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:753) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443) at org.apache.jsp.submit_jsp._jspx_meth_html_form_0(submit_jsp.java:140) it looks like I'm missing something on the eclipse side. TIA, Amin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another newbie
You could use a jsp debugger which is part of MyEclipseIDE. Dnia Fri, 17 Jun 2005 09:21:31 +0200, Nitesh [EMAIL PROTECTED] napisa: Looks like you have an action in the html:form in submit.jsp which is not there in the struts-config action mappings (checkout the case of the actions as well) Nitesh - Original Message - From: Amin Mohd Sani [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, June 17, 2005 11:59 AM Subject: RE: another newbie Anyone using eclipse and jboss with struts? I'm getting this error as below : 12:30:48,329 ERROR [Engine] StandardWrapperValve[jsp]: Servlet.service() for ser vlet jsp threw exception javax.servlet.jsp.JspException: Cannot retrieve mapping for action /submit at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:753) at org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443) at org.apache.jsp.submit_jsp._jspx_meth_html_form_0(submit_jsp.java:140) it looks like I'm missing something on the eclipse side. TIA, Amin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Pozdrawiam, Janek Ziniewicz gg:902858 irc.freenode.net: #gore, #dub - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another newbie
Map the action class in the struts config and have the link point to the action i.e. a href=/MyAction.do... Nitesh - Original Message - From: Anand Vijay [EMAIL PROTECTED] To: Nitesh [EMAIL PROTECTED] Sent: Thursday, June 16, 2005 10:34 AM Subject: Re: another newbie Hi Thanks for the help ... How to invoke an action class if it is a link ? Nitesh said the following on 16/06/2005 10:33 AM: You could populate the combo independently using a logic:iterate tag in the JSP Use a bean/helper to get the values as a collection and pass the same to the iterator. alternate method is to have an action class before the control comes to the JSP where in you could get the collection. (Here also you need to use the logic:iterate tag in the JSP) HTH Regards Nitesh - Original Message - From: Anand Vijay [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, June 15, 2005 4:00 PM Subject: another newbie Hi All I have a link in my application for user registration form . Form has combo box that needs to be populated from database. How to achieve this? Where do we write our bean to fetch the data? Thanks in advance Regards Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another newbie
Using html:link action=/MyActionmy action link/html:link is probably better. This way you wont' have to worry about the context path of your application. a href=MyAction.do might not work since the action is preceded by the context path. You would have to do something like: a href=${pageContext.request.contextPath}MyAction.do to achieve this. Using html:link takes care of that. Zarar Siddiqi - Original Message - From: Nitesh [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Cc: [EMAIL PROTECTED] Sent: Thursday, June 16, 2005 1:20 AM Subject: Re: another newbie Map the action class in the struts config and have the link point to the action i.e. a href=/MyAction.do... Nitesh - Original Message - From: Anand Vijay [EMAIL PROTECTED] To: Nitesh [EMAIL PROTECTED] Sent: Thursday, June 16, 2005 10:34 AM Subject: Re: another newbie Hi Thanks for the help ... How to invoke an action class if it is a link ? Nitesh said the following on 16/06/2005 10:33 AM: You could populate the combo independently using a logic:iterate tag in the JSP Use a bean/helper to get the values as a collection and pass the same to the iterator. alternate method is to have an action class before the control comes to the JSP where in you could get the collection. (Here also you need to use the logic:iterate tag in the JSP) HTH Regards Nitesh - Original Message - From: Anand Vijay [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, June 15, 2005 4:00 PM Subject: another newbie Hi All I have a link in my application for user registration form . Form has combo box that needs to be populated from database. How to achieve this? Where do we write our bean to fetch the data? Thanks in advance Regards Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
another newbie
Hi All I have a link in my application for user registration form . Form has combo box that needs to be populated from database. How to achieve this? Where do we write our bean to fetch the data? Thanks in advance Regards Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: another newbie
You could populate the combo independently using a logic:iterate tag in the JSP Use a bean/helper to get the values as a collection and pass the same to the iterator. alternate method is to have an action class before the control comes to the JSP where in you could get the collection. (Here also you need to use the logic:iterate tag in the JSP) HTH Regards Nitesh - Original Message - From: Anand Vijay [EMAIL PROTECTED] To: user@struts.apache.org Sent: Wednesday, June 15, 2005 4:00 PM Subject: another newbie Hi All I have a link in my application for user registration form . Form has combo box that needs to be populated from database. How to achieve this? Where do we write our bean to fetch the data? Thanks in advance Regards Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]