Re: forwarding req.values ?

Christoph Zwerschke <[email protected]>
Newsgroups gmane.comp.python.webware
Message-ID <[email protected]>
[email protected] wrote:
> if I avoid "trans.application().forward(trans, 'list.psp')"
> <%
> req.setField('ww', ww)
> req.setField('rr', rr)        
> req.setField('xx', xx)
> ###################  trans.application().forward(trans, 'list.psp') 
> %>
> <form action="list.psp" method="post"> 
> <INPUT type="hidden" name="aa" value="<%=aa%>">
> <INPUT type="hidden" name="bb" value="<%=bb%>">
> <INPUT type="hidden" name="cc" value="<%=cc%>">
>  
> Does all req.values (aa,bb,cc,ww,rr,xx)will be send to list.psp ?

Then, if you press the submit button, only aa, bb, cc will be sent. The 
req.fields belong only to the current request.

Maybe what you are really looking for are session values. If you
self.session().setValue('ww', ww) in your PSP file, then you can 
retrieve ww with self.session().value('ww') in list.psp and all other 
following requests.

-- Christoph

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.