[EMAIL PROTECTED] wrote:
> Thanks for the quick replay. I made a new try, but it won't work ;-) Here
> my new code:
>
> <display:table name="CVEPOSTHistList"
> export="true"
> pagesize="10"
>
> requestURI="/FrontControllerCVE.do?hid=histId&id=CVEId">
> So what I want to do: I would like the forward the request (by clicking
> the link in the column with the title "CVE-Nr") to the FrontControllerCVE.
> The FrontControllerCVE is then dispatching the request WITH THE TWO
> parameters to a Servlet, that makes a DB query WITH THE TWO parameters in
> the request. The two parameters that I would like to dispatch to the
> Servlet are the column property "CVEId" and the column property "histId".
> So, something in my code is wrong, becose I don't have access the this two
> parameters in my servlet.
There's two things:
* The first is with the requestURI attribute. I'm guessing you don't
actually want literally histId and CVEId sent as the values for the hid
and id parameters. If this is just pseudocode, then fine. But if this is
really what you've got in your code, you're going to get histId and CVEId
as the values every time. You need to use EL or scriptlets or something
to eval some values for that, e.g.
requestURI="xxx.do?hid=${histID}&id=${CVEId}" or whatever.
* As far as the parameters being submitted to your action, it's not a
displaytag problem, it's a Struts problem. I haven't worked with Struts
in quite a while (switch to Spring! :^), so I don't remember exactly where
this is configured, but you can specify what request parameters an action
should expect and ONLY those request parameters will be passed into the
action. So you just need to modify your Struts config to add the hid and
id parameters. Like I said, I don't really remember what config elements
this sort of thing is specified in, but it's somewhere in the action
definition.
--
Rick Herrick
[EMAIL PROTECTED]
I haven't got time for inner peace.
"No reasonable definition of reality could be expected to permit
this."--Albert Einstein, Boris Podolsky and Nathan Rosen in 1935
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user