Yes I did !!
Thanks so much. Your initial suggestion worked. I'm not sure whether I had a typo or something the first time, but on attemtping it again, dynamic submission of the form worked. Thanks so much.
Hi,
I'm trying to manually submit an HTML form using the following :
document.myform.submit() for a Struts form. Does anyone know if there is a problem submitting on these tags ? I get an error indicating that the function is not recognized in Javascript.
Hello,
I am trying to validate two fields in a JSP using the Struts Validator plugin. When I hit the "Submit" button nothing happens. I get the feeling that the action is being processed, but because the fields are empty, an error should pop up.
This is my JSP :
<%@ taglib...
Hello,
I am trying to validate two fields in a JSP using the Struts Validator plugin. When I hit the "Submit" button nothing happens. I get the feeling that the action is being processed, but because the fields are empty, an error should pop up.
This is my JSP :
<%@ taglib...
Hello,
My code is spitting out this error when trying to obtain a connection from the connection pool. I know that the datasource and connection pools have both been configured correctly. Does anyone know why this is occurring ? It's going through the code but appears to have problems...
Hello,
Here's a fragment of the beginning of a build file which I have been looking at and can't seem to figure out :
<project name="Self" basedir="." default="build">
<!-- ANT tasks -->
<property name="propertyFile" value="${basedir}/${properties}"/>
<property...
Have you thought about modularizing the application. That is having many mini modules within the main web application. I think that that may be the only solution for you. Other than that I think you may have to duplicate all the necessary resources in another .war file.
Everything seems to be correct up until the last or third point. Why are u validating the action ? The validation is meant for the form bean attributes/fields. Revised should be the following:
<form name="myForm">
<field property="filedDateFrom"...
It doesn't appear that the structure of your program is incorrect. Is your SubmitForm extending ActionForm etc...
Could you provide the code for this as well ?
Hi,
I believe that you have two choices when deciding where to do validation.
1. You can do your validation within the ActionForm subclass by placing your validation code within the "validate" method and when the ActionForm bean is populated by ActionServlet the method will be called at that...
Hi,
Where are u iterating? I see the error, however I am assuming that you must be using the <html:logic> tag somewhere and it is there that the code is throwing the error. Can you provide this part please ?
Hello,
I am new to Struts and recently I tried an exercise which had me modularize a simple Struts application into two modules. In one of the module's Struts Config files I defined the following action mapping:
<action path="/viewSearch"
type="org.apache.struts.actions.ForwardAction"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.