[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

[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

Re: [S2] Subsitute variable in i18n properties file

2008-02-11 Thread hezjing
*) On Feb 11, 2008 7:13 AM, hezjing [EMAIL PROTECTED] wrote: 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

[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! s:label key=label.welcome s:param name=nameJohn/s:param /s:label May be

Re: [S2] GWT

2008-02-10 Thread hezjing
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-gwt.html? I need to read more comprehensive tutorials. What is your experience in using Struts2 + GWT

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

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-05 Thread hezjing
. [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, s:form action=index method=post validate=true s:textfield name=username key=user.username / s:password name=password key

[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

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread hezjing
getButton().setLogin(val). If 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 the following exception

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-04 Thread hezjing
test my theory by giving the field a different name (eg. key=button.login name=login) that won't cause an error. hezjing wrote: The button.login is a key in i18n properties file, and it is suppose to retrieve the label for a button. I suspect this problem could be the interceptor statck I

[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 - To

[S2] Multiple buttons in a form

2008-02-03 Thread hezjing
Hi I have a form with multiple buttons, s:form namespace=/user action=updateUser method=post s:submit name=action value=resetPassword key=button.resetPassword / s:submit name=action value=delete key=button.delete / /s:form and my action class looks like the following, public String

[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.

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/java/com/dummy/action

Re: [S2] Starter application in IE Firefox

2008-01-29 Thread hezjing
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, mvn archetype:create -DgroupId

[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

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

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

[S2] Interceptor

2007-09-12 Thread hezjing
Hi With the following struts.xml, package name=default extends=struts-default interceptors interceptor name=login class=XYZ / /interceptors action name=welcome class=welcomeAction interceptor-ref name=login / resultindex.jsp/result /action /package Will

[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 = html head META HTTP-EQUIV=Refresh CONTENT=0;URL=welcome.action /head body pLoading .../p /body /html WelcomeAction does nothing but simply returns success from execute(). = WelcomeAction.java = public

Re: [S2] Refresh JSP in Tomcat 5.5

2007-08-27 Thread hezjing
. -Original Message- From: hezjing [mailto:[EMAIL PROTECTED] Sent: Monday, August 27, 2007 11:19 To: struts-users Subject: [S2] Refresh JSP in Tomcat 5.5 Hi I have a index.html that will redirect to WelcomeAction, = index.html = html head META HTTP-EQUIV=Refresh CONTENT=0

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 the title of Tomcat 5.5

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

Re: Configuring OpenSessionInViewInterceptor as S2's interceptor

2007-08-22 Thread hezjing
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 I'm encountering this exception (when trying to iterate a list of orders for a specific customer in JSP

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

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. It's

[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

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

2007-07-16 Thread hezjing
/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 finished (it will be closed

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

2007-06-21 Thread hezjing
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 Struts configuration below

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 Struts 2

How to invoke actions in different configuration packages

2007-06-20 Thread hezjing
Hi! When we have the Struts configuration below: package name=person extends=struts-default action name=list method=execute class=personAction resultpages/persons.jsp/result /action /package We can invoke the action by /list.action. Why do we want to create a

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 +

[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 any

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