This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to validate HTML element in Struts

 
Rajeev roushan sharma
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi!

I am not sure what i am asking is possible or not. Can i validate a HTML element in struts(I am not using struts Tag like <html:text>)? I am using plain HTML tag <input type="text">. Let me know if i am not clear.

Thanks in advance!
 
Rajeev roushan sharma
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or i want to know whether it is needed to use STRUTS TAG, if i want to used validation feature of struts. or it can validate plain HTML element ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Server-side validation is based solely on the parameters received by the server--the server side doesn't know if they're coming from an input tag, a request from a non-browser client, or anything else. If you want to display validation *messages* without Struts tags, you'll have to do it manually.
 
Rajeev roushan sharma
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:Server-side validation is based solely on the parameters received by the server--the server side doesn't know if they're coming from an input tag, a request from a non-browser client, or anything else. If you want to display validation *messages* without Struts tags, you'll have to do it manually.


Thanks David :)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic