Hi Billy,
I there a way to do something similar under websphere 5.5.1? In fact i'd like to call all cluster server (initiated by a single server web interface for instance) to tell them to...
Type: Posts; User: uze; Keyword(s):
Hi Billy,
I there a way to do something similar under websphere 5.5.1? In fact i'd like to call all cluster server (initiated by a single server web interface for instance) to tell them to...
Hmmm...that's a good strategy. However, the problems lies with security and data integrity of state. Hidden fields are too easy to hack and modify with the right tool. Sure I could serialize my...
Hi,
We have a requirement that more than one form of the same class be open at the same time for edit/view. Ie: edit two different clients at the same time in their own window. But since the...
Well, not that stupid buddy. I had the same problem for months and never could figured it out. I copy-pasted some code from some tuturial at the time and it was indeed wrong. Thanks for pointing that...
I agree since I've read the doc more than once, but my problem is how to display that processing in a JSP? Is there a tag or something like
<spring:message code="${error.resolvedCode}"/>
that...
Hi,
I have this code in my JSP that displays all bind and validation errors :
You have <c:out value="${errors.errorCount}" /> errors:
<c:forEach var="error" items="${errors.allErrors}">
...
Hi,
After a lot of reading, including Rob's book and some topic on this board including http://forum.springframework.org/showthread.php?t=9818 I am quite confused on how to implement our new...
Well, this code seems to make it but is there a shorter way? Something like <c:out key="${error.messageWithParametersReplaced}"/>?
<spring:hasBindErrors name="model">
<c:forEach var="error"...
Hi to all,
I'm trying to iterate through the errors collection in a jsp and display all the messages, some of wich may include parameters. Now i'm trying to figure out how to do this with the...
Thanks Omar, but it seemed too much like a hack to me. ;) So after quite a bit of reading, you were right, it was an issue with how the applicationContext is initialized.
In web.xml I've added a...
Well, I'm no expert in those context things. My app server is websphere, and i registered a "org.springframework.web.servlet.DispatcherServlet" as the main servlet in my web.xml. I guess from there...
Omar, thanks for the reply. However that does not seem to work, the line
ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(servletContext); returns null.
However...
Hi,
I need to detect when a session expires to perform a cleanup in a database. I configured a HttpSessionListener class and registered it in web.xml. So far that works, however I'm quite puzzled...
Unfortunately, there's no built-in way (I'm aware of) for this issue. You'll have to override the onBind() method and put some code in it to extract the parameters straight from the request like...
Can't see why it does not work! :? On the other hand, Spring has just released version 1.1 final, so install it to see if it resolves your problem...
regards,
Uze
Ok, I don't know if its what you are looking for but here's what I have:
My model that is passed to the form looks like:
Class myModel{
private int objectId;
private User engineer;...
For more details look at:
http://forum.springframework.org/showthread.php?t=9970&highlight=customdateeditor
http://forum.springframework.org/showthread.php?t=9862&highlight=customdateeditor...
Aaaaaah! Gotcha! That's what I was looking for. Thanks!
However, when the <"sessionForm"> property is set to "true" in the application context isn't the command already supposed to be in the...
I can't seem to find the problem to this one. I have a SimpleFormControler's onSubmit event that processes database stuff then needs, in some cases, to pass the model to another form for more data...
Lis,
You are indeed right, without the underscore trick, it does not work correctly with checkboxes!
Uze
Hi Fabien,
I tend to use a URL parameter for this kind of problem ie: http://crudpage.jsp?return=thispage
thispage could be a named view resolvable by spring.
my two cents
Uze
If you just want simple binding, this is redundant because springs has a default boolean propertyEditor that correctly convert "true" or "false" strings to boolean type on form submit. Check it out....
Have you put a value parameter in your <input> tag? If not, it will always return null when evaluated. To make automatic boolean binding, declare your tag like this:
<input type="checkbox"...
This works, but I prefer to keep the <spring:bind> so I preceded the <input> names with a "_" so Spring does not see them while binding. This is not really elegant, but it works.
I think the...
Now I really need help. I tried parsing the request in the onBind as Fabien mentionned but Spring trows me
with this jsp:
<spring:bind path="reoDataModel.models">
<c:forEach...