This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what's your question?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!