is there a list for jsp / tag development?
I am trying to get this answered, I guess I dont know where to ask. -jason On Wed, 15 Jan 2003, Jason Pyeron wrote: To those who like to deal with tags, I have some JSP code that gets stamped allover every day, it requires tweaking in each situation, hence it is error prone. We decided to make it a tag, but got stuck on two issues: how do we scope the 'formBean' var in the JSP page like jsp:useBean/ how do we simulate jsp:setProperty name='formBean' property='*' / now I am sure we can brute force this, by using reflection and iteration, but is there a method already written? here is my JSP code. jsp:useBean id='formBean' class='com.pyerotechnics.customer.ushr.ca15.intranet.tier2.beans.Form_IssueEdit' %formBean.setPageContext(pageContext);% jsp:setProperty name='formBean' property='dataSource' value='jdbc/intranetDB' / jsp:setProperty name='formBean' property='*' / %formBean.go();% /jsp:useBean here is the intended tag syntax. p:useFormBean id='formBean' class='com.pyerotechnics.customer.ushr.ca15.intranet.tier2.beans.Form_IssueEdit' dataSource='jdbc/intranetDB' / -Jason Pyeron -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: is there a list for jsp / tag development?
Jason If you dont mind waiting till mebbe tomorrowI used to have a list of links for developing tags as well as some good forum sites for obtaining help. I'll see if I can locate them. There is also a taglibs mailing list available from the jakarta mailing lists page. -b On Thu, 2003-01-16 at 18:07, Jason Pyeron wrote: I am trying to get this answered, I guess I dont know where to ask. -jason On Wed, 15 Jan 2003, Jason Pyeron wrote: To those who like to deal with tags, I have some JSP code that gets stamped allover every day, it requires tweaking in each situation, hence it is error prone. We decided to make it a tag, but got stuck on two issues: how do we scope the 'formBean' var in the JSP page like jsp:useBean/ how do we simulate jsp:setProperty name='formBean' property='*' / now I am sure we can brute force this, by using reflection and iteration, but is there a method already written? here is my JSP code. jsp:useBean id='formBean' class='com.pyerotechnics.customer.ushr.ca15.intranet.tier2.beans.Form_IssueEdit' %formBean.setPageContext(pageContext);% jsp:setProperty name='formBean' property='dataSource' value='jdbc/intranetDB' / jsp:setProperty name='formBean' property='*' / %formBean.go();% /jsp:useBean here is the intended tag syntax. p:useFormBean id='formBean' class='com.pyerotechnics.customer.ushr.ca15.intranet.tier2.beans.Form_IssueEdit' dataSource='jdbc/intranetDB' / -Jason Pyeron -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron http://www.pyerotechnics.com - - Owner Lead Pyerotechnics Development, Inc. - - +1 410 808 6646 (c) 500 West University Parkway #1S - - +1 410 467 2266 (f) Baltimore, Maryland 21210-3253 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, purge the message from your system and notify the sender immediately. Any other use of the email by you is prohibited. -- 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]
RE: is there a list for jsp / tag development?
To answer your original question, look at the BeanUtils package in Jakarta Commons. http://jakarta.apache.org/commons/beanutils.html In particular, BeanUtils.populate(Object, Map) -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -Original Message- From: Jason Pyeron [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 1:07 PM To: Tomcat Users List Subject: is there a list for jsp / tag development? I am trying to get this answered, I guess I dont know where to ask. -jason On Wed, 15 Jan 2003, Jason Pyeron wrote: To those who like to deal with tags, I have some JSP code that gets stamped allover every day, it requires tweaking in each situation, hence it is error prone. We decided to make it a tag, but got stuck on two issues: how do we scope the 'formBean' var in the JSP page like jsp:useBean/ how do we simulate jsp:setProperty name='formBean' property='*' / now I am sure we can brute force this, by using reflection and iteration, but is there a method already written? here is my JSP code. jsp:useBean id='formBean' class='com.pyerotechnics.customer.ushr.ca15.intranet.tier2.bea ns.Form_IssueEdit' %formBean.setPageContext(pageContext);% jsp:setProperty name='formBean' property='dataSource' value='jdbc/intranetDB' / jsp:setProperty name='formBean' property='*' / %formBean.go();% /jsp:useBean here is the intended tag syntax. p:useFormBean id='formBean' class='com.pyerotechnics.customer.ushr.ca15.intranet.tier2.bea ns.Form_IssueEdit' dataSource='jdbc/intranetDB' / -Jason Pyeron -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]