wood burning stoves 2.0*
The moose likes Spring and the fly likes Validations: popup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Validations: popup" Watch "Validations: popup" New topic
Author

Validations: popup

K Kiran Kumar
Ranch Hand

Joined: Jan 04, 2006
Posts: 109
Hi friends,

I am using the commons validator(validator.xml and validator-rules.xml) for validations in Spring. I am able to validate the pages successfully. Here is my JSP page.


However, my requriement is that instead of displaying an error message in the JSP page, I want the error messages to be displayed in a popup. How can I do that in Spring?Any suggestions...

I appreciate if someone could help me on this. Am I missing anything? I tried in google but no luck...

Have a good day!

Regards,
Kiran.
pete reisinger
Ranch Hand

Joined: Dec 30, 2009
Posts: 46
ok, so I suppose that the pop up is going to be javascript. Are you going to use js library for that? like jQuery?
if so, then write error inside for example div with class error ,and write javascript that will check if class error exists.
if it does, hide it and display content in a pop up.
I can't see how this is related to spring, maybe you should try searching javascript forums
K Kiran Kumar
Ranch Hand

Joined: Jan 04, 2006
Posts: 109
Hi,

The following scenario will depict what I was refering to -
In Struts, if we refer the taglib <%@ taglib uri="/tags/struts-html" prefix="html" %>
and use <html:javascript formName="MyJavaBeanClass"/> in my form/head tag, then instead of displaying the error messages on the JSP page, the error messsages will appear in a popup window. Just refer the below link for better clarity:
http://www.roseindia.net/struts/address_struts_validator.shtml

I am looking something similar to implement the same in Spring. I am not refering to the manual javascript validations here. I am doing the validations using the commons validations framework. I guess I am just missing a small tag to add(not sure what it is). Any help would be appreciated.

Regards,
Kiran.
K Kiran Kumar
Ranch Hand

Joined: Jan 04, 2006
Posts: 109
Hi,

Can someone please help me on my issue.

Regards,
Kiran.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validations: popup
 
Similar Threads
Javascript new window is not opening from a jsp page
displaying validation errors in jsp
problem while loading the welcome page
Validation error: Failed to convert property value of type [java.lang.String] to required type [int]
spring validation problem