Re: URL mapping in Struts 2

2008-08-14 Thread Kibo
Hi XML You can write your own ActionMapper. Look: http://struts.apache.org/2.x/docs/actionmapper.html I used debuger and I watched DefaultActionMapper. It help me. Jeromy Evans - Blue Sky Minds wrote: XML User wrote: Hi, How can I implement the URL mapping so that our URL will

Acces Control Within Struts2

2008-08-14 Thread tom tom
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 the System the UI will be presented based on these configurations. What I

Problems with sx tags

2008-08-14 Thread oscar perez
Hi there, I've been using sx tags for a while now and I still think they are very nice and simple to use, however I found some critical problems which make me move from them. One of the problems is that if in the returned AJAX content is included any sx tag then if there is any javascript in the

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

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 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

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 they

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 to the

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 prepareYourMethod() Regards -- Lukasz http://www.lenart.org.pl/

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

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% [..] s:iterator value=%{menu} lt;a href=s:url

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 like

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 prepareYourMethod() IMO it's preferable to simply not implement prepare() rather than leave it blank (which is misleading). Configuring a

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

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

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

Re: Hibernate UserType and OGNL

2008-08-14 Thread Lukasz Lenart
( also tried: s:textfield 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

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

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. see this

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

[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();

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

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: script language=JavaScript window.history.forward(1); /script Is there a way to disable the back button in Struts ? Thanks = Ce message et toutes les

Re: Hibernate UserType and OGNL

2008-08-14 Thread Kropp, Henning
Lukasz Lenart schrieb: ( also tried: s:textfield 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;

[S2] Option for mandatory choice

2008-08-14 Thread Milan Milanovic
Hi, I have class structure as follows: class Store { ListFruit 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

Problem with Struts2 tag

2008-08-14 Thread rajanikanth786
Hi, In sx:autocompleter tag in struts2, i am unable to call any javascript event(functions). for example, sx:autocompleter list=practiceList name=emailList onclick =getData();/ and in the getData() function i am just checking with one alert message. I want to know

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

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 anyone had

[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 file

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/

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

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

servlet-mapping to action servlet

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

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:

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: struts package name=manager namespace=/ extends=struts-default

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: struts package name=manager namespace=/

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

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. script language=JavaScript window.history.forward(1); /script Is there a way to disable the back button

Re: [S2] Option for mandatory choice

2008-08-14 Thread Laurie Harper
Milan Milanovic wrote: Hi, I have class structure as follows: class Store { ListFruit 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

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 s:url id=imageUr1l value=/Something/displayExerciceImageAction.action?position=One for the next image s:url id=imageUrl2 value=/Something/displayExerciceImageAction.action?position=Two etc..

Re: Problem with Struts2 tag

2008-08-14 Thread dynamicd
have u tried sx:autocompleter list=practiceList name=emailList onclick =javascript:getData();/ rajanikanth786 wrote: Hi, In sx:autocompleter tag in struts2, i am unable to call any javascript event(functions). for example, sx:autocompleter list=practiceList

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 sx:autocompleter list=practiceList name=emailList onclick =javascript:getData();/ rajanikanth786 wrote: Hi, In sx:autocompleter tag in struts2, i am unable to

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

RE: [S2]Validation with xml file not working

2008-08-14 Thread Martin Gainty
yes .. vanilla config from struts-default.xml !-- Sample validation and workflow stack -- interceptor-stack name=validationWorkflowStack interceptor-ref name=basicStack/ interceptor-ref name=validation/ interceptor-ref

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 !-- Sample

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