[S2] /2.x/tagreference.html not found on server?

2008-02-19 Thread hezjing
Hi At bottom of http://struts.apache.org/2.0.11/docs/ui-tag-reference.html, the link to http://struts.apache.org/2.x/tagreference.html (Tag Reference) does not exist on the server? -- Hez - To unsubscribe, e-mail: [EMAIL PROT

[S2] Ajax Tags Reference - submit?

2008-02-19 Thread hezjing
Hi In http://struts.apache.org/2.0.11/docs/ui-tag-reference.html Clicking on submit of the Ajax Tags will redirect to the Confluence's login page. Is this OK? -- Hez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [S2] Subsitute variable in i18n properties file

2008-02-11 Thread hezjing
come {0} > > > > Then you might try: > > > > > > John > > > > > > If that doesn't work, you should be able to use: > > > > John > > > > (*Chris*) > > > > On Feb 11, 2008 7:13 AM, hezjing <[EMAIL PROTEC

[S2] Subsitute variable in i18n properties file

2008-02-11 Thread hezjing
Hi If I have a message defined in i18n properties file shown below, label.welcome = Welcome ${name} How can I subsitute the variable "name" in the JSP? I tried the following and obviously it doesn't work! John May be it is a good idea to describe the solution in http://strut

Re: [S2] GWT

2008-02-10 Thread hezjing
> > and i am glad if this code can integrated with struts2 > > F > > > On Feb 10, 2008 8:06 AM, hezjing <[EMAIL PROTECTED]> wrote: > > Hi > > > > Is there any Struts2 + GWT tutorials/articles beside > > http://cwiki.apache.org/WW/struts-2-gw

[S2] GWT

2008-02-09 Thread hezjing
Hi Is there any Struts2 + GWT tutorials/articles beside http://cwiki.apache.org/WW/struts-2-gwt.html? I need to read more comprehensive tutorials. What is your experience in using Struts2 + GWT? -- Hez - To unsubscribe, e-ma

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-05 Thread hezjing
he package from struts.xml here. > > PS. [Ljava.lang.String;@18a270a is an array of strings. This should if you're > using the default conversion. > > > hezjing wrote: > > Hmmm ... my login.jsp now looks like this, > > > > > > > > > >

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread hezjing
authenticated, which is fine, but with your stack the > params interceptor will attempt to write to the ACTION first. > > I still suspect your JSP/html includes a field with NAME "button.login" > and params is throwing the exception due to getButton(). You can test > my the

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread hezjing
f you don't have a getButton() method, or getButton() returns null, an > exception like this occurs while trying to set the parameter. > > hezjing wrote: > > Hi > > > > I'm trying to create a login interceptor. > > > > When a login form is submitted, I got

[S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread hezjing
Hi I'm trying to create a login interceptor. When a login form is submitted, I got the following exception: com.opensymphony.xwork2.interceptor.ParametersInterceptor setParameters SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'button.login' on 'class com.op

[S2] Action attribute of submit

2008-02-03 Thread hezjing
Hi In http://struts.apache.org/2.0.11/docs/submit.html, the submit tag has an "action" attribute that says "set action attribute." May I know how can we make use of this action attribute? Any example? Thank you! -- Hez - T

[S2] Multiple buttons in a form

2008-02-03 Thread hezjing
Hi I have a form with multiple buttons, and my action class looks like the following, public String execute() throws Exception { if (action.equals("resetPassword")) { userService.resetPassword(user); } else if (action.equals("delete")) { userService.delete(use

[S2] Stringlength validator

2008-01-31 Thread hezjing
Hi I think there are typo error in http://struts.apache.org/2.x/docs/stringlength-validator.html Missing closing double quote: 10 Invalid ending tag: should be Do we need ? -- Hez - To unsubscribe, e-mail: [EMAIL PROTECT

Re: [S2] Where should I save the I18N properties file?

2008-01-30 Thread hezjing
Hi The problem is solved by saving the properties in src/main/resources/com/dummy/action/package.properties src/main/resources/com/dummy/action/MyAction.properties Thank you! On Jan 30, 2008 6:05 PM, hezjing <[EMAIL PROTECTED]> wrote: > Hi > > I have an action in src/main

[S2] Where should I save the I18N properties file?

2008-01-30 Thread hezjing
Hi I have an action in src/main/java/com/dummy/action/MyAction.java and the locale messages defined in MyAction.properties and package.properties. I saved these properties files in src/main/java/com/dummy/action directory. When run (e.g. mvn jetty:run), the locale messages are not displayed. May

Re: [S2] Starter application in IE & Firefox

2008-01-29 Thread hezjing
80/app The menu is displayed on top of the page in Firefox, but NOT in the IE 6.0. Can you reproduce the same problem? On 1/29/08, Laurie Harper <[EMAIL PROTECTED]> wrote: > hezjing wrote: > > Hi > > > > I created Struts2 starter application as shown below, > > >

[S2] Starter application in IE & Firefox

2008-01-28 Thread hezjing
Hi I created Struts2 starter application as shown below, mvn archetype:create -DgroupId=com.fdar.apress.s2 -DartifactId=app -DarchetypeGroupId=org.apache.struts -DarchetypeArtifactId=struts2-archetype-starter -DarchetypeVersion=2.0.9-SNAPSHOT -DremoteRepositories=http://peopl

Re: LOG4J in Struts2

2007-12-14 Thread hezjing
Hi Rajasekhar You can study the struts2-showcase-2.0.11.war which comes with the Struts2 distribution. You will see WEB-INF\lib\log4j-1.2.9.jar, WEB-INF\classes\log4j.properties and the Java files in WEB-INF\src\java\org\apache\struts2\showcase\action directory. On 12/14/07, Rajasekhar <[EMAIL

Download .zip of Struts 2 CRUD Example

2007-11-25 Thread hezjing
Hi Where can I download the .zip of the Struts 2 CRUD Example? See http://struts.apache.org/2.x/docs/crud-demo-i.html Should we add a download link in the tutorial? -- Hez - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

Re: Struts URLs for perfectionists like Ebay's URLs

2007-09-21 Thread hezjing
I think that is called URL's parameter encryption. You may want to take a look at http://www.avedatech.com/Products/QueryCrypt/index.jsp, I haven't try it by myself though. On 9/20/07, Vo Van Thuong <[EMAIL PROTECTED]> wrote: > Hi Vinny, > > I'd like users to access to my website by URLs like Eb

[S2] Interceptor

2007-09-12 Thread hezjing
Hi With the following struts.xml, index.jsp Will the interceptors configured in struts-default package be executed, followed by the login interceptor? Can we describe this behaviour in http://struts.apache.org/2.0.9/docs/interceptors.html as well?

Re: [S2] Refresh JSP in Tomcat 5.5

2007-08-27 Thread hezjing
struts.serve.static.browserCache = false does not refresh the latest JSP either :-( On 8/27/07, hezjing <[EMAIL PROTECTED]> wrote: > I modified index.jsp directly in Tomcat 5.5\webapps\myapp directory. > > 1) Restart Tomcat 5.5.23 > 2) Accessed http://localhost:8080/myapp > 3) Modified th

Re: [S2] Refresh JSP in Tomcat 5.5

2007-08-27 Thread hezjing
ended recipients are obliged > to delete this message and destroy any printed copies. > > > -Original Message- > From: hezjing [mailto:[EMAIL PROTECTED] > Sent: Monday, August 27, 2007 11:19 > To: struts-users > Subject: [S2] Refresh JSP in Tomcat 5.

[S2] Refresh JSP in Tomcat 5.5

2007-08-27 Thread hezjing
Hi I have a index.html that will redirect to WelcomeAction, = index.html = Loading ... WelcomeAction does nothing but simply returns success from execute(). = WelcomeAction.java = public class WelcomeAction extends ActionSupport { public String execute() throws Excep

Re: Configuring OpenSessionInViewInterceptor as S2's interceptor

2007-08-22 Thread hezjing
This is something new to me, I always thought that lazy initialization is to boost performance. So we should really use eager fetching by default and minimize the use of OSIV. On 8/22/07, Toni Lyytikäinen <[EMAIL PROTECTED]> wrote: > "And, is there a better alternative than using > OpenSessionInV

Re: Configuring OpenSessionInViewInterceptor as S2's interceptor

2007-08-22 Thread hezjing
wn interface. You'll have to use OpenSessionInViewFilter. Take a > look here: > > http://www.springframework.org/docs/api/org/springframework/orm/hibernate/support/OpenSessionInViewFilter.html > > > > On 8/22/07, hezjing <[EMAIL PROTECTED]> wrote: > > > > Hi

Configuring OpenSessionInViewInterceptor as S2's interceptor

2007-08-22 Thread hezjing
Hi I'm encountering this exception (when trying to iterate a list of orders for a specific customer in JSP), failed to lazily initialize a collection of role: com.dummy.Customer.orders, no session or session was closed at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializat

Re: [struts2]: maturity / production experience ?

2007-08-08 Thread hezjing
Can you describe more about what is it that the AJAX theme is not mature? Maybe I should consider to use DOJO manually? On 8/8/07, Oleg Mikheev <[EMAIL PROTECTED]> wrote: > sol myr wrote: > > 1. Have you used struts2 in production, and did you feel it was mature > > and stable? > > We used it.

Re: [S2] Struts's JAR not deleted when undeployed

2007-07-16 Thread hezjing
On 7/16/07, Antonio Petrelli <[EMAIL PROTECTED]> wrote: 2007/7/16, hezjing <[EMAIL PROTECTED]>: > > Well, I'm not sure if this is the Tomcat's problem. Usually this happens under Windows, when a JAR is opened (for example, to read a file) and it is never closed when f

[S2] Struts's JAR not deleted when undeployed

2007-07-16 Thread hezjing
Hi! I'm using Tomcat 5.5.23, and Ant 1.7.0 to deploy, start, stop and undeploy the S2 application. From the console, it seems that the application was stopped and undeployed successfully. Looking at the webapps directory, everything has been deleted except the S2's JARs in Tomcat 5.5\webapps\

Re: 答复: How to invoke actions in different configuration packages

2007-06-20 Thread hezjing
cation Development Great Eastern Life Assurance (China) Co. Ltd. Tel: 86-023-6805-3128 Fax: 86-023-68053154 Mbl: 86-023-66101533 -邮件原件- 发件人: hezjing [mailto:[EMAIL PROTECTED] 发送时间: 2007年6月21日 12:57 收件人: struts-users 主题: How to invoke actions in different configuration packages Hi! When we have the

How to invoke actions in different configuration packages

2007-06-20 Thread hezjing
Hi! When we have the Struts configuration below: pages/persons.jsp We can invoke the action by /list.action. Why do we want to create a package like the above? But can we have multiple packages like the following? pages/persons.jsp

Re: Struts 2 + Spring 2 + DAO + Hibernate

2007-06-20 Thread hezjing
I found this article very useful: Developing J2EE Applications Using Hibernate Annotations and Spring MVC http://www.developer.com/java/ent/article.php/10933_3577101_1 On 6/19/07, hezjing <[EMAIL PROTECTED]> wrote: Hi! What is the difference between a Model object and DAO? In &qu

Struts 2 + Spring 2 + DAO + Hibernate

2007-06-19 Thread hezjing
Hi! What is the difference between a Model object and DAO? In "Struts 2 + Spring 2 + JPA + AJAX" tutorial, we have an annotated quickstart.model.Person class. Do we still require Person class say, if we create a PersonDao? I'm trying to figure out how to implement "Struts 2 + Spring 2 + DAO +

Re: [S2] Tutorial with Eclipse

2007-06-13 Thread hezjing
Good, and it would be very nice to list Eclipse WTP plugin as one of this tutorial's prerequisites. Thank you! On 6/14/07, robinbajaj <[EMAIL PROTECTED]> wrote: you will need to install the WTP plugins on top of your eclipse install. even better, you can download it all as one complete bundle

[S2] Tutorial with Eclipse

2007-06-13 Thread hezjing
Hi! I have a fresh Eclipse installed and I'm following the "Struts 2 + Spring 2 + JPA + AJAX" tutorial. In the "Doing it yourself" section, it mentioned about File -> New -> Project and select Dynamic Web Project under Web folder. Unfortunately I'm don't see the Web folder ... Did I miss out an