Re: doc problem at struts.properites page
2009/3/2 Musachy Barroso musa...@gmail.com: You need to file a CLA: http://www.apache.org/licenses/icla.txt and then drop and email to @dev, and someone will grant you wiki rights. I did that months ago but now answer, should I repeat that? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Acegi with Struts 2.
2009/3/3 Mohan Radhakrishnan radhakrishnan.mo...@gmail.com: filter-mapping filter-namestruts2/filter-name url-pattern/HelloWorld.jsp/url-pattern /filter-mapping Wrong, has to be filter-mapping filter-namestruts2/filter-name url-pattern/*/url-pattern /filter-mapping Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to pass Result dynamic param value while using Annotation to define action
2009/3/4 Matt Jiang matt.ji...@gmail.com: Do I just use ${expression} as well? try #expression http://struts.apache.org/2.1.6/docs/ognl.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2 and dojo
2009/3/10 fr Rouxel rouxe...@yahoo.com: and when struts 2 will integrate dojo 1.0? Support for Dojo was deprecated, some work is going on to integrate Struts2 with jQuery Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Re: struts2 and dojo
2009/3/10 pascal.gehr...@freenet.de: Support for dojo was not deprecated!! It was bundled to a plugin and is called struts2-dojo-plugin-2.1.6.jar. It was deprecated, there is no plans to upgrade Dojo to latest version, no plans to add new Dojo futures and so on... In such case support for Dojo in Struts2 was deprecated. And code was moved to plugin to not bundle deprecated code with new Struts2 version. There still will be some bug fixing. If you plan to use it anyway, you will be on your own. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2 and dojo
2009/3/11 Mohan Radhakrishnan radhakrishnan.mo...@gmail.com: Are you supporting JQuery in the future ? There is work-in-progress on jquery-plugin I know I should be expecting only voluntary support from a open-source project. Will the developers who are still working on DOJO support in Struts tags suddenly stop working ? Has the bug fixing stopped ? As I know no, bugs regarding Dojo still will be solved. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [OT] Authorization and Authentication Question
2009/3/11 Ashish Kulkarni ashish.kulkarn...@gmail.com: HiI was able to configure LDAP to do authentication, but how do i use UserDetailsService, is there any example of how to use this and implement it in my project to get user and role from DB2 database I did that like this, extended DefaultLdapAuthoritiesPopulator and overrided getAdditionalRoles() method, in such case you can mix roles from LDAP and from DB. In my case, access to applications was assigned by LDAP group, but exact roles in application was specified in DB public class LdapAuthoritiesPopulator extends DefaultLdapAuthoritiesPopulator { private UserService userSvc; public LdapAuthoritiesPopulator(InitialDirContextFactory initialDirContextFactory, String groupSearchBase) { super(initialDirContextFactory, groupSearchBase); } @Override protected Set getAdditionalRoles(LdapUserDetails ldapUser) { SetGrantedAuthority roles = new HashSetGrantedAuthority(); User user = userSvc.getUser(ldapUser.getUsername()); if(user != null) { for (Role role : user.getRoles()) roles.add(new GrantedAuthorityImpl(role.getName())); } return roles; } public void setUserSvc(UserService userSvc) { this.userSvc = userSvc; } } applicationContext.xml (I've been using Acegi, but it should be the same for Spring Security) bean id=ldapAuthProvider class=org.acegisecurity.providers.ldap.LdapAuthenticationProvider constructor-arg bean class=org.acegisecurity.providers.ldap.authenticator.BindAuthenticator constructor-arg ref local=initialDirContextFactory / /constructor-arg property name=userSearch ref local=userSearch / /property /bean /constructor-arg constructor-arg bean class=com.company.LdapAuthoritiesPopulator !-- HERE IS MY CLASS -- constructor-arg ref local=initialDirContextFactory / /constructor-arg constructor-arg valueOU=Company,OU=Access Control Groups,OU=Data/value /constructor-arg property name=convertToUpperCase valuetrue/value /property property name=rolePrefix value/value /property property name=searchSubtree valuetrue/value /property property name=groupSearchFilter valuemember={0}/value /property property name=groupRoleAttribute valuecn/value /property property name=userSvc ref=userSvc/ !-- REFERENCE TO USER SERVICE NEEDED TO ACCESS DB-- /bean /constructor-arg /bean Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 2.1.6 - Date parameters conversion failure due to missing locale
2009/3/12 Andrea andrea.giglio...@smurfitkappa.it: after migrating from 2.0.11 to 2.1.6 version i faced the above problem. can someone send me the xwork 2.1.3 jar file, or only the .class fixed ? I can't build it cause the enterprise firewall. I need to resolve the issue because our web app doesn't works. You can find it here http://www.lenart.org.pl/maven/com/opensymphony/xwork/ Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Type conversion exceptions
2009/3/16 ryangr grigg...@gmail.com: ERROR com.opensymphony.xwork2.util.InstantiatingNullHandler - Could not create and/or set value back on to object ognl.OgnlException: settings [java.lang.IllegalArgumentException: argument type mismatch] ERROR com.opensymphony.xwork2.interceptor.ParametersInterceptor - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'settings[0].title' on 'class com.rjssoft.webdocs.admin.SettingAction: Error setting expression 'settings[0].title' with value '[Ljava.lang.String;@185fe0c' settings is a List? could you take a look on rendered page source, are there different indexes (settings[x].title)? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Type conversion exceptions
2009/3/16 ryangr grigg...@gmail.com: settings is a SettingList which is just an extended ArrayListSetting. That can be a problem, generics are erased during compilation and Ognl doesn't know how to convert array to SettingList, did you try to prepare converter for it? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: System.out into interceptor
On Mon, Mar 16, 2009 at 5:31 PM, PEGASUS84 pegasu...@hotmail.it wrote: %out.print(request.getParameter(ciao))% Simplest solution %= request.getParameter(ciao) % Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Type conversion exceptions
2009/3/16 ryangr grigg...@gmail.com: It appears both values objects (value and o, respectively) are completely empty... It's strange but anyway you should be able to use Struts2 / XWork2 convertion mechanism, did you setup xwork-conversion.properties file as mentioned in documentation [1]? [1] http://struts.apache.org/2.x/docs/type-conversion.html#TypeConversion-ASimpleExample Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Type conversion exceptions
2009/3/16 ryangr grigg...@gmail.com: Yes, I have it listed in the xwork-conversion.properties file as such: com.rjssoft.webdocs.setting.SettingList=com.rjssoft.webdocs.converter.SettingListConverter And the file is in the root of your classpath (WEB-INF/classes)? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Type conversion exceptions
2009/3/16 ryangr grigg...@gmail.com: com.opensymphony.xwork2.util.XWorkConverter - processing conversion file [com/rjssoft/webdocs/admin/SettingAction-conversion.properties] [class=class com.rjssoft.webdocs.admin.SettingAction] As I see you have only SettingAction-conversion.properties, could you try to use global xwork-conversion.properties? http://struts.apache.org/2.x/docs/type-conversion.html#TypeConversion-ApplyingaTypeConverterforanapplication Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Type conversion exceptions
2009/3/17 ryangr grigg...@gmail.com: [xwork-conversion.properties] Element_settings=com.rjssoft.webdocs.setting.Setting That's ok but your SettingList is not full List implementation and you have to specified how to convert array to SettingList that's why you have to specified also converter for SettingList above. I will try to prepare something similar today evening and test. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Type conversion exceptions
2009/3/18 musom...@aol.com: But then how do you plan to write a converter to convert a String[] to a SettingList? It's already done, just to the configuration has to be adjusted Also why is aggregation a bad design? It isn't but exposing directly internal field (ArrayListSetting) it is. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Where is Struts 2 Blank Archetype 2.1.6 ?
Hi, I've just put the latest (unreleased version) here [1], you can use it with command: mvn archetype:generate -DarchetypeCatalog=http://www.lenart.org.pl/maven/ [1] http://www.lenart.org.pl/maven/ Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Dojo plugin deprecated on Struts 2.1: why ?
2009/3/24 cel...@yahoo.com: I have two main questions about that : 1) What is the reason ? Is it because it is slow ? Not enough support from community and no plans to upgrade to latest Dojo version (no volunteers) 2) Will it be replaced by another Javascript library ? Not replacement, but a new plugin, there is a work in progress for JQuery integration Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: ClassCastException com.dev.model.Form cannot be cast to java.lang.String
2009/3/24 foward fow...@gmail.com: s:action name=createForm!getForm id=action namespace=default/ Method getForm() return object Form or String? Struts is expecting that action will return a String not an object. I think you should read some tutorial how to use Struts 2. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: ClassCastException com.dev.model.Form cannot be cast to java.lang.String
2009/3/24 foward fow...@gmail.com: the method getForm() return a object Form where before with the respective id is obtained and returned. You put method getForm() in s:form as a action, which means such method will be called by Struts 2 and the framework will expect a String - result name, which you have to define in struts.xml. You shouldn't return an object like Form. To do that, implement ModelDriven interface and return your Form object from method getModel() and in your jsp use ${name} instead ${form.name} Yes I m reading a book struts in action, I don't know if you recomend me a good one. That is good one Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Where is Struts 2 Blank Archetype 2.1.6 ?
2009/3/24 Radoslav Krivak rkri...@gmail.com: Thanks Lukasz. I was actually checking your catalog few days ago but it wasn't there yet. I put it yesterday ;-) I've hope, I will be able to publish also conventionize version before Easter Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: display Bigdecimal with 3 number after the ,
2009/4/2 elyes sallem elyes.sal...@gmail.com: Hello, i work with struts 1.2 and i wanna display in the jsp page Bigdecimal number with 3 number after the comma any one know how can i do that? by default, it is displayed 1 comma after the comma Did you read documentation [1] about that? [1] http://struts.apache.org/2.1.6/docs/formatting-dates-and-numbers.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: display Bigdecimal with 3 number after the ,
2009/4/2 elyes sallem elyes.sal...@gmail.com: yes i viewed , this is for struts 2 but i work with struts 1.2 Sorry, I missed that ;-( You can use JSTL fmt:formatNumber pattern=#,###,### value=${myForm.myBigDecimal}/ Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: display Bigdecimal with 3 number after the ,
2009/4/2 Lukasz Lenart lukasz.len...@googlemail.com: fmt:formatNumber pattern=#,###,### value=${myForm.myBigDecimal}/ it should be fmt:formatNumber pattern=#,###,###.### value=${myForm.myBigDecimal}/ Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Empty lines before doctype declaration
2009/4/6 Cristian Peraferrer corellia...@gmail.com: I'm using struts 2.1.6, using JSP's with Tiles plugin, and I'm getting empty lines before the doctype, but in my JSP's there aren't spaces. Where I should look at? Maybe it's an encoding problem? Some UTF8 with BOM? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: configure struts 2
Remove struts2-spring-plugin.jar from your lib folder if don't use integration with Spring. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Error when starting sun java App Server com.opensymphony.xwork2.inject.DependencyException: Security manager in use, could not access constructor: com.opensymphony.xwork2.ObjectFactory(com.opensy
2009/4/1 srinivasch sri...@gmail.com: WEB0100: Loading web module [budsystem] in virtual server [server] at [/budsystem] Starting Servlet Engine: Sun-Java-System/Application-Server Parsing configuration file [struts-default.xml] Parsing configuration file [struts-plugin.xml] Unable to locate configuration files of the name struts.xml, skipping Parsing configuration file [struts.xml] WebModule[/budsystem]Exception starting filter struts2 com.opensymphony.xwork2.inject.DependencyException: Security manager in use, could not access constructor: com.opensymphony.xwork2.ObjectFactory(com.opensymphony.xwork2.ObjectFactory) It's very strange, ObjectFactory has public constructor so it shouldn't be a problem, could you check your policy file? It looks like you disallowed to access public constructors. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: please help me
2009/4/7 PEGASUS84 pegasu...@hotmail.it: public class DataOre { List giorno=new ArrayList(); public DataOre(){ giorno = new ArrayList(); You already created list, not needed %...@page import=bean.DataOre% s:select headerKey=1 headerValue=seleziona list=DataOre listValue=giorno / You can't use that bean directly, it has to be returned by getter from action, first add getter to DataOre return list public class MyAction extends ActionSupport { private DataOre dataOre = new DataOre(); public String execute() { return SUCCESS; } public List getDataOre() { return dataOre.getList(); } } And then on your jsp you can use s:select label=Select Ore name=daysname headerKey=1 headerValue=-- Please Select -- list=dataOre / There is a great example for select tag here [1] and for any other Struts2 tag [2] [1] http://www.roseindia.net/struts/struts2/struts2uitags/select-tag.shtml [2] http://www.roseindia.net/struts/struts2/index.shtml Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: tag select
2009/4/7 PEGASUS84 pegasu...@hotmail.it: good evening; I've this question: I want crate a select tag with a list of 31 days. I create a java class with an ArrayList with 31 days but how can insert this ArrayList into a list of the select tag? Don't duplicate topics, it doesn't help! I already answered your question in previous post! Kind regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Error with ActionForward
2009/4/7 Security Management list-subscripti...@secmgmt.com: Struts 2.1.6, here's my action. action name=saveRuleName class=com.secmgmt.actions.SaveRule result name=success type=redirectAction param name=actionNameaddExceptionForm/param param name=rule${rule}/param /result /action You shouldn't use custom objects as a params, Ognl will change them to Object.toString() public class AddExceptionForm extends SMCBaseAction { private IRule rule; I suppose IRule is interface, which means Ognl doesn't know how to create it, you have to use real object with default constructor Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: validation
2009/4/7 Roberto Nunnari roberto.nunn...@supsi.ch: do the above scenario permit the use of xml validation? It shouldn't be a problem, did you double check that validations files were transferred to the server? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: my first struts 2 HelloWord.action still not working
2009/4/7 john lee sh_thorn_b...@yahoo.com: no error when startup the tomcat. Could you try access directly HelloWorld.jsp? Like this http://localhost:8080/jiong2/HelloWorld.jsp Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: validation
2009/4/8 Roberto Nunnari roberto.nunn...@supsi.ch: action name=Item-update method=update Action name is: Item-update method name is: update so then, validation file should be? Item-update-update-validation.xml and here's my Item-update-validation.xml file that I put in the same folder In theory this should work for whole action Item-update, but I think the problem is that double dash ;-) Change naming convention for your actions, use namespace instead names like Item-update or use underscore Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Change single .properties file to one .properties file for every JSP
2009/4/8 walki2 kim.wali...@gmail.com: SomeFileName.properties SomeFileName_en.properties SomeFileName_fr.properties SomeFileName_de.properties You can use package.properties for all actions in given package and below (in Struts2 ;-) Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
New maven convention archetype
Hi, Could someone try to test a new archetype which base on Convention plugin and tell why it isn't working as expected? Index action is not mapped and I18N is missing (properties files are where they should be :-( ) mvn archetype:generate -DarchetypeCatalog=http://www.lenart.org.pl/maven/ Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: validation
2009/4/8 Roberto Nunnari roberto.nunn...@supsi.ch: Any more hints? Could you remove this from top of your validation file? ?xml version=1.0 encoding=UTF-8? !-- Document : ItemAction-validation.xml Created on : 24 marzo 2009, 20:40 Author : nunnari Description: -- Pozdrawiam -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: New maven convention archetype
2009/4/8 Musachy Barroso musa...@gmail.com: The archetype is generating the jsps in the wrong location, it is missing the namespace in the patch. For example, if I enter actions.test for the package, the jsp is generated as WEB-INF/content/hello.jsp, it should be WEB-INF/content/test/hello.jsp Archetype will setup actions.test as a basePackage in struts.xml, it should be ok then? constant name=struts.convention.package.locators.basePackage value=${package}/ Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: New maven convention archetype
2009/4/8 Musachy Barroso musa...@gmail.com: no, that would just instruct convention to scan from that package down, what you need to do (I have no idea how archetypes work), is to get the package name, and substring from actions., replace . by / and that will be the path under WEB-INF/content. If you can't determine were to put the files at runtime, then you can either 1) don't let users pick the package, 2) use @Result annotations to indicate where the results are (kind of defeating the purpose of using Convention) I found the solution, but this is weird. I just moved the classes to package named actions and it works! Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: validation
2009/4/8 Mileidys Gonzalez Prieto mileidys.gonza...@i-frontier.net: Im using this piece on code on my jsp html:javascript formName=/submitCraft dynamicJavascript=true staticJavascript=false / Yeah, but the topic is about the problems with validation in Struts2 not in Struts1 as you're presenting. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts2-showcase on OC4J
2009/4/9 Mick_ ruaspam...@gmail.com: Here is the pertinent data from the logs: 09/04/08 18:04:41.468 struts2-showcase-2.1.6: Servlet error java.lang.NullPointerException at com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading(FileManager.java:209) at com.opensymphony.xwork2.util.FileManager.fileNeedsReloading(FileManager.java:60) I think it's related to that bug [1], I added support for code-source: but I don't know if it's enough, could you download the latest build from here [2] and check? [1] http://jira.opensymphony.com/browse/XW-669 [2] http://www.lenart.org.pl/maven/com/opensymphony/xwork/ Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: New maven convention archetype
Ok, I made some minor tweaks and right now everything should be as expected, please test it. Then I will register new Task with Jira ;-) Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [S2.1.6] boolean static parameter for an action
2009/4/10 Greg Lindholm glindh...@yahoo.com: I'm trying to pass a boolean static parameter to an Action and the value getting set is always false no matter what I do it won't set it to true. action name=MyAction class=com.xxx.MyClass method=doDisplay param name=xxx${true}/param try ${'true'} Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts and EJB 3
2009/4/10 Stefano elste...@gmail.com: in struts1 what's the way to use EJB3.0? there's no possibility to use annotation? i need to use classical jndi? why? You can use annotations with Struts1, is not a problem with framework but with Java platform you're using. THe best solution is to use Spring to connect Struts1 Actions with EJB3 beans. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Session Management
package example3; import com.opensymphony.xwork2.Action; import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.interceptor.Interceptor; /** * * @author Lukasz */ public class LoginInterceptor implements Interceptor { public void destroy() { } public void init() { } public String intercept(ActionInvocation arg0) throws Exception { if (arg0.getAction() instanceof LoginAction) { return arg0.invoke(); } String user = (String) arg0.getInvocationContext().getSession().get(user); if ( user == null || .equals(user)) { return Action.LOGIN; } else { return arg0.invoke(); } } } Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Regarding locale in struts
2009/4/16 abhishek reddy abhishek.c1...@gmail.com: how do i manually set the locale in struts application? You have to have I18N interceptor in your stack and setup request_local param in url with given Locale code, see [1] for more details [1] http://struts.apache.org/2.1.6/docs/i18n-interceptor.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Storing interface instance in a user's session
2009/4/16 Security Management list-subscripti...@secmgmt.com: I think I just was being dumb and did not make the IUser serializable, which should be all I need to do, yes? Yes, you should get exception when session will be saved to disk. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Regarding locale in struts
2009/4/17 abhishek reddy abhishek.c1...@gmail.com: thanks for the replyiam using struts 1.2.9, how to use the interceptor? Not possible ;-) And I have no idea how it (Locale) should be implemented in Struts 1.2. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: WARNING: No configuration found for the specified action:
2009/4/18 Stefano Tranquillini stefano.tranquill...@gmail.com: package name=home extends=default namespace=/ There isn't namespace user, only /. Namespace is a virtual name, doesn't base on packages or something. Try to read [1] to understand it deeply [1] http://struts.apache.org/2.1.6/docs/namespace-configuration.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Menus
2009/4/20 abhishek reddy abhishek.c1...@gmail.com: can anyone let me know how to build menus in struts? Struts Menu [1] [1] http://struts-menu.sourceforge.net/ Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Is there a better way?
2009/4/20 Mighty Tornado mighty.torn...@gmail.com: This works, but is there a better way to do it with Struts? The question is: the jsp page is not an HTML form; it just displays information - can I use the form for this purpose though, and if so, should I? It's up to you, the only think, you have to be consistent. If you use request to display data, then use it through whole application, and then use forms only for add/edit purpose. Using request is even better if you want to use some third-part tag library like displaytag. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to do matematical operation in jsp.
2009/4/21 Stefano Tranquillini stefano.tranquill...@gmail.com: how can i do that? Add method to class Item to do that, jsp isn't place for business logic Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to do matematical operation in jsp.
2009/4/21 Dave Newton newton.d...@yahoo.com: Meh--for simple stuff like this I'm not as sure, although if we're talking about a line item in a invoice, it wouldn't take much to convince me. How do you want to test it? I know it's a simple case, but it's better to have logic in one place. The issue for me would be that if this is money maths it should be using BigDecimal (or something), and I'm not sure what OGNL would do with the '*' operator. So you answer your question, use additional method with no cost, with easy way to extend the logic behind in the method. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to do matematical operation in jsp.
2009/4/21 Suneel sunee...@gmail.com: I'm not sure about this but can't you invoke a function in OGNL. I guess thats how the getText function works in ognl. Probably you can write a function in your action like getResult and invoke it using s:property value=getResult(key.price,value)/ Correct me if i'm wrong. Yes you can do that, but it's EVIL! DON'T DO THAT!!! Business logic has to be in your business model, not in a presentation layer! Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Non editable jsp with struts 2 templates - whats the best approach?
2009/4/21 Suneel sunee...@gmail.com: I've a JSP where the user views a set of html input fields. The user enters the values and submits the page and he is taken to another page where he gets a chance to review his inputs before final submission. All this JSP does is, it displays the inputs as plain text instead of html inputs using the s:property tag. Currently I'm using two different jsps to achive this - one for input and one for review. Can I do this with just one JSP by using themes/templates like switching the theme for the review jsp? We are currently using the 'simple' theme. What is wrong with that approach? If it works and if it's simple, then keep it! Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Non editable jsp with struts 2 templates - whats the best approach?
2009/4/21 Security Management list-subscripti...@secmgmt.com: Yes, create a theme based on simple that sets the disabled=true for the fields, and render with that theme. Some browses don't send to a server disabled fields, so you will have to duplicate them in to the hidden inputs. You can use readonly=true but it can be confusing for users, you will have to change the background or something. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to do matematical operation in jsp.
2009/4/21 Dave Newton newton.d...@yahoo.com: How do you want to test it? I know it's a simple case, but it's better to have logic in one place. As I said, I'm easily convinced in this particular case. OTOH, there are plenty of times when it's simply easier, quicker, and clearer to just implement trivial functionality in the JSP. And the next step will be implement whole bank security in jsp :P Don't teach people such a things, jsp is only for presentation! What will happen when the presentation layer will change or someone starts using REST plugin? He wouldn't be aware of such logic, hidden in jsp. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: How to do matematical operation in jsp.
2009/4/21 Dave Newton newton.d...@yahoo.com: And the next step will be implement whole bank security in jsp :P Right, because that's clearly the type of trivial functionality I was talking about. Don't be ridiculous. Young programmers very often follow such advices and extend logic in jsp, they have a problem to see borders of trivial functionality. It wasn't joke, really :-( Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: HTML:errors
2009/4/23 McDowell, Paula paula.mcdow...@sug.com: Is there a way to check the html:errors/ field in the jsp for not empty? I only want to display an html group if the errors field is empty. I'm using Struts 1.1. I've been using such structure: logic:messagesPresent name=%=Globals.ERROR_KEY% table width=480 id=ErrorsTableId class=ErrorsTable tr td width=100% align=right a href=JavaScript: void(0) onclick=JavaScript: return hideErrors(); html:image bundle=IMAGES srcKey=image.close //a /td /tr html:messages id=error name=%=Globals.ERROR_KEY% tr tdbean:write name=error //td /tr /html:messages /table /logic:messagesPresent Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: struts 2 and tomcat 6 problem
2009/4/26 Kortheo kort...@kwanta.net: I've just created a new standard dynamic web project using eclipse , added the struts2 libs and configured a standard mapping in web.xml Did you add all needed dependency? Unable to load configuration. - bean - jar:file:/Users/kortheo/Projekte/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/kptool/WEB-INF/lib/struts2-convention-plugin-2.1.6.jar!/struts-plugin.xml:30:119 Caused by: Bean type interface com.opensymphony.xwork2.UnknownHandler with the name default has already been loaded by bean - jar:file:/Users/kortheo/Projekte/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/kptool/WEB-INF/lib/struts2-codebehind-plugin-2.1.6.jar!/struts-plugin.xml:29:122 You are mixing Convention with CodeBehind plugin, you have to chose either first or second approach. Convention overtook CodeBehind so follow this way and read documentation [1] [1] http://cwiki.apache.org/WW/convention-plugin.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Exception Handling in Struts 2.0.11
2009/4/27 NR031 nataraja...@cognizant.com: I am using Struts 2.0.11 and NetBeans 6.1. Is there any way to handle exception in Struts 2? Just define global result and put entries for given exceptions in struts.xml, like below global-results result name=methodNotSupported type=httpheader param name=error405/param param name=errorMessageThe requested method is unsupported/param /result result name=error/jsp/error.jsp/result /global-results global-exception-mappings exception-mapping exception=java.lang.NoSuchMethodException result=methodNotSupported/ exception-mapping exception=java.lang.IllegalArgumentException result=methodNotSupported/ exception-mapping exception=java.lang.NullPointerException result=error/ /global-exception-mappings Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Defining text field dynamically and assigning value from array
2009/5/7 sateesh_chand...@harvardpilgrim.org: s:textfield theme=simple key=%{paramId} value=%{%{paramId}[0]} maxlength=2 size=2 cssClass=monthInput tabindex=%{sequenceNo} / Maybe just that will be enough? value=%{paramId[0]} Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: IllegalArgumentException using struts2-convention-plugin-2.1.6.jar on JBoss
Could you try to use the latest snapshot build? http://people.apache.org/builds/struts/nightlies/2.x/ If that doesn't help, please register an issue with Jira, JBoss 5 introduced new virtual file system and that the origin of problems https://issues.apache.org/struts/browse/ Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Please help! Struts 2/Eclipse - List Object is not displaying in JSP
2009/5/7 SofIAm sof.am...@yahoo.com: public String getAllEmployees() { This method is never called, renamed it to execute() and should be ok Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: problems using tiles with struts 2
2009/5/12 manub e.bla...@reply.it: Anyone can suggest me how to handle this? XML parser is trying to connect over the Internet to validate XML base on DTD, do you have proxy in use? It was possible to disable such function and to use local DTD copy instead. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Using session object in JSP page
2009/5/11 NR031 nataraja...@cognizant.com: Map sesion=ActionContext.getContext().getSession(); sesion.put(username,getUn()); /*getun() returns the username form field data*/ I want to use this session data in all my JSP pages, how to use the session data in my JSP? I am using Struts -2 and NetBeans 6.1 IDE. s:property value=#session.username/ Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: problems using tiles with struts 2
2009/5/12 manub e.bla...@reply.it: Yes, I'm behind a proxy. How to disable that functionality? Thanks in advance. Sorry, no idea. It's related to Digester itself, try to look in that direction. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Cant get css, js files if not using .do extension
2009/5/13 KE LI hkustli...@gmail.com: 15545 [http-8080-2] ERROR org.apache.struts2.dispatcher.Dispatcher - Could not find action or result There is no Action mapped for namespace / and action name main.css. - [unknown location] You changed mapping for Action Servlet, right now it will catch all request and try to find actions base on request path, this is what you have in logs. You can implement your own version of RequestProcessor which will treat defined resource normally and add it to struts-config.xml, take a look on that controller processorClass=org.apache.struts.tiles.TilesRequestProcessor / Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [Struts 2] Disabled fields are not posted on form submission
2009/5/13 Fernandes Celinio cfernan...@sopragroup.com: How do i submit the value of a disabled text field ? Is there an interceptor that already takes care of it in Struts 2 ? By HTML spec, disabled fields aren't send to a server, it isn't Struts issue but general rule. You can consider to use readOnly attribute or use hidden fields Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: convention plug-in
2009/5/13 Jim Collings jlistn...@gmail.com: Is there a place where I can see what the conventions are that the convention plug-in uses? Did you read the documentation [1]? [1] http://cwiki.apache.org/WW/convention-plugin.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Disabling JSP's
Check that solution [1], is better and should works for any kind of servlet container; putting files under WEB-INF is not always good because there isn't strict specification to protect files under WEB-INF - it works for Tomcat but I don't know if it does for others. [1] http://www.java-samples.com/showtutorial.php?tutorialid=579 Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Invoking multiple webservices from Action
2009/5/17 sid5 siddharthchha...@hotmail.com: We currently have a SOA based application with a struts front end. We have to invoke multiple webservices to get the data to render a single page. I was thinking of writing an Executor service inside an Action class or an Interceptor to do this. Is this the right approach ? It's no so good to mess with threads on application server, as I remember it's not allowed by servlet specification, you should use given servlet specific approach. I would like the webservices to be invoked in parallel. Why? If it's so slow, try to optimize them. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Accessing protected resources via a login page
2009/5/19 Steve st...@sjlt.co.uk: Can anyone advise on the best way to do this? Use Acegi, it has such functionality built-in or store request path in session when redirecting to login page and after successful login, read it from session and redirect to it. It should be achievable with the same interceptor you created. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Any validation flag available to the action code?
2009/5/19 Qunhuan Mei q...@qm18.wanadoo.co.uk: When Struts validation is in place, the java action code appears to run fully twice by default. What you mean by that? The method execute() is called twice? Is there a flag or variable as such available? As I know nope, it's simply not needed. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: passing form parameters to a custom validator
2009/5/19 manub e.bla...@reply.it: I'm trying to write a custom field validator which needs other fields to validate the field I need to validate. How can I pass field values (and not static params) to a field validator in the validation xml? I'm using Struts 2.1.6. Did you try ${fieldFromAction} ? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: passing form parameters to a custom validator
2009/5/20 manub e.bla...@reply.it: Yes, I did. But in the action the string takes the value ${field} and not the field value. Frankly, I don't understand, are you trying to pass data from validator xml configuration to action? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: passing form parameters to a custom validator
2009/5/20 manub e.bla...@reply.it: I've written a custom field validator, which needs other field values to validate his field. I need a way to pass that values to that field validator. Did you try to use param tag as below? field name=employee.employeeType field-validator type=expression short-circuit=false param name=expression$...@pl.org.lenart.ems.model.employeetype@.value() != 'dd'}/param param name=messageKeyerror.employee.type.required/param message / /field-validator /field Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: passing form parameters to a custom validator
2009/5/21 manub e.bla...@reply.it: I think that this may work for the expression validator because you are supplying an expression. I've been thinking about param/ tag, with it you can set any field in your validator and it can be an OGNL expression. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Pagination
2009/5/25 Murugesh muruges...@gmail.com: can any one help me to achieve this? Could you show how did you try to use DisplayTag, some code example? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Pagination
2009/5/25 Murugesh muruges...@gmail.com: display:table list=minDataList requestURI=calldata.action pagesize=10 display:column property=name/ display:column property=id/ /display:table Could you also show action code? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Pagination
End the last thing, action's configuration. As I noticed you don't use execute() method and maybe your are missing call to method call30Mdata(). And also try Chris suggestion. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Pagination
2009/5/25 Murugesh muruges...@gmail.com: i am getting list with s:iterator but not displaytag Did you try Chris suggestion? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Pagination
2009/5/25 Murugesh muruges...@gmail.com: is their any way to modify the display? like the page no's and no of items coming on top , i need it to be bottom. so where i have to chnage this? Check DisplayTag documentation, for begining that [1] [1] http://displaytag.sourceforge.net/1.2/configuration.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Force user to specific page
2009/5/26 Jim Collings jlistn...@gmail.com: I could write an interceptor but this seems like re-inventing the wheel as it seems like there should be something out there that will do this already. Your own Interceptor is the best solution and the second best option is to use Acegi or something similar Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Force user to specific page
2009/5/26 Jim Collings jlistn...@gmail.com: How can I force the user to go to a specific page, if a specific property is set? With JavaScript? Or if you mean server side solution, in execute() method return different result namr base on that property which is defined as a redirect to page you want. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0
2009/5/27 Fernandes Celinio cfernan...@sopragroup.com: I know it works well with the Tomcat server. JBoss is using Tomcat to serve Java web applications, did you try deploy the same application to standalone Tomcat? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [Struts 2.1.6] Convention plug-in not working with Jboss 5.1.0
2009/5/27 musom...@aol.com: Me again: here is a link with a discussion. Don't hold your breath as it does not give a work around. http://www.nabble.com/Problems-using-Struts2-on-JBoss-5.0.1GA-td22969807.html Does it mean it solves your issue? Or there there is something new regarding JBoss 5.1? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: white space
2009/6/15 PEGASUS84 pegasu...@hotmail.it: How can I make it? Did you try this listValue=%{nome + ' ' + cognome} Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: @Results ignored
As I remember, Dynamic Method Invocation is disabled by default, so you need to enable it: struts.enable.DynamicMethodInvocation = true Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Why all this WARN on interceptor (and how to eliminate?)
I think it's unrelated to Struts, check that [1] [1] http://www.jboss.org/file-access/default/members/jbossejb3/freezone/docs/tutorial/1.0.0/html/EJB3_Interceptors.html Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: applicationresources.properties with utf-8 characters
What do you use to edit that file? Eclipse? There is plugin which will convert in fly characters to UTF-8 entities, Resource Bundle Editor or something. IntelliJ IDEA has built-in such option, just select it in Settings. Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Rita Rudner - I was a vegetarian until I started leaning toward the sunlight. - http://www.brainyquote.com/quotes/authors/r/rita_rudner.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [s2] Custom field validator with params containing OGNL expression
2009/7/7 Cristian Peraferrer corellia...@gmail.com: field-validator type=usernameavailable param name=userId${enterprise.enterpriseId}/param messageThis username is already taken./message /field-validator Do you have a getter called getEnteriprise() on an action? Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Mary Pickford - Adding sound to movies would be like putting lipstick on the Venus de Milo. - http://www.brainyquote.com/quotes/authors/m/mary_pickford.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: exceute() method in action class didn't called
2009/7/9 jayadevan jayadeva...@gmail.com: action-mappings action path=/helloWorld type=examples.firstStruct.helloWorld.HelloWorldAction name= Add name = HelloWorldFromBean Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Jack Benny - I don't deserve this award, but I have arthritis and I don't deserve that either. - http://www.brainyquote.com/quotes/authors/j/jack_benny.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: exceute() method in action class didn't called
Ok, but it's truncated, could you send more? Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Eddie Izzard - Never put a sock in a toaster. - http://www.brainyquote.com/quotes/authors/e/eddie_izzard.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: validwhen question
2009/7/13 Odelya YomTov ode...@jpost.com: But I don't see that it works! Why? Did you try like this? var-valuedata.category != \'empty\'/var-value Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: exception :java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet
2009/7/14 jayadevan jayadeva...@gmail.com: i am using struts 1 in my project . when i sart tomcat i got the following exception Jul 14, 2009 10:39:05 AM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Allocate exception for servlet action java.lang.NoClassDefFoundError: org/apache/commons/digester/RuleSet at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructor0(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) I don't see any connection with Struts in logs, could you remove that application and start Tomcat again? You're probably missing Digester library needed by Tomcat. Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Timothy Leary - Women who seek to be equal with men lack ambition. - http://www.brainyquote.com/quotes/authors/t/timothy_leary.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: org.apache.jasper.JasperException: The Struts dispatcher cannot be found.
Could you show your web.xml? Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Lenny Bruce - Communism is like one big phone company. - http://www.brainyquote.com/quotes/authors/l/lenny_bruce.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: org.apache.jasper.JasperException: The Struts dispatcher cannot be found.
It's ok, when you got that exception? What url were you entering in web browser? It looks like you went directly to jsp. Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Timothy Leary - Women who seek to be equal with men lack ambition. - http://www.brainyquote.com/quotes/authors/t/timothy_leary.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: org.apache.jasper.JasperException: The Struts dispatcher cannot be found.
2009/7/16 jayadevan jayadeva...@gmail.com: my index.jsp like this Is it the same file as in web.xml for welcome-file? where i place struts-tags.xml ? It's already in struts2-*.jar Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Joan Crawford - I, Joan Crawford, I believe in the dollar. Everything I earn, I spend. - http://www.brainyquote.com/quotes/authors/j/joan_crawford.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: org.apache.jasper.JasperException: The Struts dispatcher cannot be found.
2009/7/16 jayadevan jayadeva...@gmail.com: i tried both way directly and step by step You should avoid directly accessing jsp files, always go through actions. Especially when you are using Struts tags inside. Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Ogden Nash - The trouble with a kitten is that when it grows up, it's always a cat. - http://www.brainyquote.com/quotes/authors/o/ogden_nash.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: org.apache.jasper.JasperException: The Struts dispatcher cannot be found.
2009/7/16 jayadevan jayadeva...@gmail.com: u said struts-tags.xml is already in struts2-*.jar so add struts2-core.jar into class path and try to exccute then i got the following exception org.apache.jasper.JasperException: File /struts-tags.tld not found struts-tags.tld is for sure in struts2-core.jar, could list what other libs do you have in WEB-INF/lib of that application? Regards -- Lukasz http://www.lenart.org.pl/ http://dailylog.lenart.org.pl/ Stephen Leacock - I detest life-insurance agents: they always argue that I shall some day die, which is not so. - http://www.brainyquote.com/quotes/authors/s/stephen_leacock.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org