aspose file tools*
The moose likes JSP and the fly likes problem in getting already existing values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "problem in getting already existing values" Watch "problem in getting already existing values" New topic
Author

problem in getting already existing values

madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
hi,
in my application i used jsp pages...the problem arises at modification...im using EL to get previous values that means already existing ones..im using 'disabled' concept for the text field i created but it is showing 'null' after i submit the form...if i check my XML...how to make it appear with the previous values.


David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Disabled fields aren't sent to the server.
AshishcKumar singh
Greenhorn

Joined: Dec 16, 2008
Posts: 9
Infact what you can probably do is, make those disabled fields enabled just before the form is submitted using JS.
sudhakar dhavala
Greenhorn

Joined: Nov 04, 2005
Posts: 3
you can get those values even by

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60071
    
  65

sudhakar dhavala wrote:you can get those values even by

No, you can't. In fact, no such method even exists.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Sometimes it's like we're not even here.
madhuri kunchala
Ranch Hand

Joined: Mar 30, 2010
Posts: 350
hi AshishcKumar singh ,
thanks for your reply i tried what you suggested i got it...thanks..
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

You could also set some hidden fields if you don't want to set those fields enabled/disable.

So if you got disableName you could create a nameHidden that you would get on you class.


[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in getting already existing values
 
Similar Threads
problem in checking the entered value with the existing value
problem in getting values using EL
unable to get values for modify page
problem with jsp for reset() method
how to use Expression Language for Textarea