• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible to write awt in jsp

 
aman hindustani
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends..

Is it possible to use awt in jsps...if possible ..please help me...if yes,please let me know how it is possible..with an example..deparetely waiting for it..

I have to develop a module..in that page...we will have some textfields..say they are 3..if we enter first field...then 2nd and 3rd should not allow user to enter data in that text field......if 2nd text field is entered..then 1st and 3rd ..in the same way for 3 ..

I think it is by some way by using setEditable(false); ...but i dont know how to use this method in my jsp...Please help me out..
 
Reza Rav.
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
NO it is not possible, there are some frame work use for representation layer on web like Struts if you are beginner try to it with HTML otherwise learn Struts.

For your case you can create boolean flag and put them in Httpsession object for text field.
If it is University project or you just want to get rid of it, you can use jscript to disable textfield (I don't know how read jscript docs)
[ June 21, 2006: Message edited by: Reza Rawassizadeh ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65122
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts will do nothing in this regard. The output to the brower will stilll be HTML.
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to develop a module..in that page...we will have some textfields..say they are 3..if we enter first field...then 2nd and 3rd should not allow user to enter data in that text field......if 2nd text field is entered..then 1st and 3rd ..in the same way for 3 .

whats wrong with using plain old HTML input fields?
 
Travis Hein
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this can be done with javascript and a html text fields.

though not a jsp related solution.
 
aman hindustani
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank Q very much...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic