Re: Struts2 Portlet - pre/post render, pre/post action hooks?

2008-08-14 Thread Nils-Helge Garli Hegvik
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

Validation referencing problem, using annotations

2008-08-14 Thread dug .
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

RE: [S2]Validation with xml file not working

2008-08-14 Thread Dave Newton
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 > > >

RE: [S2]Validation with xml file not working

2008-08-14 Thread Martin Gainty
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

Re: [S2]Validation with xml file not working

2008-08-14 Thread Stephan Schröder
> 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

Re: Problem with Struts2 tag

2008-08-14 Thread Musachy Barroso
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). >> >>

Re: Problem with Struts2 tag

2008-08-14 Thread dynamicd
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. >

Re: Multiple Images / InputStream

2008-08-14 Thread dynamicd
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

Re: [S2] Option for mandatory choice

2008-08-14 Thread Laurie Harper
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

Re: how to disable the back button in Struts 1.2.3 ?

2008-08-14 Thread Laurie Harper
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

Re: Multiple Images / InputStream

2008-08-14 Thread Laurie Harper
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

Re: Prepare method being invoked twice

2008-08-14 Thread Laurie Harper
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:

Re: Prepare method being invoked twice

2008-08-14 Thread Kibo
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:

Re: [S2] Result

2008-08-14 Thread stanlick
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: > >

servlet-mapping to action servlet

2008-08-14 Thread temp temp
how can map all request to struts action servlet ? will this work /*

Re: [S2]Validation with xml file not working

2008-08-14 Thread Ylva Degerfeldt
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

Re: [S2]Validation with xml file not working

2008-08-14 Thread André Cedik | GDG
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

Re: [S2]Validation with xml file not working

2008-08-14 Thread Lukasz Lenart
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/ --

[S2]Validation with xml file not working

2008-08-14 Thread Ylva Degerfeldt
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

Re: Struts Authorization Interceptor

2008-08-14 Thread Frans Thamura
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

Struts Authorization Interceptor

2008-08-14 Thread Relph,Brian
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

Problem with Struts2 tag

2008-08-14 Thread rajanikanth786
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

[S2] Option for mandatory choice

2008-08-14 Thread Milan Milanovic
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

Re: Hibernate UserType and OGNL

2008-08-14 Thread Kropp, Henning
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

how to disable the back button in Struts 1.2.3 ?

2008-08-14 Thread Fernandes Celinio SGCF
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

Could not find property [struts.valueStack] using struts 2.1.2

2008-08-14 Thread Stephan Schröder
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

[S2] Result

2008-08-14 Thread stanlick
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

RE: Hibernate UserType and OGNL

2008-08-14 Thread Martin Gainty
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

Re: Struts + redirect=true + Apache Proxy Url Rewriting Problem

2008-08-14 Thread Miguel Cohnen
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

Struts2 Portlet - pre/post render, pre/post action hooks?

2008-08-14 Thread Torsten Krah
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ä

Re: Hibernate UserType and OGNL

2008-08-14 Thread Lukasz Lenart
> ( 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

Hibernate UserType and OGNL

2008-08-14 Thread Kropp, Henning
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

Multiple Images / InputStream

2008-08-14 Thread Pascal_
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

Re: Struts + redirect=true + Apache Proxy Url Rewriting Problem

2008-08-14 Thread duschhaube
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

Re: Prepare method being invoked twice

2008-08-14 Thread Dave Newton
--- 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

Re: problem with url tag when using portlets

2008-08-14 Thread Nils-Helge Garli Hegvik
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

problem with url tag when using portlets

2008-08-14 Thread cvx22
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}'

Re: Prepare method being invoked twice

2008-08-14 Thread Dave Newton
--- 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

Re: Prepare method being invoked twice

2008-08-14 Thread Lukasz Lenart
> 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/ -

Re: Prepare method being invoked twice

2008-08-14 Thread Jayeshpowar
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

Re: Prepare method being invoked twice

2008-08-14 Thread Lukasz Lenart
> 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

Prepare method being invoked twice

2008-08-14 Thread Jayeshpowar
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

Re: Acces Control Within Struts2

2008-08-14 Thread Frans Thamura
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

Struts + redirect=true + Apache Proxy Url Rewriting Problem

2008-08-14 Thread Miguel Cohnen
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