how do struts resolve the variable?

2006-08-14 Thread Michael Cheung
Hi, all; I create some action which have form on it. Sometime I can access the ActionForm bean via classname, sometime I can access it via variablename(*1), and sometime I have to set it into request object (*2) to access it. *1: in Action, write this code, and access ActionForm via myForm. MyAct

What's the difference between struts-base and struts-el?

2006-08-14 Thread Michael Cheung
Hi, all; What's the difference between struts-base to struts-el. Document here said: http://struts.apache.org/1.2.9/userGuide/building_view.html#struts-el Standard support JSP expression like <%= stringvar %> and EL support EL expression. But my test on base taglib shows, EL expression is suppor

what's the c.tld in struts-el designed for?

2006-08-14 Thread Michael Cheung
Hi, all; c.tld in struts-el is not support rtexprssion. So every flag should be set via action. I don't think it can finish any job in this style. What's the taglib designed for? Should I use c-rt.tld as default? Thanks Regards; Michael

Re[2]: How to convert absolute URL to context-relative URL?

2006-08-14 Thread Michael Cheung
;/") character, and omitting any filename extension if extension > mapping is being used." > > > On 8/14/06, Michael Cheung <[EMAIL PROTECTED]> wrote: > > > > Hi, all; > > > > I get requestURL from request object in Action, then I want to > &

How to convert absolute URL to context-relative URL?

2006-08-13 Thread Michael Cheung
Hi, all; I get requestURL from request object in Action, then I want to create a ActionForward object for this URL to return. So I have to convert the absolute URL from requestURL to context relative URL. Thanks a lot. Regards; Michael -

Re[2]: some question, please help me.

2006-08-13 Thread Michael Cheung
Hi, Thanks for your help. I am using the c.tld from struts-el. and it give me the following error message: [According to TLD or attribute directive in tag file, attribute items does not accept any expressions] when I change to c-rt.tld, same as c.tld from struts-el, it works as you said. Then w

some question, please help me.

2006-08-13 Thread Michael Cheung
Hi, everyone; I am new to struts. Need someone help me. Version:Struts 1.2.9, jsp 2.4, tomcat,5.0.28 Question about: struts-el, c.tld in c.tld, not c-rt.tld 1.Document said, difference between el and standard is rtexpression. ${xxx} is supportted in EL tags, but in standard tags, ${xxx} give me