This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes javascript error display on same page without popup window to avoid struts framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "javascript error display on same page without popup window to avoid struts framework" Watch "javascript error display on same page without popup window to avoid struts framework" New topic
Author

javascript error display on same page without popup window to avoid struts framework

Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

I am working on pageflow which is based on struts. Due to limitation of framework validation, if validation fails and same page displays I couldn't able to show the value of my listbox(it is showing only ids).
But by dynamically adding javascript element in html page I am able to display all the error message on the same page instead of popup window.
So even it satisfies our requirement for not displaying popup windows.

I do suggest to goto http://www.reumann.net/struts/articles/request_lists.jsp?decorator=newwindow&confirm=true
as well as
http://www.dustindiaz.com/add-and-remove-html-elements-dynamically-with-javascript/
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

So what's your question?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: javascript error display on same page without popup window to avoid struts framework
 
Similar Threads
Learning Struts
I am a beginner, plz suggest some online tutorial
What are the dependent JARS for struts?
Display error message using validate?
New TO STRUTS