File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Is it possible to write awt in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Is it possible to write awt in jsp" Watch "Is it possible to write awt in jsp" New topic
Author

Is it possible to write awt in jsp

aman hindustani
Ranch Hand

Joined: Jun 15, 2006
Posts: 57
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 Ravasizadeh
Ranch Hand

Joined: Jun 08, 2004
Posts: 177
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 ]

Reza
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60997
    
  65

Struts will do nothing in this regard. The output to the brower will stilll be HTML.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
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?


MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Travis Hein
Ranch Hand

Joined: Jun 06, 2006
Posts: 161
this can be done with javascript and a html text fields.

though not a jsp related solution.


Error: Keyboard not attached. Press F1 to continue.
aman hindustani
Ranch Hand

Joined: Jun 15, 2006
Posts: 57
Thank Q very much...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is it possible to write awt in jsp