To clear this one out... The first time i am trying to put the $link + page into $testlink. The second Time I am trying to assign $testlink + Action to $testlink2 But $testlink2 is empty, and $testlink has the information. That is the Problem.
Kind regards J�rgen Hoffmann ByteACTION GmbH cert. Perl Programmer cert. Linux System Administrator cert. Java Programmer Besuchen Sie uns doch auf der CeBIT 2003 in Halle 4/Stand 70 -----Urspr�ngliche Nachricht----- Von: Marc Lustig [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Februar 2003 17:58 An: Turbine Users List Betreff: AW: $link mystery If I understand you correct you wonder why nothing is added to your path when you use setAction() My solution is to extend TemplateLink and add a method like this: public DynamicURI addActionInfo(String actionMethodName) { return addPathInfo("eventSubmit_do"+actionMethodName,"foo"); } Now I create the action-info for the link like this: <a href="$link.setAction("ActionsClass").addActionInfo("Actionmethod")"> MArc > -----Urspr�ngliche Nachricht----- > Von: J�rgen Hoffmann [mailto:[EMAIL PROTECTED]] > Gesendet: Freitag, 14. Februar 2003 17:44 > An: [EMAIL PROTECTED] > Betreff: $link mystery > > > Hi, > > Can one explain me this? In my Template i have the following > statements: > > #set ( $testlink = $link.setPage("john,doe.vm") ) > #set ( $testlink2 = $testlink.setAction("john,doe.vm") ) > Testlink: $testlink<br/> > Testlink2: $testlink2 > > This becomes: > Testlink: > http://localhost:8080/accounting/servlet/accounting/template/john%2Cdo > e. > vm/action/john%2Cdoe.vm > Testlink2: http://localhost:8080/accounting/servlet/accounting > > What I am trying to do is Hand a Link over to a macro where I want to > add additional Information to the link. Is this an expected Behaviour? > Has someone done successfully what I am trying to do and can help me? > > Kind regards > > J�rgen Hoffmann > ByteACTION GmbH > > cert. Perl Programmer > cert. Linux System Administrator > cert. Java Programmer > > Besuchen Sie uns doch auf der CeBIT 2003 > in Halle 4/Stand 70 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
