Struts access static list

2009-04-12 Thread Baran
Hi Guys, This is about implementing reusability in the actions. I am struggling to identify the ways how we can share some comming functionality between different actions. Lets say I got a list of users i need to use as a combobox list at multiple pages. Right now I have to push the code in every

hi,guys! I wonder the validation framework is ok in the Struts 2.1.6 .

2009-04-12 Thread 白鹏
Has anyone use the validation framework of struts 2.1.6?? ??

Re: [Help] I cannot make the Validation in struts 2.0 works.....

2009-04-12 Thread 白鹏
And this is my *LoginAction-validation.xml: {I check the App folders ,the xml and LoginAction.class are in the same folder.}* http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";> 用户名必填! 用户名只能是字母和数字,且长度在4到25个字符之间 密码必填! 密码只能是

[Help] I cannot make the Validation in struts 2.0 works.....

2009-04-12 Thread 白鹏
Hello , the main codes in jsp is: *log.jsp * 用户名: 密码: 验证码: 验证码如图: 看不清? 单击此处刷新 "/> *The returned html file contains:* but *There isn't the folder 'struts' in my App /LearnDataProject .* ** *Why this happens??? * *Thanks for your help! *

XML RPC @ S2

2009-04-12 Thread Frans Thamura
hi all i just trying XMLRPC fom Apache, and run welll, and i successfully create XML from XMLplugins, but still dunno to implement the response xml so we can make S2 as XML RPC implementaiton anyone can shar eexperience? -- -- Frans Thamura Meruvian. Java and Enterprise OSS Mobile: +62 855 7

Re: Struts and EJB 3

2009-04-12 Thread Stefano Tranquillini
there's a class called org.apache.struts2.dispatcher.ServletDispatcherResult inside core 2.1.6. On Sun, Apr 12, 2009 at 18:36, Martin Gainty wrote: > > org.apache.struts2.dispatcher.ServletDispatcherResult should be in > struts2-core-2.1.2.jar > ? > Martin >

RE: Struts and EJB 3

2009-04-12 Thread Martin Gainty
org.apache.struts2.dispatcher.ServletDispatcherResult should be in struts2-core-2.1.2.jar ? Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité This message is confidential. If you shou

Re: struts 2, implements Action / extend ActionSupport

2009-04-12 Thread Dave Newton
Martin Gainty wrote: assuming you are using Actions annotation to define multiple action methods within a single action class? @Action("/different/url") http://cwiki.apache.org/WW/convention-plugin.html How does this differentiate between implementing Action or extending ActionSupport? Da

Re: struts 2, implements Action / extend ActionSupport

2009-04-12 Thread Dave Newton
john lee wrote: i am aware that in struts 2, when define an action, it could be public class XXX implement Action or public class XXX extends ActionSupport what is the difference b/w above two? in other words, in what kind of scenario, pick which one? If you want validation or I1

Re: struts 2

2009-04-12 Thread Dave Newton
Martin Gainty wrote: IOC Container manages the location,creation and instantiation of framework bean http://struts.apache.org/2.x/docs/spring-plugin.html I would suggest configuring Spring IOC Container struts.objectFactory.spring.autoWire to either name,type,auto, or constructor I'm not sur

Re: struts 2

2009-04-12 Thread Dave Newton
john lee wrote: in strut 1.X, . search result not exist but, in struts 2, how can i use the same method to check > words, i did not find equivalent struts 1.x at above. will check for a null in the action property. If you are the type that

Re: Struts and EJB 3

2009-04-12 Thread Stefano Tranquillini
this is the error: 2009-04-12 18:00:06,562 WARN [com.opensymphony.xwork2.config.providers.XmlConfigurationProvider] (HDScanner) Result class [org.apache.struts2.views.tiles.TilesResult] doesn't exist (NoClassDefFoundError) at result-type - vfszip:/C:/Documents%20and%20Settings/Administrator/Deskto

RE: struts 2, implements Action / extend ActionSupport

2009-04-12 Thread Martin Gainty
assuming you are using Actions annotation to define multiple action methods within a single action class? @Action("/different/url") http://cwiki.apache.org/WW/convention-plugin.html ? Martin __ Disclaimer and Confidentiality/Verzicht und Vertraulic

Re: Struts 2.1.6 conversion problem with java.util.Date

2009-04-12 Thread lewy87
For anyone looking for help related to this problem: Date must be in format "dd.mm." and you don't even need additional field in action as well as converter class. Everything is mapped straight forward onto bean model. I don't know why, but it's compulsory in Struts2 framework. Quite weird,

RE: struts 2

2009-04-12 Thread john lee
tks for your feedback,   as your suggest/my understanding, the default struts2 package does not have equivalent wrote: From: Martin Gainty Subject: RE: struts 2 Date: Sunday, April 12, 2009, 8:59 AM IOC Container manages the location,creation and instantiation of framework bean http://st

RE: struts 2

2009-04-12 Thread Martin Gainty
IOC Container manages the location,creation and instantiation of framework bean http://struts.apache.org/2.x/docs/spring-plugin.html I would suggest configuring Spring IOC Container struts.objectFactory.spring.autoWire to either name,type,auto, or constructor Martin ___

Re: struts 2, implements Action / extend ActionSupport

2009-04-12 Thread Steven Yang
> > basically ActionSupport gives you some default implemented methods to make > your life easier. if you dont need them you can simply implement Action But for Struts2 you dont even HAVE to implement the Action interface, as long as you have a method called "execute" or any named method that your

URGENT : Unable to retain request Attributes after the validator framework thraws an Error...

2009-04-12 Thread JigarGohil
Hi, I am using struts with DynaAction framework The flow of execution after the page displayed is as follows... WEB (jsp) ===> StrutsController ===> ValidatorFramwork ===( if validation[server-side] fails )> Back to jsp Before Loading a jsp we are fetching some Lists(for storing it into

Names of Map Parameters in JSP

2009-04-12 Thread Peter Kelley
I'm sure that this question has been answered before but I've googled and searched the list and can't find the answer. If I have a Map on my action and I want to construct it using parameters from my JSP, what is the format of the parameter names in the JSP to correctly construct the map. I'm hap