We have found the interceptors hard to use in zero configuration as well.
The problem is, the @ParentPackage can't be configured per action based,
it can only be applied at package level. (although it's configuration at
Action class)
In other words, once you have set @ParentPackage more than once
Isn't it great when you can exactly what you need with exactly one message
for exactly $0.0? Priceless!
On Mon, Mar 10, 2008 at 10:00 AM, GF <[EMAIL PROTECTED]> wrote:
> Thank you
> It's exactly what I was looking for!
>
> On Mon, Mar 10, 2008 at 3:34 PM, Lukasz Lenart <
> [EMAIL PROTECTED]>
> w
On Tue, Mar 11, 2008 at 7:10 AM, xianwinwin <[EMAIL PROTECTED]> wrote:
>
> assuming registration is composed of fname, lname, ss, dob and except dob
> all fields are mandatory.
>
> Question: how do I make sure those fields will be input? should I have
> something like:
>
> @RequiredStringValidator(
Hi there,
I would like to create a validation with annotation.
consider the following case:
@Validation
public class AddCaseAction
{
private Registration registration;
.
.
.
public String addNewRegistration()
{
//do something
return "succ
On Mon, 2008-03-10 at 14:59 -0700, Dave Newton wrote:
> --- "Kelly.Graus" <[EMAIL PROTECTED]> wrote:
> > Is it possible to specify more than one SUCCESS result for an action? For
> > example, when the user runs an action, it could prompt them to download a
> > file (using the stream result type),
--- "Kelly.Graus" <[EMAIL PROTECTED]> wrote:
> Is it possible to specify more than one SUCCESS result for an action? For
> example, when the user runs an action, it could prompt them to download a
> file (using the stream result type), and then redirect them to another
> page?
Names should be uni
Hello,
Is it possible to specify more than one SUCCESS result for an action? For
example, when the user runs an action, it could prompt them to download a
file (using the stream result type), and then redirect them to another page?
Thanks!
Kelly
--
View this message in context:
http://www.na
I had the same issue regarding Struts 2 validations and Hibernate/JPA flush.
My solution:
Write an XWork Interceptor that is placed right after the validation
interceptor on your stack. This interceptor checks the actionErrors and
fieldErrors and, if any of them is not empty, performs a Hibernate
Antonio,
Thanks for your help. For some reason, it didn't register to me that the
TILES_2_0_X branch would be the 2.0.6 branch... duh.
I downloaded the Tiles 2.0.X source and built the 2.0.6 snapshot.
It did not fix the IO Stream error previously reported, so I am unsure
if the issue is related
2008/3/10, Griffith, Michael * <[EMAIL PROTECTED]>:
> I checked out the current branch from the Tiles SVN repository:
> http://svn.apache.org/repos/asf/tiles/framework/trunk/ and built it.
> Version is 2.1.0-SNAPSHOT. This appears to be incompatible with the
> Struts2Tiles plugin?
It is incom
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hello y'all,
I'm facing a problem I cannot find a solution for, so I hope to get
one here:
When building a Project with parent entry
struts2-apps
org.apache.struts
2.0.11
build fails, because struts2-apps.2.0.11.pom contains entr
On Mon, Mar 10, 2008 at 11:33 AM, stanlick <[EMAIL PROTECTED]> wrote:
>
> I am working on a custom result type and a weird scenario.
>
> If I issue vs.findValue("employees");
>
> the getEmployees() is called on my action just fine.
>
> However issuing vs.findValue("employee('e9874v')");
>
> fo
I am working on a custom result type and a weird scenario.
If I issue vs.findValue("employees");
the getEmployees() is called on my action just fine.
However issuing vs.findValue("employee('e9874v')");
for a specific employee, I get a null value!
If I change th syntax to vs.findValue("getEm
Hi all,
I checked out the current branch from the Tiles SVN repository:
http://svn.apache.org/repos/asf/tiles/framework/trunk/ and built it.
Version is 2.1.0-SNAPSHOT. This appears to be incompatible with the
Struts2Tiles plugin? Has anyone run into this? The error is:
Exception sending contex
* - In 2.0+ isn't the default scope singleton?*
Yes, the deafault scope is singleton (Only one instance for the class ).
You can change the scope fo your beans to request or session but also you
nedd to add some configuration to your web.xml.
Are you using ModelDriven interface?.
On Mon, Mar 10
--- Rushikesh Thakkar <[EMAIL PROTECTED]> wrote:
> Not doing much in the applicationContext.xml file:
>
>
>
class="no.bbs.webservice.mapp.client.web.action.PutArchiveObject">
>
>
- Is that an action definition?
- What version of Spring?
- In 2.0+ isn't the default scop
Not doing much in the applicationContext.xml file:
On Mon, Mar 10, 2008 at 5:50 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Rushikesh Thakkar <[EMAIL PROTECTED]> wrote:
> > Yes, I am using Spring ObjectFactory.
>
> Okay.
>
> Are you configuring your actions in the
--- Rushikesh Thakkar <[EMAIL PROTECTED]> wrote:
> Yes, I am using Spring ObjectFactory.
Okay.
Are you configuring your actions in the Spring config file? If so, *please*
include how they're being configured.
Dave
-
To unsubsc
sorry, missed out the second question:
I mean, I have instantiated Action properties while declaring them.
public class PutArchiveObject extends ActionSupport implements SessionAware
{
private Map session;
private Head head = *new Head();*
private String parentObjectRef *= new String
Yes, I am using Spring ObjectFactory.
On Mon, Mar 10, 2008 at 5:13 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- Rushikesh Thakkar <[EMAIL PROTECTED]> wrote:
> > Can anyone tell me how long is the value of Action Property held on the
> > ValueStack. I am asking this b'coz I am facing a problem
--- Rushikesh Thakkar <[EMAIL PROTECTED]> wrote:
> Can anyone tell me how long is the value of Action Property held on the
> ValueStack. I am asking this b'coz I am facing a problem:
Normally an action is created for each request and pushed onto the stack.
Without knowing more about how your appl
--- Sivaswamynatha K <[EMAIL PROTECTED]> wrote:
> We are using struts 1.2.9 and springs. I have one issue. Action messages
> (some error message and information to the user) of one user is
> available to another user who is also working on the application. He may
> do some other action.
What's the
--- [EMAIL PROTECTED] wrote:
> public_html / jsp / jsp_file.jsp
>
> and I want :
>
> public_html / jsp / a_folder / jsp_file.jsp
>
> But I'm not able to set the forward int the struts-config.xml file, I
> always get a 404 error, so the JSP file could not be found.
> I have tried with the contex
default scope you are using is short lived so implement the scope your
action needs with a scope interceptor
http://struts.apache.org/2.0.6/docs/scope-interceptor.html
and if you use a key param you will be able to access either Action
attribute via supplied 'key'
(provided you have setup the mutat
Thank you
It's exactly what I was looking for!
On Mon, Mar 10, 2008 at 3:34 PM, Lukasz Lenart <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> You can use global-results
> http://struts.apache.org/2.0.6/docs/result-configuration.html
>
Hi,
You can use global-results
http://struts.apache.org/2.0.6/docs/result-configuration.html
Regards
--
Lukasz
http://www.linkedin.com/in/lukaszlenart
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mai
oh..forgot...set its value to 'none'
Adrian Ost schrieb:
hi,
not sure if this is really what you're problem is about, but adding
the parameter "includeParams" to the struts url-tag solved my problem
of having the old value + my new value send on resubmitting.
greets,
adrian
Rushikesh Thakkar
I've an action like this:
...
/path/my.action
I would like that, when any action method in my application returns
"myResultName", a redirect to /path/my.action should be executed.
Any idea about doing this?
Thanks
hi,
not sure if this is really what you're problem is about, but adding the
parameter "includeParams" to the struts url-tag solved my problem of
having the old value + my new value send on resubmitting.
greets,
adrian
Rushikesh Thakkar schrieb:
Hi Group,
Can anyone tell me how long is the va
Yes,. WebWorks, Struts 2, and Struts 1 are community projects or open source
projects. JSF was developed by an expert group lead by Sun Microsystems
(under JSR-127) and available for anyone to use.
When you mention JSF it sounds to me that you are interested in better
understand how to render a p
Hi,
We are using struts 1.2.9 and springs. I have one issue. Action messages
(some error message and information to the user) of one user is
available to another user who is also working on the application. He may
do some other action.
Regards,
Siva
Regards,
K. Siva Swamynatha.
KAVNI
Hi Group,
Can anyone tell me how long is the value of Action Property held on the
ValueStack. I am asking this b'coz I am facing a problem:
Background:
My action has 4 members (and getter,setter for them). One of them is a POJO
with many properties. So my JSP has different fields for supplying va
i am using struts2 also, since webwork 2.x
but i can see, after joining struts, and struts become 2.0, the IDE still
dont develop the struts2 thing
is this mean after JSF, struts2 100% community project.
F
I have experience in developing web applications in Struts 1 and Struts 2.
IMHO, I think Struts 2 is an improved framework over Struts 1. Again, that
is just me.
You can take a look at the following available online resources to better
understand about Struts 2:
- http://struts.apache.org/2.x
Dave:
Thank you for your help and advice. That indeed was the problem. I changed
my app to use server side validation and now it is functioning as expected.
Best regards,
Chamara
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Friday, March 07, 2008 6:41 PM
To: Strut
Hi everybody,
I have a web application using Struts and Struts-Layout.
I have a lot of JSP in the root JSP directory : public_html/jsp , so I
want to order them by fonctionnality each in his own folder.
So actually I have :
public_html / jsp / jsp_file.jsp
and I want :
public_html / jsp / a_f
hii all
we know, all the vendor now try to develop a JSF, which i read in the
struts2 website, that JSF is better for bizz application, and struts for
web.
but for me both are web based ...
and JSF is tool driven so, for me, the vendor can sell 2 thing if they
have IDE, the api and the IDE,
37 matches
Mail list logo