struts2.5 - Action class is not called

2015-11-16 Thread Emi
Hello, For struts2.5 beta version, can someone help what may cause action class is not called please? (1) web.xml struts2 org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter actionPackages project.action

Re: struts2.5 - Action class is not called

2015-11-16 Thread Emi
struts2.5: (2) index.jsp <% String context_path = request.getContextPath(); response.sendRedirect(context_path + "/Login/ProcessLoginAction.action"); %> (3) struts.xml class="project.action.ProcessLoginAction"> login_main_page If written

Re: struts2.5 - Action class is not called

2015-11-16 Thread Emi
using wild cards in action. If you don't want to switch between methods dynamically, Use switch methods dynamically. In action class: execute() as default method_name2() method_name3().. that is to call execute then you should remove the "*" from the name, remove method parameter,

Re: struts2.5 - Action class is not called

2015-11-17 Thread Emi
ProcessLoginAction is not called. Which setups are missing/wrong that may cause the failure please? I think it's already fixed but the fix is in 'master' branch, not released yet - see that discussion http://markmail.org/message/3xtprewypf3u7mxr Got it. After Beta period, stable version has

tiles2.2.2 error for Struts 2.3.28 GA

2016-03-22 Thread Emi
Hello, - Tiles 2 Plugin was upgraded to latest available Tiles 2 version, see WW-4568 tiles3.x, everything success. For tiles2.2.2, after migrating from2.3.24.1 to 2.3.28, got the following error: org.apache.tiles.definition.NoSuchDefinitionException: login_page But "login_page" is in

Re: Struts 2.3.28 and Tiles issue

2016-04-21 Thread Emi
upgraded struts-core and all the dependencies to 2.3.28, along with that came new tiles libraries. I got the similar exception messages. Upgrade from tiles2.x to tiles3.x and no error messages anymore. And a problem: SEVERE: Servlet.service() for servlet jsp threw exception

dojo jar for struts2.5.2

2016-07-21 Thread Emi
Hello, There is no struts-dojo jar in 2.5.2. May I know which new struts2.5.2 jar includes the following tags please? <%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

Re: [ANN] Apache Struts 2.3.30 GA

2016-07-18 Thread Emi
hi, is there any plan for the date of end of life for 2.3.x series? No exact date but you can only expect security fixes (if possible) that will ported into 2.3.x series. should consider migrating into 2.5.x series which isn't so hard. Will 2.5.x support log4j1.x? There are thousands of classes

Re: [ANN] Apache Struts 2.3.30 GA

2016-07-18 Thread Emi
try the bridge to log4j1 https://logging.apache.org/log4j/log4j-2.2/log4j-1.2-api/index.html Updated to: . log4j-api-2.6.2.jar . log4j-core-2.6.2.jar . log4j-web-2.6.2.jar . log4j-1.2-api-2.6.2.jar . commons-logging-1.2.jar . struts2.5.2. jars Didn't change web.xml and log4j.xml. But log

cannot download 2.3.30

2016-07-15 Thread Emi
Hello, http://struts.apache.org/download.html#struts-2330 click "Full Distribution:struts-2.3.30-all.zip" Got "Not Found The requested URL /struts-2.3.30-all.zip was not found on this server." Seems link http://struts.apache.org/struts-2.3.30-all.zip is empty.

Re: cannot download 2.3.30

2016-07-15 Thread Emi
Hello, http://struts.apache.org/download.html#struts-2330 Please use http://struts.apache.org/download.cgi#struts-2330 - where did you find the above link? From the email below. Forwarded Message Subject:[ANN] Apache Struts 2.3.30 GA Date: Fri, 15 Jul 2016

2.3.28.1 to 2.5.1 - java.lang.NoSuchMethodError: ognl.SimpleNode.isOperation

2016-06-29 Thread Emi
Hello, Upgrade 2.3.28.1 to 2.5.1. Tried to start tomcat7.0.70, and got the following msg. Can someone let me know which jar(s) are missing/wrong version please? SEVERE: Exception starting filter struts2: java.lang.NoSuchMethodError: ognl.SimpleNode.isOperation(Lognl/OgnlContext;)Z at

Re: 2.3.28.1 to 2.5.1 - java.lang.NoSuchMethodError: ognl.SimpleNode.isOperation

2016-06-29 Thread Emi
Hello, Upgrade 2.3.28.1 to 2.5.1. Tried to start tomcat7.0.70, and got the following msg. Can someone let me know which jar(s) are missing/wrong version please? SEVERE: Exception starting filter struts2: java.lang.NoSuchMethodError: ognl.SimpleNode.isOperation(Lognl/OgnlContext;)Z at

no longer supports the directive in struts.xml

2017-02-06 Thread Emi
Hello, https://struts.apache.org/announce.html shows: - Struts 2.5.8 no longer supports the directive in struts.xml Used to have: "s1.xml, s2.xml, sN.xml". Struts.xml: . In version 2.5.10, do we need any changes to include s1.xml... sN.xml please? Thanks.

Re: struts 2.5.3 to 2.5.8

2017-01-11 Thread Emi
Changed asm3.x to 5.2 jars, and the warning message disappear. Hello, After updated struts jars from 2.5.3 to 2.5.8, for each action class, got the following warning message: java.lang.IncompatibleClassChangeError: class org.apache.struts2.convention.DefaultClassFinder$InfoBuildingVisitor

struts 2.5.3 to 2.5.8

2017-01-11 Thread Emi
Hello, After updated struts jars from 2.5.3 to 2.5.8, for each action class, got the following warning message: java.lang.IncompatibleClassChangeError: class org.apache.struts2.convention.DefaultClassFinder$InfoBuildingVisitor has interface org.objectweb.asm.ClassVisitor as super class

ajax for https in struts

2017-03-17 Thread Emi
Hello, Ajax methods work in http, but NOT https. Seems due to cross-origin HTTP request. May I know how to setup "Access-Control-Allow-Origin" in struts/jsp/servlet please? Have tried the following but did NOT work. (1) mainlayout.jsp response.addHeader("Access-Control-Allow-Origin",

Request exceeded allowed size limit! Max size allowed is: 2,097,152

2017-03-13 Thread Emi
Hello, Tried to upload file, and always got the following errors: Request exceeded allowed size limit! Max size allowed is: 2,097,152 but request was: 2,463,633! May I know where I missed the steps please? struts.xml extends="security-fix" strict-method-invocation="false">

Re: Request exceeded allowed size limit! Max size allowed is: 2,097,152

2017-03-13 Thread Emi
I'm not sure, but I think the tomcat configuration is case sensitive. Can you please try "maxPostSize" instead of "maxpostsize" in your connector config? Have updated to the following and succeeded this time (struts2: most recent version). (1) server.xml Change to maxPostSize (2)

About Apache Struts 2.5.12 GA with Security Fixes Release

2017-07-13 Thread Emi
Hello, May I know do you release one update version for 2.3.x about this bug fix as well? Thanks. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: [ANN] Apache Struts 2.5.13 GA with Security Fixes Release

2017-09-05 Thread Emi
Hello, 2017-09-05 15:17 GMT+02:00 Lukasz Lenart : - S2-052 Possible Remote Code Execution attack when using the Struts REST plugin with XStream handler to handle XML payloads http://struts.apache.org/docs/s2-050.html It's supposed to be

Re: Struts 2.3 fix for s2-052?

2017-09-06 Thread Emi
Hello, I finally read your email where you gave the dist URL for the dev release. This is the release that I should use for 2.3 right? https://dist.apache.org/repos/dist/dev/struts/2.3.34/ Thanks. I tested against the struts2-rest-showcase app, a URL that was vulnerable in other versions. I

About Oracle Security Alert Advisory - CVE-2017-9805

2017-09-25 Thread Emi
Hello, Just want to double check, for struts2.5.13 and 2.3.34, the following issue has been covered and resolved, right? http://www.oracle.com/technetwork/security-advisory/alert-cve-2017-9805-3889403.html Thanks a lot. -

Action bean cannot get correct utf-8 character

2017-12-18 Thread Emi
Hello, For struts2.5.14.1, I have an issue with utf-8 encoding (jsp submit to action class; bean get wrong character). (1) web.xml *.jsp UTF-8 set character encoding setCharacterEncodingFilter SetCharacterEncodingFilter encoding UTF-8

Re: [ANN] [APACHE STRUTS] Security Bulletin S2-055: impact increased to High (related to CVE-2017-7525 - JSON Jackson library)

2017-12-12 Thread Emi
Hello, vulnerability exists in a JSON Jackson library and it's registered under CVE-2017-7525. I think you mean the following jars right? (1) jackson-core-2.9.2.jar (2) jackson-annotations-2.9.0.jar (3) jackson-databind-2.9.2.jar Please read the bulletin [1] and apply possible solutions.

About error-code 404 is called for each struts action class

2018-01-05 Thread Emi
Hello, In web.xml: 404 /WEB-INF/pages/errorinfo/tiles_404.jsp For each struts2 action class shows/direct to correct page, but the above line is always called. Could someone let me know what may cause the above section called please? Thanks a lot! -- struts2.5.14.1,

Re: About error-code 404 is called for each struts action class

2018-01-05 Thread Emi
Any clue why action classes are shown correctly, but 404.jsp still called? In 404.jsp only one line: System.out.println("test"); All struts action classes can be shown correctly, but 404.jsp is called by web.xml when going from one page to another. Thanks. Hello, In web.xml:

Re: About error-code 404 is called for each struts action class

2018-01-08 Thread Emi
On 1/6/2018 12:04 AM, Emi wrote: 404.jsp is called by web.xml when going from one page to another. Maybe other requests like a missing favicon, css or javascript causes this. Yes. In one one css file, the following cods caused 404 error. body { font: 0.7em/1.5em "Trebuchet MS&quo

Re: newFixedThreadPool in struts2

2018-02-08 Thread Emi
Firstly you should decide what do you like about life-time of that thread pool without being worry about calling shutdown. All your examples have solutions to call shutdown which I described below... Please read below [Try1] . By springframe work setup ThreadPool . In action class, use

Re: newFixedThreadPool in struts2

2018-02-09 Thread Emi
Firstly you should decide what do you like about life-time of that thread pool without being worry about calling shutdown. All your examples have solutions to call shutdown which I described below... Please read below [Try1] . By springframe work setup ThreadPool . In action class, use

Re: newFixedThreadPool in struts2

2018-02-12 Thread Emi
[Try2] . Each user login session create one fixedPool . When user logout, fixedPool.shutdown() What about if users do not call logout action. Where and how the fixedPool to be shutdown? Is there a way to auto shutdown after period of time? You can write your own listener by implementing

Re: newFixedThreadPool in struts2

2018-02-12 Thread Emi
It's still accessible: public void sessionCreated(HttpSessionEvent hse) { final HttpSession session = hse.getSession(); logger.debug("session created"); session.setAttribute(KEY, new Clickstream()); } public void sessionDestroyed(HttpSessionEvent hse)

Re: newFixedThreadPool in struts2

2018-02-09 Thread Emi
Hello Yasser, You can write your own listener by implementing HttpSessionListener and call shutdown in it's `sessionDestroyed` method. Please see [1]. [1] http://www.myjavarecipes.com/tag/session-timeout-handling-in-java/ In HttpSessionListener, it seems that there are no session attributes

newFixedThreadPool in struts2

2018-02-08 Thread Emi
Hello, Can you suggest the best way to setup newFixedThreadPool in struts2 webapp please? [Try1] . By springframe work setup ThreadPool . In action class, use fixedPool Future f1 = fixedPool.submit(() -> { ...actions such as send email, etc }); So, there will be NO shutdown in action

About "Parameter Validation Filter"

2018-02-28 Thread Emi
Hello, There is a topic about Parameter Validation Filter (TrimTextValidationRule, FailIfNotCanonicalizedValidationRule, FailIfContainsHTMLValidationRule) for servlet (https://www.owasp.org/index.php/Parameter_Validation_Filter). I just want to know that struts2.5.14.1 already have these

Re: struts2.5.22 + tiles3.0.8 + commons-beanutils to version 1.9.4

2019-12-10 Thread Emi
On 2019-12-10 8:23 a.m., Lukasz Lenart wrote: wt., 10 gru 2019 o 14:15 napisaƂ(a): Why do you use "CompleteAutoloadTilesListener" ? And as far I see everything works in the Showcase app My application based on tiles3 + struts. As suggested by https://struts.apache.org/plugins/tiles-3/ ,

Re: Tutorials about struts2 + ibatis + SQLmap

2007-10-26 Thread Emi Lu
OK, I looked at the constructor of org.springframework.jdbc.support.incrementer.PostgreSQLSequenceMaxValueIncrementer class which has only two param Updated it to: bean id=userIncrementer class=org.springframework.jdbc.support.incrementer.PostgreSQLSequenceMaxValueIncrementer

Re: Tutorials about struts2 + ibatis + SQLmap

2007-10-26 Thread Emi Lu
Hello, Can someone tell me how to setup for postgresql org.springframework.jdbc.support.incrementer.PostgreSQLSequenceMaxValueIncrementer in applicationContext-ibatis.xml file please? Here I tried, but failed! bean id=userIncrementer

Login checking before processing any action/class

2007-11-05 Thread Emi Lu
Hello , For struts1, we use doFilter public void doFilter( ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response =

Re: The breadcrumbs have been served!

2007-11-09 Thread Emi Lu
There is a slight issue with www.strutsschool.com (demo site for the breadcrumb plugin?). This breadcrumb never got cleaned. For example, when user goes from home to page1 then to page 2, I would expect showing Home Page1 Page2 When Users go back to Page1, showing Home Page1

Re: The breadcrumbs have been served!

2007-11-09 Thread Emi Lu
Can you describe what logic you are looking for? What sort of application are you working on? Sorry, I did not know how the breadcrumb plug-in works. I hope the demo of http://www.strutsschool.com/; is not the showcase of how the plug-in works. The example shown by apache websites is

Display tags within one line

2007-11-09 Thread Emi Lu
Hello, May I know how to keep all checkbox in one line please? s:checkbox label=value1 name=value1_search / s:checkbox label=value2 name=value2_search / s:checkbox label=value3 name=value3_search / I'd like to display value1 value2 value3 in one line, but

Re: Display tags within one line

2007-11-12 Thread Emi Lu
The default struts2 tags use themes that determine how they are formatted as html[1]. The default theme 'xhtml' wraps each form input inside a table cell and prepends it with a label to the left or above. The css_xhtml theme uses the same layout with divs. You have two options: - use

Re: Display tags within one line

2007-11-12 Thread Emi Lu
Use s:form theme=simple. This will allow you to have 100% control over the form html. Notice that by dong this you will have to handle all the formatting of the table by yourself. I'd like to use all nice features of the new tags, such as label, tooltips, etc. Even on the tutorial page:

link href=html:rewrite page=/styles.css/ rel=stylesheet type =text/css error in jsp page

2007-11-12 Thread Emi Lu
Hello, Using Struts2.0.11, I have this line in my jsp, which always cause the exception? link href=html:rewrite page=/styles.css / rel=stylesheet type=text/css Did I do something wrong? Thanks! -e - To unsubscribe,

Each list value is a hyper link action in optiontransferselectTag?

2007-11-15 Thread Emi Lu
Greetings, Is it possible that each line value in optiontransferselectTag is a hyperlink action. for example, all emp selected emp emp1 emp6 emp2 emp7 Employee rec emp3 emp4 emp5

Attribute var invalid for tag bean according to TLD

2007-09-10 Thread Emi Lu
Hello, I downloaded and installed struts2. However, when I tried the bean tag example: -- in jsp form -- s:bean name=org.apache.struts2.example.counter.SimpleCounter var=counter s:param name=foo value=BAR / The value of foot is : s:property value=foo/, when inside the bean tag br /

Re: Attribute var invalid for tag bean according to TLD

2007-09-10 Thread Emi Lu
Hello, Musachy Barroso wrote: what version did you download? I downloaded Example Applications- struts-2.0.9-apps.zip (22mb). I extracted the lib, and followed the online tutorial page about beans. I opened struts2-core-2.09.jar, and in META-INF/struts-tags.tld file: tag

Re: Attribute var invalid for tag bean according to TLD

2007-09-11 Thread Emi Lu
attribute on 2.0.9 as it is a new in 2.1. Right now the online documentation has a mix of 2.1 and 2.0. Try name instead. (The documentation for 2.0.9 can be downloaded with the jars) musachy On 9/10/07, Emi Lu [EMAIL PROTECTED] wrote: Hello, Musachy Barroso wrote: what version did you download? I

Re: Struts anchor question

2007-09-12 Thread Emi Lu
Hello list, I saw datetimepicker is a very func in the tutorial. However, when I tried this: s:datetimepicker name=delivery.date label=Delivery Date format=#-#MM-#dd / I got the following exceptions, my version is struts.2.0.9, should I use other jar file or only struts2.1 provides

Based on struts 1.3.8 , now adding 2.0.9 jar to use funcs from 2.x

2007-09-12 Thread Emi Lu
Hello List, I am using struts1.3.8. May I know is it possible that I can use some functions/tags provided by 2.0.9. For example, . do not change any 1.3.8 .jar files . Add struts2-core-2.0.9.jar xwork-2.0.4.jar ognl-2.6.11.jar And then use s:datetimepicker name=delivery.date

datetimepicker with displayFormat always return error msg?

2007-09-12 Thread Emi Lu
Hello List, Tried datetimepicker, whenever I give the displayFormat=-MM-dd, always get the following warning: Invalid field value for field todayDate. Something wrong with my code? my code: s:datetimepicker name=todayDate label=TestDate (-MM-dd) displayFormat=-MM-dd/

Re: datetimepicker with displayFormat always return error msg?

2007-09-12 Thread Emi Lu
Are you running it under Struts 2? Tried datetimepicker, whenever I give the displayFormat=-MM-dd, always get the following warning: Invalid field value for field todayDate. Something wrong with my code? my code: s:datetimepicker name=todayDate label=TestDate (-MM-dd)

Add style such as bgcolor, height, width to s:optiontransferselect, s:form Tags

2007-09-24 Thread Emi Lu
Hello, May I know how to give style such as border color, bgcolor to s:optiontransferselect, s:form tags please? Thanks a lot! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts URLs for perfectionists like Ebay's URLs

2007-10-01 Thread Emi Lu
Is there a way to hide .action .do by using filter url-pattern? For example, I have the following codes: filter filter-nametutorial/filter-name filter-class org.apache.struts2.dispatcher.FilterDispatcher /filter-class /filter filter-mapping

Look for Tutorials for Struts2 + Tiles2

2007-10-02 Thread Emi Lu
Hello, May I know where to find tutorials for struts 2 + Tiles 2 ? I'd like to know . how to setup Tiles 2 with struts2 . Layout examples of using Tiles2 with struts2 Thanks a lot! - To unsubscribe, e-mail: [EMAIL

Tiles 2 setup with Struts2

2007-10-02 Thread Emi Lu
Hello, I looked at this page: http://struts.apache.org/2.x/docs/tiles-plugin.html Done: = [1] Added dependency groupIdorg.apache.struts/groupId artifactIdstruts2-tiles-plugin/artifactId version${version.tiles}/version scopecompile/scope /dependency to web.xml [2]

Re: Tiles 2 setup with Struts2

2007-10-03 Thread Emi Lu
Thank you very much ! It works! Following Your comments, I did: = dependency groupIdorg.apache.struts/groupId artifactIdstruts2-tiles-plugin/artifactId version${version.tiles}/version scopecompile/scope /dependency to web.xml the above looks like maven stuff..

Re: Tiles 2 setup with Struts2

2007-10-03 Thread Emi Lu
You also need to add the jars that tiles requires: copy the Tiles dependencies JARs: * Jakarta Commons BeanUtils 1.7.0 or above; * Jakarta Commons Digester 1.8 or above; * Jakarta Commons Logging (at least API) 1.1 or above http://tiles.apache.org/getting_started.html I

Re: Tiles 2 setup with Struts2

2007-10-03 Thread Emi Lu
At least for now I have loaded Tiles 2 successfully without BeanUtils and Digester jars :) It's impossible, digester is needed to read XML files. I forgot the tiles jars that I downloaded few days ago :( Sorry! The full jar lists I had:

Re: Tiles 2 setup with Struts2

2007-10-03 Thread Emi Lu
=error/Logon.jsp/result and other parameters will still work. Cheers! Emi Lu wrote: Thank you very much ! It works! Following Your comments, I did: = dependency groupIdorg.apache.struts/groupId artifactIdstruts2-tiles-plugin/artifactId version${version.tiles

Tutorials about struts2 + ibatis + SQLmap

2007-10-11 Thread Emi Lu
Greetings, Would someone know some good tutorials about struts 2.0.9 + ibatis2.3.0 + SQLmap . setup . examples Thanks a lot! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tutorials about struts2 + ibatis + SQLmap

2007-10-11 Thread Emi Lu
http://learntechnology.net/content/main.jsp I would be more interested about the setup/configuration/tutorial for *Struts2 + ibatis2.3*, but not struts1 + ibatis. On 10/11/07, Emi Lu [EMAIL PROTECTED] wrote: Greetings, Would someone know some good tutorials about struts 2.0.9

Re: Tutorials about struts2 + ibatis + SQLmap

2007-10-11 Thread Emi Lu
http://learntechnology.net/content/main.jsp I would be more interested about the setup/configuration/tutorial for *Struts2 + ibatis2.3*, but not struts1 + ibatis. The point is that the example at the provided link uses Spring. S2 uses Spring. The differences in the iBatis/Spring

How to disable alt part from tooltip

2009-01-27 Thread Emi Lu
Good morning, I have a question about tooltip. Source code: s:textfield name=username label=Username tooltip=Enter the same username as you login Windows windows / When using Firefox or Konqueror open my page, I always see: alt=Enter the same username as you login

Re: How to disable alt part from tooltip

2009-01-28 Thread Emi Lu
I have a question about tooltip. Source code: s:textfield name=username label=Username tooltip=Enter the same username as you login Windows windows / When using Firefox or Konqueror open my page, I always see: alt=Enter the same username as you login Windows

Re: How to disable alt part from tooltip

2009-01-28 Thread Emi Lu
Source code: s:textfield name=username label=Username tooltip=Enter the same username as you login Windows windows / When using Firefox or Konqueror open my page, I always see: alt=Enter the same username as you login Windows Someone knows how to remove alt=Enter

Re: How to disable alt part from tooltip

2009-01-28 Thread Emi Lu
Thank you Musachy! From struts.apache.org/download.cgi, it seems that neither 2.1.7 nor 2.2.x is ready yet :( - Lu Ying Musachy Barroso wrote: Yes, there is a bug on tooltip.ftl musachy On Wed, Jan 28, 2009 at 3:53 PM, Emi Lu em...@encs.concordia.ca wrote: Source code: s:textfield

How to replace {0} with real value by using addFieldError(key, string)?

2009-01-29 Thread Emi Lu
Good morning, With struts2.1.6, In package.properties: empty.error={0} cannot be empty. Setup field error as: this.addFieldError(username.empty, getText(empty.error)); But is there a way, I can replace {0} with username? Thanks a lot! -- Lu Ying

What may cause ognl.InappropriateExpressionException warning ?

2009-02-03 Thread Emi Lu
Good morning, When switching query result page by page (online), I got the following warning message: WARNING: Error setting value ognl.InappropriateExpressionException: Inappropriate OGNL expression: (d - 6836677) - p I am lost. Could someone tell me what may cause this warning please?

Re: What may cause ognl.InappropriateExpressionException warning ?

2009-02-03 Thread Emi Lu
When switching query result page by page (online), I got the following warning message: WARNING: Error setting value ognl.InappropriateExpressionException: Inappropriate OGNL expression: (d - 6836677) - p I am lost. Could someone tell me what may cause this warning please? Info searched

Re: What may cause ognl.InappropriateExpressionException warning ?

2009-02-04 Thread Emi Lu
at 4:39 PM, Dave Newton newton.d...@yahoo.com wrote: Wouldn't it make sense to include the JSP/expression that's causing the error? Dave Emi Lu wrote: When switching query result page by page (online), I got the following warning message: WARNING: Error setting value

Re: What may cause ognl.InappropriateExpressionException warning ?

2009-02-04 Thread Emi Lu
params interceptor doesn't like parameters with spaces in the name (this was fixed in xwork already), to fix it, set acceptedParamNames to [[\p{Graph}\s][^,#:=]]* in your param interceptor. Right, I am using displayTag(displaytag-1.2.jar). The parameter looks like:

getText did not return value in s:submit

2009-02-04 Thread Emi Lu
Good afternoon, A question about getText in jsp file. I'd like to get value from property file. in package.properties, edit.action=Edit information in jsp, ... s:i18n name=info.ProcessInfo s:form action=ProcessInfo s:submit name=submit value=%{getText('edit.action')} / /s:form /s:i18n

Re: getText did not return value in s:submit

2009-02-05 Thread Emi Lu
Hi Martin, Take a look at this example s:property value=%{getText('edit.action')} / what is displayed when property is displayed in jsp? I got the same value displayed edit.action :( Do you know where I did wrong please? Thanks a lot! -- Lu Ying Date: Wed, 4 Feb 2009

Re: getText did not return value in s:submit

2009-02-05 Thread Emi Lu
Good morning, I got why: I have to name the same property file name as the action class. Rename package.properties to ProcessInfo.properties, I got correct result. I just wonder isn't package.properties is recognized automatically? May I know how to use package.properties to display

Re: getText did not return value in s:submit

2009-02-05 Thread Emi Lu
I got why: I have to name the same property file name as the action class. Rename package.properties to ProcessInfo.properties, I got correct result. I just wonder isn't package.properties is recognized automatically? May I know how to use package.properties to display getText() in jsp

Re: getText did not return value in s:submit

2009-02-05 Thread Emi Lu
Hi Dave, (3) but I do not know how jsp can recognize package.properties? You're mis-understanding how the text is retrieved from the JSP: the JSP is calling the action's getText(...) method. Are you accessing the JSP directly, or through an action? I am new to struts2. I tried to use

Re: getText did not return value in s:submit

2009-02-05 Thread Emi Lu
http://t.wits.sg/2008/06/23/howto-struts-2-i18n/ Did not success. (1) in package.properties label.code=example value (2) Put package.properties under /WEB-INF/classes/ (3) in jsp s:label value=label.code / Still cannot see the result? -- Lu Ying

Re: getText did not return value in s:submit

2009-02-05 Thread Emi Lu
('label.test')} / -- Lu Ying Emi Lu wrote: http://t.wits.sg/2008/06/23/howto-struts-2-i18n/ Did not success. (1) in package.properties label.code=example value (2) Put package.properties under /WEB-INF/classes/ (3) in jsp s:label value=label.code / Still cannot see the result? Again

Possible to return ibatis query in xml file?

2009-03-04 Thread Emi Lu
Good morning, I have a question based on ibatis + struts. Would it be possible that in java code, I could get the query in ibatis. For example, in ibatis_query.xml select id=test select * from a /select In java, === public ActionForward execute( ActionMapping mapping,

struts1 - html:hidden tag

2009-03-05 Thread Emi Lu
Good morning, A question about struts1 html:hidden tag. May I know the differences between (1) vs. (2) please? (1)html:hidden property=field1 / (2)html:hidden property=field1 value= / When I load value from popup windows, it seems that default value will be setup on (1); while (2) always

Re: struts1 - html:hidden tag

2009-03-05 Thread Emi Lu
Hi Mas, 2) actually assigns the value 1) gets the value of the property from the formbean if it has been assigned in the formbean. You may have an action that populates the form by hitting a database, loading the data in the form and the forwarding to your current page ie before editing a

Access ActionForm methods/varaibles in JSP

2009-03-05 Thread Emi Lu
Good morning, In JSP file, may I know how to get action bean please? form action=... name=f1 % if(f1.getCode().equals('abc')) { % table ... ... /table % } % /form In JSP, I'd like to know how to call methods, fields in action form bean? Thanks a lot! --

Re: Access ActionForm methods/varaibles in JSP

2009-03-05 Thread Emi Lu
, -- Lu Ying On Thu, Mar 5, 2009 at 3:22 PM, Emi Lu em...@encs.concordia.ca wrote: Good morning, In JSP file, may I know how to get action bean please? form action=... name=f1 % if(f1.getCode().equals('abc')) { % table ... ... /table % } % /form In JSP, I'd like

struts1.3.10, tomcat 5.5.23, memory leak?

2009-10-15 Thread Emi Lu
Good afternoon, May I know which version of struts1 without memory leak problem? I use struts1.3.10 and tomcat5.5.23. I stop my web application and did (1) find tomcat pid = 11718 (2) jmap to review not released classes jmap -histo 11718 | grep webapp Attaching to process ID 11718,

struts1.3.10, tomcat 5.5.23, memory leak?

2009-10-15 Thread Emi Lu
Good afternoon, May I know which version of struts1 without memory leak problem? I use struts1.3.10 and tomcat5.5.23. I stop my web application and did (1) find tomcat pid = 11718 (2) jmap to review not released classes jmap -histo 11718 | grep webapp Attaching to process ID 11718,

Re: struts1.3.10, tomcat 5.5.23, memory leak?

2009-10-15 Thread Emi Lu
Sorry about sending my question twice because I got the following failure msg: Hi. This is the deliver program at bjtu.edu.cn. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out.

Re: struts1.3.10, tomcat 5.5.23, memory leak?

2009-10-16 Thread Emi Lu
Still see not-released webapp classes even actionForm actionClasses are shown. May I know why these classes are not auto-released after webapp has been stopped from tomcat server? Why would GarbageCollector need to release them? Because You want it? GC is a tricky beast and it's not

Re: struts1.3.10, tomcat 5.5.23, memory leak?

2009-10-16 Thread Emi Lu
Still see not-released webapp classes even actionForm actionClasses are shown. May I know why these classes are not auto-released after webapp has been stopped from tomcat server? Why would GarbageCollector need to release them? Because You want it? GC is a tricky beast and it's not

Struts2 + Spring + ibatis vs. Struts2 + Spring + Hibernate

2009-11-25 Thread Emi Lu
Good morning, Could someone has production comparison between (1) vs. (2)? (1) Struts2 + Spring + ibatis (2) Struts2 + Spring + Hibernate Thanks a lot! -- Lu Ying - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org

Why s:actionmessage / did not show action message?

2009-12-11 Thread Emi Lu
Good afternoon, With struts2.1.81, in action class: addActionMessage(Success!); in JSP, display s:actionmessage /. But the success message never show up? Any clues? Thanks a lot! -- Lu Ying - To unsubscribe, e-mail:

Re: Why s:actionmessage / did not show action message?

2009-12-11 Thread Emi Lu
Hi Eduard, Did you send your success message from the action ? (1) In action1 (a1.java): addActionMessage(Success!); (2) through tiles action1 - action2 (a2.java) (3) from action2 - final jsp s:actionmessage / if from (1) to (3) directly, it will be shown. But from (1) to (2) to

Struts2 + Spring + ibatis configuration set in applicationContext-ibatis.xml

2009-12-16 Thread Emi Lu
Hello list, Struts2 + Spring + ibatis, database connection configuration question: = (1) In applicationContext-ibatis.xml bean id=dataSource class=org.apache.commons.dbcp.BasicDataSource destroy-method=close

Dispatch does not work ( Struts2 + tile)

2009-12-23 Thread Emi Lu
Hello all, I am using struts2.1.8.1 tiles2.0.7. The following doc says that dispatch will work, but when I setup: http://www.vaannila.com/struts-2/struts-2-example/dispatchAction-in-struts-2-example-1.html My page goes to the correct URL, but the action class ProcessTest is not called at

How struts2 supports optgroup?

2010-01-12 Thread Emi Lu
Good afternoon, Could someone tell me how struts2 support optgroup please? Thanks a lot! -- Lu Ying select optgroup label=Australia option value =sydneySydney/option option value =melbourneMelbourne/option /optgroup optgroup label=New Zealand option value =cromwellCromwell/option option value

Struts2.1.8.1, s:push does not return s:property value

2010-01-18 Thread Emi Lu
Good afternoon, Struts2.1.8.1, the following push example http://www.vaannila.com/struts-2/struts-2-example/struts-2-push-tag-example1.html Title returns, but s:push never returns attributes such as name under artist. Does someone tries and knows the reason? bAlbum Title: /b

Re: Struts2.1.8.1, s:push does not return s:property value

2010-01-18 Thread Emi Lu
Musachy Barroso wrote: The pushed object will be on the stack while the tag is evaluated (in the tag body), and it will be popped after the end of the tag, so s:push value=%{'not now john'} s:property value=%{top}/ --- will print 'not now john' s:push s:property value=%{top}/ --will print

s:iterator did not return result?

2010-01-19 Thread Emi Lu
Good morning, I have a problem of running the example: http://www.vaannila.com/struts-2/struts-2-example/struts-2-iterator-tag-example1.html JSP is: table TR class=even TD BTitle /B/TD TD BGenre /B/TD /TR s:iterator value=songs status=songStatus tr class=s:if

Re: s:iterator did not return result?

2010-01-19 Thread Emi Lu
I have a problem of running the example: http://www.vaannila.com/struts-2/struts-2-example/struts-2-iterator-tag-example1.html JSP is: table TR class=even TD BTitle /B/TD TD BGenre /B/TD /TR s:iterator value=songs status=songStatus tr class=s:if test=#songStatus.odd ==

  1   2   3   >