Hello

Thanks for the quick replay. I made a new try, but it won't work ;-) Here my 
new code:

 <%                             
       ArrayList cvePOSTHistList = null;
       DaoCVE dao = new DaoCVE();  
       String cve_id = CVEPOSTModify.getCVEId();
       cvePOSTHistList = dao.getCVEPostHistList(cve_id);
       request.setAttribute("CVEPOSTHistList", cvePOSTHistList);    
     %>
     
      <display:table name="CVEPOSTHistList"
                            export="true"
                            pagesize="10"
                            
requestURI="/FrontControllerCVE.do?hid=histId&id=CVEId">                        
      

              <display:column property="histId"
                              title="HistId"
                              paramId="hid"
                              paramProperty="histId" 
                              sortable="true"                                   
          
                              width="8%" />                        
              <display:column property="CVEId"
                              title="CVE-Nr." 
                              
href="FrontControllerCVE?cmdModifyPostCVEHist=show"
                              paramId="id"  
                              paramProperty="CVEId"                          
                              width="12%" /> 
              <display:column property="category"
                              title="Kategorie" 
                              width="15%" />                          
              <display:column property="status"
                              title="Status" 
                              sortable="true"
                              width="15%" /> 
              <display:column property="hod"
                              title="HoD" 
                              width="5%" /> 
              <display:column property="actions"
                              title="Bemerkungen" 
                              width="35%" /> 
                   
              <display:setProperty name="export.pdf" 
                                   value="true" /> 
              </display:table>    
                  
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.

What can I do?

Thanks for your help!

Kind regards

Jürg

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Rick Herrick
Gesendet: Dienstag, 11. April 2006 17:42
An: [email protected]
Betreff: Re: [displaytag-user] Sending more than one paramter with a hyperlink


[EMAIL PROTECTED] wrote:
>
> Hello
>
> I have to problem, that I would like to send two parameters (properties)
> with my request (histId and Nr). The table code in my jsp looks like this:
>
> <%
>      ArrayList HistList = null;
>      Dao dao = new Dao();
>      String id = MyModify.getId();
>      HistList = dao.HistList(id);
>     request.setAttribute("myBeanName", HistList);
> %>
>
>        <display:table name="myBeanName"
>                       export="true"
>                       pagesize="10"
>                       requestURI="">

I'm assuming that by "my request", you mean for the sorting and paging
links.  If so, then you want to use the requestURI attribute in the
<display:table> tag.  Basically, specify the requestURI along with the
parameters you want to pass.  You can compose this as a string ahead of
time then just evaluate that with EL or scriptlet, or do it all in-line,
or whatever.  But just create "myRequest.do?histId=XXX&Nr=YYY" and set
that value for requestURI.  displaytag will take care of adding the paging
and sorting parameters to the URI appropriately.

There are a few e-mails from last week on this e-mail list that you can
find in the archive that have a full example of this (sourceforge.net is
down right now though, so I can't look it up).  You should always check
the archives for this sort of problem first, since most of the time these
questions have been asked and answered previously.

-- 
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


-------------------------------------------------------
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&kid0944&bid$1720&dat1642
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to