[PJUG Javamail] handling http request parameters in spring framework

Michael Phoenix michaelandrewphoenix at gmail.com
Fri May 15 20:49:27 EDT 2009


I'm in the process of designing a suite of add-on applications to a a
software product that my company is purchasing. The purchase
application will call the custom application using an http requestsend
data in the form of http request parameters. Being a newbie at Spring,
I'd like some suggestions as to how best to handle these parameter
values and send them to through the controller to the model and view.

My initial thought is to have the initial page in the custom app suite
be a JSP that processes the http parameters. it will use one parm
called "application" to determine which action it wants to invoke. The
other parameter(s) will be transferred to the URL used to call the
proper action method for a multi-action controller. Each of the
controller's action methods would get the parameter value from the
request object passed as an argument and add the value as a string
object to the model and view object.

My other thought is to use JSF and move the parameter to a JSF managed
bean in the initial JSP.

So do either or both of these solutions make sense to experienced
Spring web app developers? I'd like to know of any gotchas in these
strategies. I'm assuming the first solution would be easier, but as I
am pretty familiar with JSF, I thought using that might be an option
as well.

Thanks in advance for any information and suggestions.


More information about the Javamail mailing list