I guess it is a bit difficult, but do you just need that name?
You can use
to get all names of the request parameters, and then choose your target attribute name. And if it is the only request parameter from the previous page, you have no need to add any logic to identify which attribute is the one you needed.
I think in this way becos, if we wanna get something in the DispatchAction class, we may need to know the parameter name, and that we can get the value. If we dont know the parameter names, we may then get the whole list of parameter names, and then get back the name-value pairs.
Even we use ActionForm to capture the request parameters, the request parameters are still in the request, and thus, we can still get the values.
Nick
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)