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

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: ListString textFields = new ArrayListString(); and i tried to write set method in 2 ways: 1. public void setTextFields (ListString textFields) 2. public void setTextFields(String text) { textFields.add(text); }

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 sasikumar.sugu...@deciphar.com 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

Re: Dynamic s:checkbox name?

2009-01-18 Thread KE LI
Got it, quite useful. Thanks for all you guys' help! 2009/1/18 abhijit.sulh...@gmail.com 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

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, s:iterator value=test_list status=status s:checkbox name=test_string_? value=true /s:iterator I want to achieve the result as: s:checkbox name=test_string_0 value=true s:checkbox

Re: How can these query data be got?

2008-12-02 Thread KE LI
, 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 { private List paramList; setters public String execute() throws Exception

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, result name=* type=redirect-action ViewTestedLetters /admin 1 /result Your mapping should be like, result

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

Re: Pagination Questions

2008-11-30 Thread KE LI
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: Dear All, I am currently working on pagination to the result of search result. I want to ask which solution

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

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

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 unsubscribe,

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 extends ComponentTagSupport