Re: [HELP] What's wrong with my html:link syntax... :(
Pham, To, it looks as if the quotes will not be interpreted correctly in the following part: html:link page=/student/getScore.jsp?id=treetag:nodeId node=tree.node/ The text 'tree.node' will not be inside quotes, contrarely to what I understand below that you would want. Perhaps you should use single quotes for the outside quotes and double quotes for the inside (or vice versa). Jan-Jaap Pham Anh Tuan wrote: Hi all, I got a problem when I code like below: html:link page=/student/getScore.jsp?id=treetag:nodeId node=tree.node/Go/html:link I can not get value of treetag:nodeId node=tree.node/ if my code is incorrect, plz help me solve it. thanks Bowl - 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]
Re: [HELP] What's wrong with my html:link syntax... :(
I thought, inside a jsp tag parameter (here the page parameter) the only substitutions allowed were in the following syntax: ${bean.property} %= someExpression() % and so to have your expected result you need to export the value of treetag:nodeId to a bean and then use that bean value in html:link Am i wrong? Le Mercredi 16 Mars 2005 09:42, Jan-Jaap Endenburg - Vera a écrit : Pham, To, it looks as if the quotes will not be interpreted correctly in the following part: html:link page=/student/getScore.jsp?id=treetag:nodeId node=tree.node/ The text 'tree.node' will not be inside quotes, contrarely to what I understand below that you would want. Perhaps you should use single quotes for the outside quotes and double quotes for the inside (or vice versa). Jan-Jaap Pham Anh Tuan wrote: Hi all, I got a problem when I code like below: html:link page=/student/getScore.jsp?id=treetag:nodeId node=tree.node/Go/html:link I can not get value of treetag:nodeId node=tree.node/ if my code is incorrect, plz help me solve it. thanks Bowl - 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]
Re: [HELP] What's wrong with my html:link syntax... :(
You cannot use a tag as attribute of another tag : they must follow an XML structure Use a variable to store the result of your tag : c:set var=nodetreetag:nodeId node=tree.node//c:set html:link page=/student/getScore.jsp?id=${node}Go/html:link or c:set var=nodetreetag:nodeId node=tree.node//c:set html:link page=/student/getScore.jsp paramId=id paramName=node If you don't use struts-EL, use bean:define to define a script v bean:define id=nodetreetag:nodeId node=tree.node//bean:define html:link page=/student/getScore.jsp paramId=id paramName=nodeGo/html:link Nico. Pham Anh Tuan a écrit : Hi all, I got a problem when I code like below: html:link page=/student/getScore.jsp?id=treetag:nodeId node=tree.node/Go/html:link I can not get value of treetag:nodeId node=tree.node/ if my code is incorrect, plz help me solve it. thanks Bowl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [HELP] What's wrong with my html:link syntax... :(
Thank you all :), the good new is my problem is solved by all you. Again, thank all you very much :) - Original Message - From: Nicolas De Loof [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, March 16, 2005 3:57 PM Subject: Re: [HELP] What's wrong with my html:link syntax... :( You cannot use a tag as attribute of another tag : they must follow an XML structure Use a variable to store the result of your tag : c:set var=nodetreetag:nodeId node=tree.node//c:set html:link page=/student/getScore.jsp?id=${node}Go/html:link or c:set var=nodetreetag:nodeId node=tree.node//c:set html:link page=/student/getScore.jsp paramId=id paramName=node If you don't use struts-EL, use bean:define to define a script v bean:define id=nodetreetag:nodeId node=tree.node//bean:define html:link page=/student/getScore.jsp paramId=id paramName=nodeGo/html:link Nico. Pham Anh Tuan a écrit : Hi all, I got a problem when I code like below: html:link page=/student/getScore.jsp?id=treetag:nodeId node=tree.node/Go/html:link I can not get value of treetag:nodeId node=tree.node/ if my code is incorrect, plz help me solve it. thanks Bowl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. - 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]
[HELP] What's wrong with my html:link syntax... :(
Hi all, I got a problem when I code like below: html:link page=/student/getScore.jsp?id=treetag:nodeId node=tree.node/Go/html:link if my code is incorrect, plz help me solve it. thanks Bowl