I am using a jsp page as template for manipulating the iteration for different user
data objects,
so I have to save the color value each time getting out from this page to avoid
getting the same color for adjacent lines of a table.
For this I have setter and getter in the bean class and I tryed
<bean:parameter name="user" id="userParameter"/>
<bean:parameter name="user" id="userParameter"/>
<bean:define id="color" name="<%=userParameter%>" property="color"/>
<%if(color.equals("#ececec");
color="";
else
color="#ececec";
%>
<html:hidden name ="user" property="color" value="<%=color%>">
but it is not working through
I tryed also by
<jsp:setAttribute name ="user" property ="color" value<%=color%>
is there any way to use "pageContext" or by some way else?
any help would be appreciated
alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universit�t M�nchen
Leopoldstr .3
80802 M�nchen
Germany
Office Tel + 49.89.21025979
Office Fax + 49.89.21025980
>>> [EMAIL PROTECTED] 12/03/01 02:43pm >>>
Hi All,
Though I still have much existing material to read in the STRUTS mailing
lists (thanks again for your help Jon!), I have come across three
interesting solutions to dealing with automating or centralizing the
translation of data from Action Forms (presentation layer) to Value Objects
(business layer) and back again. Here are the three approaches:
Translation Pattern:
http://www-106.ibm.com/developerworks/library/j-jsppatt/?dwzone=java&dwzone=ibm
Using Property Editors:
http://www.onjava.com/pub/a/onjava/2001/11/07/jsp12.html?page=2
Using Code Generation:
http://www.javaworld.com/javaworld/jw-11-2001/jw-1102-codegen.html
The current one that I have seen referred to in the mailing lists is using
Reflection (which still may easily solve this in most cases) or some type
of mapper driven by XML setup info. Here are the mailing list threads that
I have found on it so far:
http://www.mail-archive.com/[email protected]/msg18315.html
http://www.mail-archive.com/[email protected]/msg18373.html
(an answer from Ted related to msg18315)
http://archive.covalent.net/jakarta/struts-dev/2000/10/0135.xml
http://www.mail-archive.com/[email protected]/msg05437.html
Two other related patterns that I have found are the:
View Helper:
http://developer.java.sun.com/developer/restricted/patterns/ViewHelper.html
Dynamic Value Object:
http://www.theserverside.com/patterns/thread.jsp?thread_id=2722
I was curious what people thought of these solutions and what other
solutions they had come up with.
This is an area that I really want to automate and that I really want to
have a couple of solutions for (since it could generate a great deal of
code that I REALLY don't want to have to rework if I find that the solution
is no good).
Thanks for your thoughts and comments!
Allen
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>