Hi again,
I am curious if there is a better way to get many form/pages worth of
request parameters in a better fashion than each action having from 1 to
infinte number of
bean.setXXX( request.getParameter("XXX") );
On my Enrollment page I had 32 lines of this, which isn't a big deal..but
its killing for a loop of some kind! I am not familiar with how to do
reflection, but it would be great if I could implement a way to do what the
Model 1 JSP/JavaBean does, by taking the request parameter, and applying it
to a "set" string and get the method to call. Can anyone explain how to do
this? I will dig up some dirt on it..but if anyone has done this using
reflection the way JSP engines do it, that would be great.
On that note, is using reflection a lot slower than the multiple
request.getParameter() calls? I don't want to eat up cpu just to save a few
lines of code..not to mention most java developers, especially beginners,
may not know reflection upon seeing it in use, thus its a bit harder to
understand. Oh..I would ideally want a single method that all action classes
can use, possibly a static one, to turn the request parameters into a bunch
of setXXX calls and actually call the setXXX methods of each action classes
bean instance.
Thanks.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets