Re: How to create a new Struts2 project with maven2?

2008-02-02 Thread Thai Dang Vu
I tried what you suggested, but still got error: mvn -e archetype:create -DgroupId=home.struts2 -DartifactId=struts2-example -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-starter -DarchetypeVersion=2.0.11 -DremoteRepositories=http://people.apache.org/builds/strut

How to create a new Struts2 project with maven2?

2008-01-21 Thread Thai Dang Vu
Hi, >From http://cwiki.apache.org/confluence/display/WW/Struts+Maven+Archetypes, it >says mvn archetype:create -DgroupId=tutorial \ -DartifactId=tutorial \ -DarchetypeGroupId=org.apache.struts \ -DarchetypeArtifactId=struts2-archetyp

Struts2 with JSF Plugin vs. JSF with Facelets

2007-02-28 Thread Thai Dang Vu
Hello everybody, The documentation about JSF plugin in Struts2 is not long enough for me to answer my question. So, could you please give your idea/opinion here? My question is how we compare Struts2 + JSF + a layout thing (like sitemesh) to JSF with Facelets. Is there any advantage using the 1st

RE: Struts 1.24 Implement Spring IOC

2006-12-28 Thread Thai Dang Vu
Yes, it can. You can look at appfuse.dev.java.net to see how to do it. And this is the steps (copied from appfuse): - in web.xml: contextConfigLocation /WEB-INF/applicationContext-*.xml,/WEB-INF/security.xml You can also use classpath:applicationContext1.xml, classpath:applicationContext2.

RE: comparing two values in validation framework..help?

2006-12-15 Thread Thai Dang Vu
You could look at acegisecurity.org (used with Spring). -Original Message- From: Mallik [mailto:[EMAIL PROTECTED] Sent: Friday, December 15, 2006 2:02 AM To: user@struts.apache.org Subject: comparing two values in validation framework..help? Hi friends i have to comparing password and c

Struts2 and JSF

2006-12-14 Thread Thai Dang Vu
Hello everybody, I use Struts 1.2.x only and never use new features in 1.3.5. I read JSF, wrote some basic examples and ... that's it. So, do you know anywhere that can tell what benefits we get when we use Struts2 with JSF. If we use Struts2 with JSF, can we apply the AJAX things to that JSF? R

Re: How to create on-the-fly javascript code? - Solved

2005-09-14 Thread Thai Dang Vu
You've got a lot of experiences Joe. I forgot to put the taglib declaration at the beginning of the jsp file. Sorry for my stupid question. >>> [EMAIL PROTECTED] 9/14/2005 9:15:07 AM >>> At 8:59 AM -0400 9/14/05, Thai Dang Vu wrote: >Hello, > >I want to write s

How to create on-the-fly javascript code?

2005-09-14 Thread Thai Dang Vu
Hello, I want to write something like this in a jsp file function f() { return ; } but the bean:write tag isn't processed. So how can I make it processed? Thank you. ---

Re: Eclipse 3.1 and struts 1.2.7

2005-09-13 Thread Thai Dang Vu
I heard that Exadel Studio 3 supports Eclipse 3.1. >>> [EMAIL PROTECTED] 9/9/2005 9:26:30 AM >>> I've used myeclipse for 6-9 months and I've really come to like the JSP and XML editors. I've found the Struts editing to be useless unless your project is set up exactly the way the plugin expects it

Re: How to specify more than 1 datePattern in date validation?

2005-08-15 Thread Thai Dang Vu
ult). One thing I'm sure of is that Struts will not try more than one date format rule. >>> [EMAIL PROTECTED] 8/15/2005 1:41:02 PM >>> Thai Dang Vu wrote: > If I want to validate a date field, I will put something like this in the > validation.xml file > &g

How to specify more than 1 datePattern in date validation?

2005-08-15 Thread Thai Dang Vu
Hi everybody, If I want to validate a date field, I will put something like this in the validation.xml file datePattern MM/dd/ So, if I want to enable 2 ways of entering a date (MM/dd/yyy and MM-dd-), how should I write in the validation.xml file?

RE: Use to write special characters?

2005-08-12 Thread Thai Dang Vu
er : make sure that you type filter="false" inside your tag -Original Message- From: Thai Dang Vu [mailto:[EMAIL PROTECTED] Sent: Thursday, August 11, 2005 11:34 PM To: user@struts.apache.org Subject: Use to write special characters? Hi everybody, I have a string s whose

Use to write special characters?

2005-08-11 Thread Thai Dang Vu
Hi everybody, I have a string s whose value is '' (s contains 2 single quotes). I put a tag in a javascript segment of a jsp page with the hope that when this jsp page is displayed I will have something like var jan = new Array('', 1, '', 2, 3, 4, ''); But in fact what I get is that all si

Re: Specify which resource bundle to use for tag in validation.xml?

2005-08-11 Thread Thai Dang Vu
This application uses something like module, but I don't think it's module. I think they use multiple struts configuration files (single module). This is a part of the web.xml: action com.xhmh.dcis.common.DCISActionServlet config /WEB-INF/struts-config.xml,/WEB-IN

Multiple message resources files?

2005-08-11 Thread Thai Dang Vu
I use multiple message-resources files in my application like this This is a part of my validation.xml file: The key cssite.county is in the Provider.properties file. It seems to me that Struts cannot find the 'cssite.county' key in my Provider.properties file (be

Multiple validation.xml files - HOW?

2005-08-11 Thread Thai Dang Vu
Hi everyone, My application has multiple struts configuration file. Those configuration files use different validation configuration files. So, where do I declare all those validaiton files? And how to do that? Thanks for any help. ---

Re: strut 1.2.7 and web.xml

2005-08-11 Thread Thai Dang Vu
The examples go with Struts 1.2.7 say http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";> for web.xml. I don't know what your problem is. Could you send you whole web.xml file? >>> [EMAIL PROTECTED] 8/10/2005 5:51:50 PM >>> Hi, I'm in process of upgrading of strut 1.0 to 1.2.7 but cannot s

Specify which resource bundle to use for tag in validation.xml?

2005-08-10 Thread Thai Dang Vu
Hello everybody, I have many struts config files in my application. One of them is struts-config-provider.xml. In this file, I declare a resource file and validation files like this: In my validation.xml file, I have several lines like What do I have to do to tell Struts to use fo

Modify the date validation rule in Struts?

2005-08-01 Thread Thai Dang Vu
Hello everybody, I just tested the date validation in Struts 1.1 and it seems to me that 12/31/2004 is valid but 12-31-2004 is invalid. Do you know what I should change so that 12-31-2004, Dec 31 2004 are valid? And are the date validation rules in version 1.1 and 1.2 the same? Sincere

How to modify the date validation in Struts?

2005-07-29 Thread Thai Dang Vu
Hello everybody, I just tested the date validation in Struts and it seems to me that 12/31/2004 is valid but 12-31-2004 is invalid. Where should I change so that 12-31-2004, Dec 31 2004 are valid? Sincerely, Thai

Re: How do you iterate within an iterate

2005-07-12 Thread Thai Dang Vu
I think it can be >>> [EMAIL PROTECTED] 7/12/2005 11:49:13 AM >>> How would I replace the following with the iterate tag <% ArrayList bookings = (ArrayList)request.getAttribute(BOOKINGS); Iterator bookingsiterator = bookings.iterator(); while(bo

Re: Which request is used in automatic Validation when the requirements aren't met?

2005-07-08 Thread Thai Dang Vu
Thanks Jeff and Laurie and excuse me for my slow understanding :) I understand what you said now :) >>> [EMAIL PROTECTED] 7/7/2005 11:13:46 PM >>> Thai Dang Vu wrote: > Perhaps I stated it unclearly. > > I am using automatic validation, not manual validation (which

Which request is used in automatic Validation when the requirements aren't met?

2005-07-07 Thread Thai Dang Vu
tead of a JSP page, you can do whatever you need to do within that Action. On 7/7/05, Thai Dang Vu <[EMAIL PROTECTED]> wrote: > Hello everybody, > > This is my action declaration in struts-config.xml > > type="AddProviderAction" > name

Which request is used in Validation when the requirements aren't met?

2005-07-07 Thread Thai Dang Vu
Hello everybody, This is my action declaration in struts-config.xml In addprovider.jsp page, when I click 'Submit' and the requirements aren't met, the request is forwarded to the input (which is /WEB-INF/provider/addprovider.jsp). How and where can I get the request before the i

Re: Struts Books Recommendations

2005-06-30 Thread Thai Dang Vu
3) "Struts! It's not just for H-1Bs!" So, I can get a H1B just by learning Struts and use it decently? :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Populating the ActionForm without using the reset method?

2005-06-30 Thread Thai Dang Vu
e in edit or add mode, so your backend does the appropriate DB action. The mailreader example app that ships with struts shows the basic approach to doing this. I suggest that you look at that code and see how they do it there. - Scott > -Original Message- > From: Thai Dang Vu [mai

Populating the ActionForm without using the reset method?

2005-06-29 Thread Thai Dang Vu
Hi all, Maybe I ask too much but I'm just a newbie in Struts and nobody in my department can help me :( This is my situation: I have an input.jsp page to let users enter data and click 'Save'. There's another function that the data is fetched from the database and users can modify them and the

tag usage?

2005-06-28 Thread Thai Dang Vu
Hello everybody, This is a part of my input.jsp file: ... class MyUtilBean { private Collection c; public Collection getC() { c = new ArrayList(); c.add(new DataBean("value", "name")); c.add(new DataBean("value1", "name1")); c.add(new DataBean("v

Help me with my problem in Automatic Validation please

2005-06-28 Thread Thai Dang Vu
Hi everybody, This is the situation: welcome.jsp > action1 ---(forward)---> dataform.jsp ---(submit)---> action2 > view.jsp I use a drop-down list in dataform.jsp. The data for the list in dataform.jsp are got from an attribute attached to the request. I use automatic validation for d

Re: Eclipse plug-in for Struts

2005-06-23 Thread Thai Dang Vu
exadel.com has a free version of Eclipse plug-in for Struts. It supports JSF too. The free version is lack of some debugging features, but the commercial version has them all.

Re: Howto display errors when using Struts Validator - Thanks Nitest

2005-06-20 Thread Thai Dang Vu
Thanks Nitesh. will print all the error messages at one place. I needed each error message to go to the proper position (i.e. the error message for name must be next to the name text field). So I used . When I don't use struts validator, I would write something like this in the action form

Howto display errors when using Struts Validator

2005-06-17 Thread Thai Dang Vu
Hello, I don't know how to display errors in the jsp input page when using Struts Validator. This is my case: - validation.xml ... mask ^(\d{3}-\d{3}-\d{4})|(\(\d{3}\) ?\d{3}-\d{4})$