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
Has anyone use the validation framework of struts 2.1.6??
??
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个字符之间
密码必填!
密码只能是
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! *
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
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
>
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
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
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
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
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
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
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
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,
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
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
___
>
> 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
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
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
19 matches
Mail list logo