Re: JSTL and Struts together

2005-05-20 Thread David Johnson
you can use the html-el:text value=${param.x}html-el:text control to 
accomplish just that I'm doing that in a bunch of places.

On 5/20/05, Shey Rab Pawo [EMAIL PROTECTED] wrote: 
 
 html-el:form etc.
 
 On 5/19/05, Suresh Khatri [EMAIL PROTECTED] wrote:
  %@ taglib uri=http://java.sun.com/jstl/core; prefix=c/
  %@ taglib uri=/tags/struts-html prefix=html/
 
  html:form action=dynaadd.do http://dynaadd.do
  html:text
  property=name
  value=c:out value=${param.x}//
  /html:form
 
  would display the whole thing. Is there a way of making it
  evaluate c:out first and then pass the evaluation to value
  of html:text
 
  this works but it is because input is not in the namespace
  html
  input type=text
  name=name value=c:out value=${param.x}//
 
  How can this be solved using Struts and JSTL
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 --
 No one ever went blind looking at the bright side of life.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
-Dave
[EMAIL PROTECTED]


Re: JSTL and Struts together

2005-05-20 Thread Hubert Rabago
Suresh, I would recommend you still use html as prefix instead of
html-el.  This way, when you switch to a web container that supports
EL and decide to drop the struts-el.jar, you can just modify your %@
taglib % declaration to reconfigure (or, depending on how configure
tags, just your web.xml file).

Of course there's nothing wrong with using the html-el prefix, but I
prefer sticking with the usual prefixes.

Hubert

On 5/20/05, David Johnson [EMAIL PROTECTED] wrote:
 you can use the html-el:text value=${param.x}html-el:text control to
 accomplish just that I'm doing that in a bunch of places.
 
 On 5/20/05, Shey Rab Pawo [EMAIL PROTECTED] wrote:
 
  html-el:form etc.
 
  On 5/19/05, Suresh Khatri [EMAIL PROTECTED] wrote:
   %@ taglib uri=http://java.sun.com/jstl/core; prefix=c/
   %@ taglib uri=/tags/struts-html prefix=html/
  
   html:form action=dynaadd.do http://dynaadd.do
   html:text
   property=name
   value=c:out value=${param.x}//
   /html:form
  
   would display the whole thing. Is there a way of making it
   evaluate c:out first and then pass the evaluation to value
   of html:text
  
   this works but it is because input is not in the namespace
   html
   input type=text
   name=name value=c:out value=${param.x}//
  
   How can this be solved using Struts and JSTL
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  No one ever went blind looking at the bright side of life.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 --
 -Dave
 [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSTL and Struts together

2005-05-20 Thread Karr, David
If you look in the contrib folder of the Struts distribution, you'll
find the struts-el distribution.  This provides a taglib that just
wraps the Struts tag library so that all tag attributes are passed
through the JSTL EL engine, so you could do the following:

%@ taglib uri=http://java.sun.com/jstl/core; prefix=c/
%@ taglib uri=/tags/struts-html-el prefix=html/

html:form action=dynaadd.do
   html:text 
 property=name 
 value=${param.x}/
/html:form

 -Original Message-
 From: Suresh Khatri [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, May 19, 2005 10:16 PM
 To: user@struts.apache.org
 Subject: JSTL and Struts together
 
 
 %@ taglib uri=http://java.sun.com/jstl/core; prefix=c/
 %@ taglib uri=/tags/struts-html prefix=html/
 
 html:form action=dynaadd.do
html:text 
  property=name 
  value=c:out value=${param.x}//
 /html:form
 
 would display the whole thing. Is there a way of making it 
 evaluate c:out first and then pass the evaluation to value 
 of html:text
 
 this works but it is because input is not in the namespace 
 html
 input type=text 
name=name value=c:out value=${param.x}//
 
 How can this be solved using Struts and JSTL
 
 
 -
 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: JSTL and Struts together

2005-05-20 Thread Suresh Khatri
Thank You.

found EL jar and tld in contrib folder.



 Original message 
Date: Fri, 20 May 2005 06:23:18 -0700
From: Karr, David [EMAIL PROTECTED]  
Subject: RE: JSTL and Struts together  
To: Struts Users Mailing List user@struts.apache.org

If you look in the contrib folder of the Struts 
distribution, you'll
find the struts-el distribution.  This provides a taglib 
that just
wraps the Struts tag library so that all tag attributes are 
passed
through the JSTL EL engine, so you could do the following:

%@ taglib uri=http://java.sun.com/jstl/core; prefix=c/
%@ taglib uri=/tags/struts-html-el prefix=html/

html:form action=dynaadd.do
   html:text 
 property=name 
 value=${param.x}/
/html:form

 -Original Message-
 From: Suresh Khatri [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, May 19, 2005 10:16 PM
 To: user@struts.apache.org
 Subject: JSTL and Struts together
 
 
 %@ taglib uri=http://java.sun.com/jstl/core; prefix=c/
 %@ taglib uri=/tags/struts-html prefix=html/
 
 html:form action=dynaadd.do
html:text 
  property=name 
  value=c:out value=${param.x}//
 /html:form
 
 would display the whole thing. Is there a way of making it 
 evaluate c:out first and then pass the evaluation to 
value 
 of html:text
 
 this works but it is because input is not in the namespace 
 html
 input type=text 
name=name value=c:out value=${param.x}//
 
 How can this be solved using Struts and JSTL
 
 
 ---
--
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: user-
[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]



JSTL and Struts together

2005-05-19 Thread Suresh Khatri
%@ taglib uri=http://java.sun.com/jstl/core; prefix=c/
%@ taglib uri=/tags/struts-html prefix=html/

html:form action=dynaadd.do
   html:text 
 property=name 
 value=c:out value=${param.x}//
/html:form

would display the whole thing. Is there a way of making it 
evaluate c:out first and then pass the evaluation to value 
of html:text

this works but it is because input is not in the namespace 
html
input type=text 
   name=name value=c:out value=${param.x}//

How can this be solved using Struts and JSTL


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSTL and Struts together

2005-05-19 Thread Shey Rab Pawo
html-el:form etc.

On 5/19/05, Suresh Khatri [EMAIL PROTECTED] wrote:
 %@ taglib uri=http://java.sun.com/jstl/core; prefix=c/
 %@ taglib uri=/tags/struts-html prefix=html/
 
 html:form action=dynaadd.do
html:text
  property=name
  value=c:out value=${param.x}//
 /html:form
 
 would display the whole thing. Is there a way of making it
 evaluate c:out first and then pass the evaluation to value
 of html:text
 
 this works but it is because input is not in the namespace
 html
 input type=text
name=name value=c:out value=${param.x}//
 
 How can this be solved using Struts and JSTL
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
No one ever went blind looking at the bright side of life.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]