This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

get disabled values from HttpServletRequest parameter

 
Gajen Pingalkar
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In my JSP-HTML page. I have few element (Input element - text, checkbox and radio button). When this page come's in edit mode I disabled all element (by disabled=true). After disabling I am not getting parameter from Request (HttpServletRequest) in my Action (Action Servlet - java).
How I can get values from request, when element is disabled, without putting value in Request Attribute or session.
Please reply.

Thanks,

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Send it as a hidden field and check for it. Disabled fields aren't sent (at least in some browsers; I don't know if that's true for all browsers or not).
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64192
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Disabled fields are not sent as part of the form submission. Any browser that would send them is broken.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic