I guess that depends on what you're trying to achieve. Interceptors
are typically used for before/after functionality.
Nils-H
On Thu, Aug 14, 2008 at 2:41 PM, Torsten Krah
<[EMAIL PROTECTED]> wrote:
> Hi.
> I am wondering if it is possible to hook into the render and action phase of
> the portlet
Hi guys
I'm close to finishing my 1st project with struts2, which I'm quite excited
about. I've gotten around to validation (!).
I'm having some issues getting validation to work on one of my actions. I
can't reference the variables from the web page in order to validate them.
I've named the varia
I think he was asking the original poster if *his* stack included those
interceptors in the correct order, since it's his validation that isn't working
properly.
Dave
--- On Thu, 8/14/08, Martin Gainty <[EMAIL PROTECTED]> wrote:
> yes .. vanilla config from struts-default.xml
>
>
>
yes .. vanilla config from struts-default.xml
HTH
Martin
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official
> What could it be?
i don't know which interceptors are on your default stack. Does 'workflow' come
after 'validation'?
/Stephan
Original-Nachricht
> Datum: Thu, 14 Aug 2008 18:20:33 +0200
> Von: "Ylva Degerfeldt" <[EMAIL PROTECTED]>
> An: "Struts Users Mailing List"
> Betref
Try to use the topics instead, check the documentation.
On 8/14/08, dynamicd <[EMAIL PROTECTED]> wrote:
>
> have u tried
> ="javascript:getData();"/>
>
>
>
>
> rajanikanth786 wrote:
>>
>>
>> Hi,
>>
>>
>>
>>
>>
>> In tag in struts2, i am unable to call any javascript
>> event(functions).
>>
>>
have u tried
rajanikanth786 wrote:
>
>
> Hi,
>
>
>
>
>
> In tag in struts2, i am unable to call any javascript
> event(functions).
>
>
>
>
>
> for example,
>
>
> ="getData();"/>
>
>
>
>
>
>
> and in the getData() function i am just checking with one alert message.
>
Might be a caching issue
in the action pass something random as a param and see if it works like
for the next image
etc..
Pascal_ wrote:
>
> I'm using Struts 2.0.11 release.
>
> Within my JSP page, I'm displaying a list of elements which all have an
> image. Those images are displa
Milan Milanovic wrote:
Hi,
I have class structure as follows:
class Store {
List fruits;
Fruit choosenFruit;
}
So, I need in my jsp to represent fruits, but one of those fruits must be
choosen any time (in choosenFruit object, which select one Fruit object from
fruits list) during user i
Fernandes Celinio SGCF wrote:
Hi,
I want to forbid the user to go back.
Javascript does not work in actions:
Well, obviously; Javascript runs on the client, actions run on the server.
window.history.forward(1);
Is there a way to disable the back button in Struts ?
Thanks
That code sh
Pascal_ wrote:
I'm using Struts 2.0.11 release.
Within my JSP page, I'm displaying a list of elements which all have an
image. Those images are displayed using an action with stream result.
In Firefox, everything works fine, in IE 7.0, all images shown are the same,
I didn't have a chance to tak
Kibo wrote:
Hi
When you see struts-default.xml, you find out that the
paramsPrepareParamsStack call the interceptor params twice.
You can set up your struts-default.xml or in struts.xml define your own
modified interceptor stack:
Hi
When you see struts-default.xml, you find out that the
paramsPrepareParamsStack call the interceptor params twice.
You can set up your struts-default.xml or in struts.xml define your own
modified interceptor stack:
Worked fine using dispatcher.forward(request, response);
On Thu, Aug 14, 2008 at 8:23 AM, <[EMAIL PROTECTED]> wrote:
> I am trying to retrofit the Ajax JSP Tag Library server side *servlet *code
> to fit the S2 lifecycle. I have a particular situation where my custom
> result works if I:
>
>
how can map all request to struts action servlet ?
will this work
/*
Lukasz, I'm not sure how to check the deployment but I was thinking
that too. (I'm using NetBeans 5.5.1 and Sun App. server.)
André, it's funny you should mention that because I just changed the
name From .-validation.xml to -validations.xml because they
must have misspelled it in one plac
Maybe it's just because of the misspelling.
If you'd like to do validation this way,
your xml-file should be named
"NameAndCvAction-validation.xml" without
the "s" at the end.
Ylva Degerfeldt wrote:
> Hi everyone,
>
> I'm trying to use the Validation framework by creating a file called
> NameAndC
Did you check also the deployment, on the server? Eclipse will not
copy other files then Java classes when you will deploy. Check if xml
file is in the same package after deploy to the server.
Regards
--
Lukasz
http://www.lenart.org.pl/
--
Hi everyone,
I'm trying to use the Validation framework by creating a file called
NameAndCvAction-validations.xml, for my action "NameAndCvAction", but
it's not working the way it should.
I've stepped through the code and it seems that the validations that
should have been made through the xml fil
On Thu, Aug 14, 2008 at 10:38 PM, Relph,Brian <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I have recently integrated my struts2 apps with spring security for
> authentication. We use an implementation CAS for single-sign-in/out. I am
> now looking to add authorization, and I was wondering if anyo
Hello,
I have recently integrated my struts2 apps with spring security for
authentication. We use an implementation CAS for single-sign-in/out. I am now
looking to add authorization, and I was wondering if anyone had implemented an
authorization interceptor with spring-security, and how tha
Hi,
In tag in struts2, i am unable to call any javascript
event(functions).
for example,
and in the getData() function i am just checking with one alert message.
I want to know whether any javascript function we can use for
.
Thanks & Regards,
RajaniKanth Te
Hi,
I have class structure as follows:
class Store {
List fruits;
Fruit choosenFruit;
}
So, I need in my jsp to represent fruits, but one of those fruits must be
choosen any time (in choosenFruit object, which select one Fruit object from
fruits list) during user input, e.g. when first Fr
Lukasz Lenart schrieb:
( also tried: key="bid.amount.amount" /> )
This is correct
public Monetary getAmount() { return amount; }
and Monetary beeing:
public class Monetary implements Serializable{
private final BigDecimal amount;
private final Currency currency;
public Moneta
Hi,
I want to forbid the user to go back.
Javascript does not work in actions:
window.history.forward(1);
Is there a way to disable the back button in Struts ?
Thanks
=
Ce message et toutes les pieces jointes (ci-apres le "message
hi,
this is my first post to the mailing list so i hope this is the right
place/email address.
I wrote a 'hello world'-application using struts 2.1.2 using freemarker-result.
The application works fine but the following warnings are displayed:
INFO: Server startup in 757 ms
14.08.2008 15:12:34
I am trying to retrofit the Ajax JSP Tag Library server side *servlet *code
to fit the S2 lifecycle. I have a particular situation where my custom
result works if I:
PrintWriter pw = response.getWriter();
pw.write(request.getParameter(blah, blah, blah);
pw.close();
but
Lukasz-
relvant doc located at
http://www.docjar.com/docs/api/com/opensymphony/xwork2/conversion/impl/InstantiatingNullHandler.html
what is the value of property named ReflectionContextState#CREATE_NULL_OBJECTS
?
so coding the constructor fixes the problem in which case your Null object is a
simp
It worked like a charm! You just need to add a special connector that handle
proxy requests like explained in the link below.
Thank you very very much!
On Thu, Aug 14, 2008 at 2:08 PM, duschhaube <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I think you can handle this by the tomcat configuration.
>
> se
Hi.
I am wondering if it is possible to hook into the render and action phase of
the portlet execution?
If there is not yet such a possibility, where to look for to do this
(something like extending dispatcher portlet ... anything else).
--
Bitte senden Sie mir keine Word- oder PowerPoint-Anhä
> ( also tried: key="bid.amount.amount" /> )
This is correct
> public Monetary getAmount() { return amount; }
>
> and Monetary beeing:
> public class Monetary implements Serializable{
> private final BigDecimal amount;
> private final Currency currency;
>
> public Monetary(BigDecimal amoun
Hi,
I am trying to implement a hibernate UserType for all the monetary
amounts in my application. I follow the example given in "Manning - Java
Persistence with Hibernate" Chapter 5.3 .
I am having difficulties to set and retrieve the value from a jsp due to
a lack of understanding how this is
I'm using Struts 2.0.11 release.
Within my JSP page, I'm displaying a list of elements which all have an
image. Those images are displayed using an action with stream result.
In Firefox, everything works fine, in IE 7.0, all images shown are the same,
I didn't have a chance to take a look with IE
Hi,
I think you can handle this by the tomcat configuration.
see this link for instructions:
http://tomcat.apache.org/tomcat-6.0-doc/proxy-howto.html
but i have not test it myself.
Miguel Cohnen schrieb:
Hi Everybody,
First I wanted to say hello to everybody here, as this is my first mail i
--- On Thu, 8/14/08, Lukasz Lenart wrote:
> Just leave prepare() empty (you can also setup interceptor to don't
> call prepare() method) and implement prepare()
IMO it's preferable to simply not implement prepare() rather than leave it
blank (which is misleading).
Configuring a Preparable actio
You're right, that is indeed a missing feature. Please register a JIRA
issue for this.
Nils-H
On Thu, Aug 14, 2008 at 1:29 PM, cvx22 <[EMAIL PROTECTED]> wrote:
>
> hi all,
> i'm using struts 2.0.11.2 with portlets (Apache Pluto 1.1.5).
>
> I have problem with struts url tag. I have something li
hi all,
i'm using struts 2.0.11.2 with portlets (Apache Pluto 1.1.5).
I have problem with struts url tag. I have something like this:
-
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags"%>
[..]
link
[..]
-
where '%{url}'
--- On Thu, 8/14/08, Jayeshpowar wrote:
> Thanks Lukasz for quick reply. But the action class that has
> the prepare method has four methods.
The salient point was that prepare() will be called before any method in the
class, regardless of how many methods the class has.
If you're calling a sing
> Thanks Lukasz for quick reply.But the action class that has the prepare
> method has four methods .
Just leave prepare() empty (you can also setup interceptor to don't
call prepare() method) and implement prepare()
Regards
--
Lukasz
http://www.lenart.org.pl/
-
Thanks Lukasz for quick reply.But the action class that has the prepare
method has four methods .
Lukasz Lenart wrote:
>
>> I have an action class which implements preparable . It works fine but i
>> noticed that the prepare method inside the action class gets invoked
>> twice
>> before getting
> I have an action class which implements preparable . It works fine but i
> noticed that the prepare method inside the action class gets invoked twice
> before getting to the intended method.In first invocation the variables
> inside the action class are all null , However in second invocation the
Hi,
I have an action class which implements preparable . It works fine but i
noticed that the prepare method inside the action class gets invoked twice
before getting to the intended method.In first invocation the variables
inside the action class are all null , However in second invocation they a
On Thu, Aug 14, 2008 at 1:56 PM, tom tom <[EMAIL PROTECTED]> wrote:
> Hi,
> We are using struts2 2.0.6 and now we have a requirement to have some Access
> Control into it,
>
> That is we got some functions points and each ROLE got different access rigts
> against each function, if someone login to
Hi Everybody,
First I wanted to say hello to everybody here, as this is my first mail in
the list. I also wanted to apologize if my english is not good enough, but
i'll do my best!
This is the problem I am having:
I am building an application using tomcat 5.5 and struts. Let's say that the
base
44 matches
Mail list logo