Hey,
Since you map dispatcher to the root path "/", then all requests are sending to spring dispatcher, and thus you get error for non dynamic content(spring) like js and images. You only want...
Type: Posts; User: thebugslayer; Keyword(s):
Hey,
Since you map dispatcher to the root path "/", then all requests are sending to spring dispatcher, and thus you get error for non dynamic content(spring) like js and images. You only want...
Have you set validator/validators on your form controller? Post that xml config.
One way to verify is turn on the logging for spring! It will tell you what's loaded and what's going on as you run...
Hum... i see what you trying to do now.
Well, I don't think you can have single form submit and return output to two different windows. They would have to be two distinct form submission. Like...
On your second button, you don't want type to be "submit". Try "button" instead.
Please post your xml mapping config of your controller handler and the servlet dispatcher mapping in your web.xml
Hi icetbr,
It's likely that you don't have sitemesh config right. Double check the sitemesh.xml and it's decorator.xml file as they allow you to specify path to your view files. Also the way you...
Hi rachel,
query/select usually doesn't lock db table.
if you read the SprignAPI for JdbcTemplate, you will see the signature of queryForList return a java.util.List object. Each entry is a...
Not sure what you mean here.
If you are not sure how to retreive param, then try calling request.getParameter("name") inside handleRequestInternal(). "request" is just from HttpServletRequest, so...
Hi Macdoug1,
Returing null with handleRequestInternal() means you going to build the result on your own. Try something like this inside your method:
response.setContentType("text/xml");...
Hi jjunos,
There recommended way is to use servletContext. In Spring you can easily get this by implementing org.springframework.web.context.ServletContextAware interface with your bean class, and...
Hello mark*,
You certainly can use an innerclass, or any publically accessible class that you can instanciate object with. If you do, in your xml, you would specify the command class with your inner...
That seems like Sun's private library. I never used before. I usually don't use the jdk package that starting with com.sun unless we really have no choice.
If the embeded server works for you, why...
If you need a button to display a popup windows, then yes, you just use JavaScript. Not related to spring here. Google tells me there is a sample here:...
Hello pussmun,
You can take a look my project: javasupport, there is a toolbox you can run to generate a template webapp that support JPA (altough I have them commented out as default).
After...
There are couple way you can do this:
1) Chain the two controller together with a custom "wrapper" controller. So when controllerA completes with form and get the data, call the controllerB back to...
The mimimal requirement for the latest Spring is only jdk1.5, so it should run on jdk1.6 without problem.
If you have a http server that is built only for jdk6, then you must be running a pretty...
Be more specific on your question. Do you not konw where to start or you have particular problem with spring?
Thanks for the sample of workaround al0!
compile.bat is missing the PropertySetter.java, when I added, it then works fine.
Hello Sekhar,
Try override initBinder method in your controller, for example like this:
@override
protected void initBinder(HttpServletRequest request,
...
Hello Shaiju,
Like I said earlier, you want to make ControllerA to process your form with GET url parameters as well as POST. Since you don't want save data through session, then your only option is...
Hello domurtag,
Those placeholder are filled when you create Error instances using one of the reject methods that has "errorArgs"
Eg see...
ContextLoaderListener is an implementation of javax.servlet.ServletContextListener, which listen for standard Java Servlet container(server) start and stop of the webapp you are writing. The Spring...
Hello Shaiju,
So you have 3 pages A=formView, B=succesView, C=detailSearchView, and you want to redisplay B?
If you have a formController providing A&B, and second detailController providing C,...
Hello SekHar,
Try adding <form:errors path="*"> to your formView.
If you still has no clue, then you probably haven't read Referrence througly, as it explain very clearly to me how the form and...
Yep, that worked. Thank you Marten!