No, you can't (it's invalid XML). Have you tried it? > -----Original Message----- > From: Ravi Kora [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 03, 2002 10:37 AM > To: 'Struts Users Mailing List' > Subject: RE: [Struts Tip] # 10 Use Struts JSP Tags to create dynamic > JavaScripts > > > My actual intention was to question if we can use dynamic scriplets in > Struts tags like the following > <html:text name="txt" value="<bean:write> name="itemForm" > property="item"/>" onBlur='javascript:doItem(<bean:write> > name="itemForm" property="item"/>)'> > > Will the expression in the Value attribute evaluate at run time like a > scriplet expression in JSP? > > > Thanks & Regards, > Ravi Kora > [EMAIL PROTECTED] > 337-739-3434(M) > > -----Original Message----- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, September 03, 2002 11:19 AM > To: Struts Users Mailing List > Subject: Re: [Struts Tip] # 10 Use Struts JSP Tags to create dynamic > JavaScripts > > > The purpose of the Struts HTML link tag is to render the href > attribute > from an ActionForward path OR as context-relative reference > to a page in > > your application, and to URL-encode either along the way. > > What would be the benefit of using a HTML link tag here? > > -Ted. > > Ravi Kora wrote: > > > Ted, > > In your example, you have the following html tag > > <a href='javascript:doItem(<bean:write name="itemForm" > > property="item"/>)'> > > > > Is there a way to have this as struts tag and still have > the dynamic > > part in it like this? <html:link > href='javascript:doItem(<bean:write > > name="itemForm" property="item"/>)'> > > > > Will the above work? > > > > Thanks & Regards, > > Ravi Kora > > [EMAIL PROTECTED] > > 337-739-3434(M) > > > > -----Original Message----- > > From: Ted Husted [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, September 03, 2002 8:56 AM > > To: [EMAIL PROTECTED] > > Subject: [Struts Tip] # 10 Use Struts JSP Tags to create dynamic > > JavaScripts > > > > > > The Struts framework ensures that we can perform data validation > > without > > > > the benefit if JavaScript. But that doesn't mean we can't use > > JavaScript > > > > in our Struts applications. Most web developers rely on > JavaScript to > > provide core features on the presentation layer, and Struts > developers > > > are no exception. > > > > For more see <http://husted.com/struts/tips/010.html> > > > > > > -- Ted Husted, Husted dot Com, Fairport NY US > > -- co-author, Java Web Development with Struts > > -- Order it today: > > -- http://husted.com/struts/book.html > > > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> >
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>