try to use this
<c:forEach var="product" varStatus="counter" items="${wrapper.order.items}" >
<s:bind path="product[${counter.index}].quantity">
</c:forEach>
Type: Posts; User: p792; Keyword(s):
try to use this
<c:forEach var="product" varStatus="counter" items="${wrapper.order.items}" >
<s:bind path="product[${counter.index}].quantity">
</c:forEach>
Have you try to use spring tag <form:select>. For more information, see 16.2.4.9 The select tag.
Hope this will help
1. To validate the form, create a class to implement org.springframework.validation.Validator.
2. To forward to another jsp, you call something like this :"return "forward:whateverjsp" or "return...
Resovled....After research, it seems that the SpringFramework viewer doesn't resolve "application/zip" content type. The code above will work if it is pdf or word document. A workaround is to...
hi, all
When I click a link to download a zip file, I get the following error message "Internet Explorer can not download download.htm from localhost....". However, it is working on Firefox.
I...
You are missing "org.springframework.web-3.0.5.RELEASE.jar". I don't know what version of spring that you use. In my development, we have Spring 3.0.5. Hope this will help
The WAS probably uses out-date jar. You probably need to configure to load application classpath first before loading the WAS classpath. Hope this will help
Can you post your code along with your configuration?
try this
<script type="text/javascript" src="resources/jquery-1.7.min.js" />"></script>
That is a good question. However, you forget that every jsp will be converted to java classes. Also, most of compilers will look into a file with exension ".jsp". So, the bottom lines is don't put...
Implement Ajax in your jsp. Inside Ajax, you can call back the controller to reset the flag.
Hope this will help you.
It seems that Spring Security is the best way to do. Once you implement it, you can use spring security tag
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
If you just want to pass one or two values, I recommend to use regular html tag like <input type="text">. It is fast and less complicated.
If it is not what you wants, you can use
...
Jason,
I believe your json format is not correct. Try to use this
return "\"your infor\"";
Hi, piffta.
I have a problem to render pdf in IE. It seemed that my logic almost the same as yours, except content type (application/pdf). Here is a link of my original post...
Thank for your quick reply...
The IE browser still doesn't render pdf even I use pdf extension. I debug the application and it break at the right method but still doesn't work.
However, when...
For some reasons, the application can render pdf in firefox but not in IE 7. I hope someone can tell me what I did wrong.
my url:...
I don't think you can modify the generated html source code for <form:errors>. However, you can try two things.
1->Use jquery to change once the document is load. Modify document.ready.
2->don't...
Hi, all
How do I make my mock request going through a custom 'HandlerInterceptor' before my controller process it?
Below is my Junit code.
AnnotationMethodHandlerAdapter adapter = new...
how about using spring.bind("*) to bind all the errors. Here is example:
<spring:bind path="*">
<c:if test="${status.error}">
<div class="errortext">
Error(s):
...
if (result.hasErrors()) {
return "PublishApplication";
}
return "PublishApplication";
}
Can you double check to make sure the method HasError always returns false? I suggest put something...
I don't know if this may help you. Have you looked into JSON? Json can convert object into String and send to Applet class. In your applet class, you may convert String back to Object.
I hope...
Many things could happen:
1. Does your controller map correctly a request when the form render? If not, check your xml or controller annotation.
2.
url: '<c:url...
you probably need to perform String to Date Conversion. Spring already has build-in conversion. Take a look at CustomDateEditor.
I have a form that users need to fill out. After they are done, the controller will redirect users to a confirmation page. However, when the controller return "redirect: confirm", I get 404 not...