Re: c:out tag inside html:text tag
Two issues may be at work here: 1. It isn't valid to have a JSP tag render an attribute value for another JSP tag. This might work instead, depending on the scope of styleVar: html:text name=Customer property =Name maxlength=256 size=256 style=%=styleVar% / 2. Are you missing the %@ taglib % thingy for the html taglib in your JSP? -Max - Original Message - From: Rahul Mohan [EMAIL PROTECTED] To: struts [EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 11:47 PM Subject: c:out tag inside html:text tag Hi...I am facing some problems with using JSTL tags inside struts tags. This is the piece of code I wrote for my application: html:text name=Customer property =Name maxlength=256 size=256 style=c:out value=${styleVar}/ / the problem is that it is getting traslated to html:text name=w_CustomerWin property =wca_Name maxlength=256 size=256 style=width:100;height:22;position:absolute;top:20;left:56;display:none; / in the final html page!! can anybody please tell me why the html:text tag is not getting translated to input type=text . ? thank you.. Rahul Mohan ~~~ MasterCraft Group Tata Consultancy Services Tata Research Development and Design Center 54B, Hadapsar Industrial Estate Pune - 411 013 Phone: +91 4042333 or 4031122 Extn 2541 +91 471 3129787 ( Mobile ) Fax: +91 20 4042399 email : [EMAIL PROTECTED] ~~~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: c:out tag inside html:text tag
Hi Max, Thanks for the reply... I have found a work around for the problem...but it looks wierd!! These are the steps I performed: 1. I am setting the styleVar as follows: c:set var=styleVar c:choose some JSTL conditional stmts /c:choose /c:set 2. Then I retrieve the value using the following scriptlet: % String str = pageContext.findAttribute(styleVar).toString(); % 3. Now I can use the value of str inside my html:text tag as follows: html:text name=Customer property =Name maxlength=256 size=256 style=%=str% / The wierd part is that if I put style=%=pageContext.findAttribute(styleVar).toString()% inside the html:text tag it wont work!!! Can anybody tell me why it is so?? I am stumped! thank you all... rahul - Original Message - From: Max Cooper [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; Rahul Mohan [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 1:45 PM Subject: Re: c:out tag inside html:text tag Two issues may be at work here: 1. It isn't valid to have a JSP tag render an attribute value for another JSP tag. This might work instead, depending on the scope of styleVar: html:text name=Customer property =Name maxlength=256 size=256 style=%=styleVar% / 2. Are you missing the %@ taglib % thingy for the html taglib in your JSP? -Max - Original Message - From: Rahul Mohan [EMAIL PROTECTED] To: struts [EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 11:47 PM Subject: c:out tag inside html:text tag Hi...I am facing some problems with using JSTL tags inside struts tags. This is the piece of code I wrote for my application: html:text name=Customer property =Name maxlength=256 size=256 style=c:out value=${styleVar}/ / the problem is that it is getting traslated to html:text name=w_CustomerWin property =wca_Name maxlength=256 size=256 style=width:100;height:22;position:absolute;top:20;left:56;display:none; / in the final html page!! can anybody please tell me why the html:text tag is not getting translated to input type=text . ? thank you.. Rahul Mohan ~~~ MasterCraft Group Tata Consultancy Services Tata Research Development and Design Center 54B, Hadapsar Industrial Estate Pune - 411 013 Phone: +91 4042333 or 4031122 Extn 2541 +91 471 3129787 ( Mobile ) Fax: +91 20 4042399 email : [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: c:out tag inside html:text tag
Might be your nested quotes . try using different quote characters to define the nested string ie. style='%=pageContext.findAttribute(styleVar).toString()%' S. -Original Message- From: Rahul Mohan [mailto:[EMAIL PROTECTED] Sent: 04 February 2004 09:09 To: Struts Users Mailing List Subject: Re: c:out tag inside html:text tag Hi Max, Thanks for the reply... I have found a work around for the problem...but it looks wierd!! These are the steps I performed: 1. I am setting the styleVar as follows: c:set var=styleVar c:choose some JSTL conditional stmts /c:choose /c:set 2. Then I retrieve the value using the following scriptlet: % String str = pageContext.findAttribute(styleVar).toString(); % 3. Now I can use the value of str inside my html:text tag as follows: html:text name=Customer property =Name maxlength=256 size=256 style=%=str% / The wierd part is that if I put style=%=pageContext.findAttribute(styleVar).toString()% inside the html:text tag it wont work!!! Can anybody tell me why it is so?? I am stumped! thank you all... rahul - Original Message - From: Max Cooper [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; Rahul Mohan [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 1:45 PM Subject: Re: c:out tag inside html:text tag Two issues may be at work here: 1. It isn't valid to have a JSP tag render an attribute value for another JSP tag. This might work instead, depending on the scope of styleVar: html:text name=Customer property =Name maxlength=256 size=256 style=%=styleVar% / 2. Are you missing the %@ taglib % thingy for the html taglib in your JSP? -Max - Original Message - From: Rahul Mohan [EMAIL PROTECTED] To: struts [EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 11:47 PM Subject: c:out tag inside html:text tag Hi...I am facing some problems with using JSTL tags inside struts tags. This is the piece of code I wrote for my application: html:text name=Customer property =Name maxlength=256 size=256 style=c:out value=${styleVar}/ / the problem is that it is getting traslated to html:text name=w_CustomerWin property =wca_Name maxlength=256 size=256 style=width:100;height:22;position:absolute;top:20;left:56;display:none; / in the final html page!! can anybody please tell me why the html:text tag is not getting translated to input type=text . ? thank you.. Rahul Mohan ~~~ MasterCraft Group Tata Consultancy Services Tata Research Development and Design Center 54B, Hadapsar Industrial Estate Pune - 411 013 Phone: +91 4042333 or 4031122 Extn 2541 +91 471 3129787 ( Mobile ) Fax: +91 20 4042399 email : [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: c:out tag inside html:text tag
thanks scott The problem is not with quotes as I am getting the following code in the final html; html:text name=w_CustomerWin property =wca_Name maxlength=256 size=256 style=width:100;height:22;position:absolute;top:20;left:56;display:none / note that this is present in the final html...i.e the html:text is not getting translated to html anyways I have tried using sngle quotes instead of double quotes...but still it doesnt work any idea? - Original Message - From: Glenn, Scott [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 2:42 PM Subject: RE: c:out tag inside html:text tag Might be your nested quotes . try using different quote characters to define the nested string ie. style='%=pageContext.findAttribute(styleVar).toString()%' S. -Original Message- From: Rahul Mohan [mailto:[EMAIL PROTECTED] Sent: 04 February 2004 09:09 To: Struts Users Mailing List Subject: Re: c:out tag inside html:text tag Hi Max, Thanks for the reply... I have found a work around for the problem...but it looks wierd!! These are the steps I performed: 1. I am setting the styleVar as follows: c:set var=styleVar c:choose some JSTL conditional stmts /c:choose /c:set 2. Then I retrieve the value using the following scriptlet: % String str = pageContext.findAttribute(styleVar).toString(); % 3. Now I can use the value of str inside my html:text tag as follows: html:text name=Customer property =Name maxlength=256 size=256 style=%=str% / The wierd part is that if I put style=%=pageContext.findAttribute(styleVar).toString()% inside the html:text tag it wont work!!! Can anybody tell me why it is so?? I am stumped! thank you all... rahul - Original Message - From: Max Cooper [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; Rahul Mohan [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 1:45 PM Subject: Re: c:out tag inside html:text tag Two issues may be at work here: 1. It isn't valid to have a JSP tag render an attribute value for another JSP tag. This might work instead, depending on the scope of styleVar: html:text name=Customer property =Name maxlength=256 size=256 style=%=styleVar% / 2. Are you missing the %@ taglib % thingy for the html taglib in your JSP? -Max - Original Message - From: Rahul Mohan [EMAIL PROTECTED] To: struts [EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 11:47 PM Subject: c:out tag inside html:text tag Hi...I am facing some problems with using JSTL tags inside struts tags. This is the piece of code I wrote for my application: html:text name=Customer property =Name maxlength=256 size=256 style=c:out value=${styleVar}/ / the problem is that it is getting traslated to html:text name=w_CustomerWin property =wca_Name maxlength=256 size=256 style=width:100;height:22;position:absolute;top:20;left:56;display:none; / in the final html page!! can anybody please tell me why the html:text tag is not getting translated to input type=text . ? thank you.. Rahul Mohan ~~~ MasterCraft Group Tata Consultancy Services Tata Research Development and Design Center 54B, Hadapsar Industrial Estate Pune - 411 013 Phone: +91 4042333 or 4031122 Extn 2541 +91 471 3129787 ( Mobile ) Fax: +91 20 4042399 email : [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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: c:out tag inside html:text tag
As Max pointed out, the reason you're still seeing html:text could be because you haven't included the appropriate taglib directive: %@ taglib prefix=html uri=http://jakarta.apache.org/struts/tags-html; % And you might try this instead of your scriptlet: c:set var=styleVar ... /c:set jsp:useBean id=styleVar type=java.lang.String/ html:text ... style=%= styleVar %/ Or use Struts-EL: %@ taglib prefix=html-el uri=http://jakarta.apache.org/struts/tags-html-el; % c:set var=styleVar ... /c:set html:text ... style=${styleVar}/ Quoting Rahul Mohan [EMAIL PROTECTED]: thanks scott The problem is not with quotes as I am getting the following code in the final html; html:text name=w_CustomerWin property =wca_Name maxlength=256 size=256 style=width:100;height:22;position:absolute;top:20;left:56;display:none / note that this is present in the final html...i.e the html:text is not getting translated to html anyways I have tried using sngle quotes instead of double quotes...but still it doesnt work any idea? - Original Message - From: Glenn, Scott [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 2:42 PM Subject: RE: c:out tag inside html:text tag Might be your nested quotes . try using different quote characters to define the nested string ie. style='%=pageContext.findAttribute(styleVar).toString()%' S. -Original Message- From: Rahul Mohan [mailto:[EMAIL PROTECTED] Sent: 04 February 2004 09:09 To: Struts Users Mailing List Subject: Re: c:out tag inside html:text tag Hi Max, Thanks for the reply... I have found a work around for the problem...but it looks wierd!! These are the steps I performed: 1. I am setting the styleVar as follows: c:set var=styleVar c:choose some JSTL conditional stmts /c:choose /c:set 2. Then I retrieve the value using the following scriptlet: % String str = pageContext.findAttribute(styleVar).toString(); % 3. Now I can use the value of str inside my html:text tag as follows: html:text name=Customer property =Name maxlength=256 size=256 style=%=str% / The wierd part is that if I put style=%=pageContext.findAttribute(styleVar).toString()% inside the html:text tag it wont work!!! Can anybody tell me why it is so?? I am stumped! thank you all... rahul - Original Message - From: Max Cooper [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; Rahul Mohan [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 1:45 PM Subject: Re: c:out tag inside html:text tag Two issues may be at work here: 1. It isn't valid to have a JSP tag render an attribute value for another JSP tag. This might work instead, depending on the scope of styleVar: html:text name=Customer property =Name maxlength=256 size=256 style=%=styleVar% / 2. Are you missing the %@ taglib % thingy for the html taglib in your JSP? -Max - Original Message - From: Rahul Mohan [EMAIL PROTECTED] To: struts [EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 11:47 PM Subject: c:out tag inside html:text tag Hi...I am facing some problems with using JSTL tags inside struts tags. This is the piece of code I wrote for my application: html:text name=Customer property =Name maxlength=256 size=256 style=c:out value=${styleVar}/ / the problem is that it is getting traslated to html:text name=w_CustomerWin property =wca_Name maxlength=256 size=256 style=width:100;height:22;position:absolute;top:20;left:56;display:none; / in the final html page!! can anybody please tell me why the html:text tag is not getting translated to input type=text . ? thank you.. Rahul Mohan ~~~ MasterCraft Group Tata Consultancy Services Tata Research Development and Design Center 54B, Hadapsar Industrial Estate Pune - 411 013 Phone: +91 4042333 or 4031122 Extn 2541 +91 471 3129787 ( Mobile ) Fax: +91 20 4042399 email : [EMAIL PROTECTED] ~~~ -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: c:out tag inside html:text tag
Quoting Kris Schneider [EMAIL PROTECTED]: As Max pointed out, the reason you're still seeing html:text could be because you haven't included the appropriate taglib directive: %@ taglib prefix=html uri=http://jakarta.apache.org/struts/tags-html; % And you might try this instead of your scriptlet: c:set var=styleVar ... /c:set jsp:useBean id=styleVar type=java.lang.String/ html:text ... style=%= styleVar %/ Or use Struts-EL: %@ taglib prefix=html-el uri=http://jakarta.apache.org/struts/tags-html-el; % c:set var=styleVar ... /c:set html:text ... style=${styleVar}/ html-el:text ... style=${styleVar}/ Quoting Rahul Mohan [EMAIL PROTECTED]: thanks scott The problem is not with quotes as I am getting the following code in the final html; html:text name=w_CustomerWin property =wca_Name maxlength=256 size=256 style=width:100;height:22;position:absolute;top:20;left:56;display:none / note that this is present in the final html...i.e the html:text is not getting translated to html anyways I have tried using sngle quotes instead of double quotes...but still it doesnt work any idea? - Original Message - From: Glenn, Scott [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 2:42 PM Subject: RE: c:out tag inside html:text tag Might be your nested quotes . try using different quote characters to define the nested string ie. style='%=pageContext.findAttribute(styleVar).toString()%' S. -Original Message- From: Rahul Mohan [mailto:[EMAIL PROTECTED] Sent: 04 February 2004 09:09 To: Struts Users Mailing List Subject: Re: c:out tag inside html:text tag Hi Max, Thanks for the reply... I have found a work around for the problem...but it looks wierd!! These are the steps I performed: 1. I am setting the styleVar as follows: c:set var=styleVar c:choose some JSTL conditional stmts /c:choose /c:set 2. Then I retrieve the value using the following scriptlet: % String str = pageContext.findAttribute(styleVar).toString(); % 3. Now I can use the value of str inside my html:text tag as follows: html:text name=Customer property =Name maxlength=256 size=256 style=%=str% / The wierd part is that if I put style=%=pageContext.findAttribute(styleVar).toString()% inside the html:text tag it wont work!!! Can anybody tell me why it is so?? I am stumped! thank you all... rahul - Original Message - From: Max Cooper [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; Rahul Mohan [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 1:45 PM Subject: Re: c:out tag inside html:text tag Two issues may be at work here: 1. It isn't valid to have a JSP tag render an attribute value for another JSP tag. This might work instead, depending on the scope of styleVar: html:text name=Customer property =Name maxlength=256 size=256 style=%=styleVar% / 2. Are you missing the %@ taglib % thingy for the html taglib in your JSP? -Max - Original Message - From: Rahul Mohan [EMAIL PROTECTED] To: struts [EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 11:47 PM Subject: c:out tag inside html:text tag Hi...I am facing some problems with using JSTL tags inside struts tags. This is the piece of code I wrote for my application: html:text name=Customer property =Name maxlength=256 size=256 style=c:out value=${styleVar}/ / the problem is that it is getting traslated to html:text name=w_CustomerWin property =wca_Name maxlength=256 size=256 style=width:100;height:22;position:absolute;top:20;left:56;display:none; / in the final html page!! can anybody please tell me why the html:text tag is not getting translated to input type=text . ? thank you.. Rahul Mohan ~~~ MasterCraft Group Tata Consultancy Services Tata Research Development and Design Center 54B, Hadapsar Industrial Estate Pune - 411 013 Phone: +91 4042333 or 4031122 Extn 2541 +91 471 3129787 ( Mobile ) Fax: +91 20 4042399 email : [EMAIL PROTECTED] ~~~ -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com
RE: c:out tag inside html:text tag
hi, u can use html-el library or jsp:attribute if your server supports jsp2.. []´s Daniel Ruiz -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 4 de fevereiro de 2004 10:54 To: Struts Users Mailing List; Rahul Mohan Subject: Re: c:out tag inside html:text tag As Max pointed out, the reason you're still seeing html:text could be because you haven't included the appropriate taglib directive: %@ taglib prefix=html uri=http://jakarta.apache.org/struts/tags-html; % And you might try this instead of your scriptlet: c:set var=styleVar ... /c:set jsp:useBean id=styleVar type=java.lang.String/ html:text ... style=%= styleVar %/ Or use Struts-EL: %@ taglib prefix=html-el uri=http://jakarta.apache.org/struts/tags-html-el; % c:set var=styleVar ... /c:set html:text ... style=${styleVar}/ Quoting Rahul Mohan [EMAIL PROTECTED]: thanks scott The problem is not with quotes as I am getting the following code in the final html; html:text name=w_CustomerWin property =wca_Name maxlength=256 size=256 style=width:100;height:22;position:absolute;top:20;left:56;display:none / note that this is present in the final html...i.e the html:text is not getting translated to html anyways I have tried using sngle quotes instead of double quotes...but still it doesnt work any idea? - Original Message - From: Glenn, Scott [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 2:42 PM Subject: RE: c:out tag inside html:text tag Might be your nested quotes . try using different quote characters to define the nested string ie. style='%=pageContext.findAttribute(styleVar).toString()%' S. -Original Message- From: Rahul Mohan [mailto:[EMAIL PROTECTED] Sent: 04 February 2004 09:09 To: Struts Users Mailing List Subject: Re: c:out tag inside html:text tag Hi Max, Thanks for the reply... I have found a work around for the problem...but it looks wierd!! These are the steps I performed: 1. I am setting the styleVar as follows: c:set var=styleVar c:choose some JSTL conditional stmts /c:choose /c:set 2. Then I retrieve the value using the following scriptlet: % String str = pageContext.findAttribute(styleVar).toString(); % 3. Now I can use the value of str inside my html:text tag as follows: html:text name=Customer property =Name maxlength=256 size=256 style=%=str% / The wierd part is that if I put style=%=pageContext.findAttribute(styleVar).toString()% inside the html:text tag it wont work!!! Can anybody tell me why it is so?? I am stumped! thank you all... rahul - Original Message - From: Max Cooper [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; Rahul Mohan [EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 1:45 PM Subject: Re: c:out tag inside html:text tag Two issues may be at work here: 1. It isn't valid to have a JSP tag render an attribute value for another JSP tag. This might work instead, depending on the scope of styleVar: html:text name=Customer property =Name maxlength=256 size=256 style=%=styleVar% / 2. Are you missing the %@ taglib % thingy for the html taglib in your JSP? -Max - Original Message - From: Rahul Mohan [EMAIL PROTECTED] To: struts [EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 11:47 PM Subject: c:out tag inside html:text tag Hi...I am facing some problems with using JSTL tags inside struts tags. This is the piece of code I wrote for my application: html:text name=Customer property =Name maxlength=256 size=256 style=c:out value=${styleVar}/ / the problem is that it is getting traslated to html:text name=w_CustomerWin property =wca_Name maxlength=256 size=256 style=width:100;height:22;position:absolute;top:20;left:56;display:none; / in the final html page!! can anybody please tell me why the html:text tag is not getting translated to input type=text . ? thank you.. Rahul Mohan ~~~ MasterCraft Group Tata Consultancy Services Tata Research Development and Design Center 54B, Hadapsar Industrial Estate Pune - 411 013 Phone: +91 4042333 or 4031122 Extn 2541 +91 471 3129787 ( Mobile ) Fax: +91 20 4042399 email : [EMAIL PROTECTED] ~~~ -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http