Cant get css, js files if not using .do extension

2009-05-12 Thread KE LI
Dear all, I had met a strange problem: If I modified the struts.xml file and I dont want to use .do extension for actions. I set it as "/* ". For example, the previous link is http://localhost:8080/test.do. Now after modification it becomes: http://localhost:8080/test. But when I restart the

Re: Dynamic TextFields in Struts 2

2009-01-19 Thread KE LI
Hi Dave and Shashi, Thanks for you two's quick reply!! It does help~:) I just got up, lol. Licco 2009/1/20 sasikumar > Hi, > you dont have to explicitly add the values to the list in the setter > methods, since the framework will do that for you , > also you dont have to explicitly provid

Dynamic TextFields in Struts 2

2009-01-19 Thread KE LI
Dear All, I want to do something like this: in my action i create: List textFields = new ArrayList(); and i tried to write set method in 2 ways: 1. public void setTextFields (List textFields) 2. public void setTextFields(String text) { textFields.add(text); } and in my jsp, i

Re: Dynamic s:checkbox name?

2009-01-18 Thread KE LI
Got it, quite useful. Thanks for all you guys' help! 2009/1/18 > Makes perfect sense if interested in matching the values from checkbox > list. Another variation, I think in that case would be to use the > 'fieldValue' instead of name; that way the set values can be easier > to retrieve as a li

Dynamic s:checkbox name?

2009-01-17 Thread KE LI
Dear All, I am confusing about how to write dynamic s:checkbox names in s2. For example, I want to achieve the result as: etc. The main problem is that i dont know how to write the right ognl expression in the code above(around the "?" position). Can anyone help m

Re: How can these query data be got?

2008-12-02 Thread KE LI
mList=element1¶mList=element2¶mList=..." in the browser, only the default method "execute" will be called, right? Thanks a lot! 2008/12/2 Dave Newton <[EMAIL PROTECTED]> > --- On Tue, 12/2/08, KE LI wrote: > > public class welcome implements Action { > >

Re: Problem when using result type="redirect-action"

2008-12-02 Thread KE LI
admin{1} 2008/12/2 ravindra <[EMAIL PROTECTED]> > I think some thing is wrong at these lines, > > > ViewTestedLetters > /admin > 1 > > > Your mapping should be like, > ViewTestedLetters > > All the best, > >

How can these query data be got?

2008-12-01 Thread KE LI
Hi All, I am quite confusing about this problem: Suppose this is an action: public class welcome implements Action { private String param1; private String param2; private List paramList; getters setters public String execute() throws Excep

Re: Pagination Questions

2008-11-30 Thread KE LI
t; > In the action I have an offset and resultsPerPage variable that I pass to > my > data layer. I don't know what database you're using but most allow you to > limit the results, using an offset and number of results. > > > KE LI-2 wrote: > > > > De

S2 Side Integrated with UI side(js + ajax)

2008-11-25 Thread KE LI
Dear All, I am a newbie to Struts2. I found that tag library in Struts2 is quite useful and convenience. But I have some problems with integration with our UI developer. Since he doesn't think that Struts2' tags are good looking enough and he want to develop the UI by his way. But if we dont use

Re: A Strange Error with My Own Tag

2008-11-18 Thread KE LI
For further information: The Eclipse said: "The type javax.servlet.jsp.tagext.BodyTagSupport cannot be resolved. It is indirectly referenced from required .class files" 2008/11/18 KE LI <[EMAIL PROTECTED]> > Guys, I am writing my own tag as: > public class PageTag exten

Re: A Strange Error with My Own Tag

2008-11-18 Thread KE LI
Got it.Thanks a lot! 2008/11/18 Lukasz Lenart <[EMAIL PROTECTED]> > You are missing reference to javaee.jar library and it's not related > to Struts project > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > To unsub

A Strange Error with My Own Tag

2008-11-18 Thread KE LI
Guys, I am writing my own tag as: public class PageTag extends ComponentTagSupport For ComponentTagSupport, it's org.apache.struts2.views.jsp.ComponentTagSupport. But the error appears, it says: "Description Resource Path Location Type The project was not built since its build path is inco