Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

About the better way to implement a JSP in read/edit mode

Frederik Minatchy

2010-03-09

Replies: Find Java Web Hosting

Author LoginPost Reply
Hello everybody...


I wonder about the better way to implement a JSP which shows the same informations in readonly mode and in creation/modification mode.

So I have just designed the JSP' fields with s:textfield who can be dynamically shown in readonly mode with special css (background:transparent; border:none;...) specified in the action class.

So the action class sets some attributes with certains values and than the html stream is generated in read mode or in edit mode.

Is this the good way or should I developpe two JSP : one in read mode and an other one in edit mode?





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.