do some thing like this.
ArticleForm:
change the "keywords" to be a blank String instead of null
private String keywords = "";
----------------------------------------------
Action:
execute (.... ) method
{
ArticleForm articleForm = (ArticleForm) form;
String kw = articleForm.getKeywords();
....
return mapping.findForward("success");
}
---------------------------------------------
jsp:
<[EMAIL PROTECTED] uri = "/WEB-INF/struts-html.tld" prefix="html" %>
....
<html:form action = "testArticle" >
......
</html:form>
.....
----------------------------------
struts-config:
....
<form-bean name = "ArticleForm" type = "articles.ArticleForm" >
<form-property = "keywords" type = "java.lang.String"/>
</form-bean>
.....
<action path = "/testArticle"
name = "ArticleForm"
input = "/testArticle.jsp"
validate = "false">
<forward name = "success" path = "/testArticle.jsp"/>
</action>
-------------------------
uma.k wrote:
Eddie,
How do I set my path in struts-config.xml file when my app is in
tomcat\webapps\jg1\articles\Template.jsp
Is this correct?
<action path = "/test1"
type = "org.apache.struts.actions.ForwardAction"
parameter = "/Template.jsp"
validate = "false" >
<forward name = "success" path = "/Template.jsp"/>
</action>
Uma
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]