RE: Adding additional parameters to struts 2 tags and accessing them in the ftl files

2007-08-30 Thread James Holmes
Take a look at this JIRA issue: https://issues.apache.org/struts/browse/WW-2132 I'm working on adding JSP 2.0's dynamic attributes functionality to Struts 2.1. James -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Thursday, August 30, 2007 1:34 AM To: Struts

AW: STRUTS 1.3.8 Validator ist destroying my SessionToken

2007-08-30 Thread Thomas.Zygadlewicz
Yes. Thats right. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Paul Benedict Gesendet: Mittwoch, 29. August 2007 23:05 An: Struts Users Mailing List Betreff: Re: STRUTS 1.3.8 Validator ist destroying my SessionToken Are you saying the

Re: Adding additional parameters to struts 2 tags and accessing them in the ftl files

2007-08-30 Thread Jeromy Evans
Excellent! Interesting history. Hopefully the resistance to dynamic attributes is now well overtaken by events. James Holmes wrote: Take a look at this JIRA issue: https://issues.apache.org/struts/browse/WW-2132 I'm working on adding JSP 2.0's dynamic attributes functionality to Struts

Re: use of s:head

2007-08-30 Thread Laurie Harper
Pedro Herrera wrote: What´s the meaning o s:head. In wich cases I use it ?? http://struts.apache.org/2.x/docs/head.html Basically, the tag will render appropriate HTML for the page's theme to include resources such as style sheets, javascript and do forth. The best way to see what it's

ww:select can't work with validation, please help

2007-08-30 Thread Coby
Hi, I got a strange validation problem with the list which I retrieved from an action: the following form works perfectly fine without using validation, s:form action=saveClub method=post s:textfield label=Club name name=club.clubName value=%{club.clubName}/s:textfield s:action

[OT] Re: Can anyone explain the leading r in OGNL list syntax?

2007-08-30 Thread Dave Newton
FYI, http://fmpp.sourceforge.net/freemarker/versions_2_3.html gotten by searching for freemarker +r prefix. Search for raw once you're there. d. --- Dave Newton [EMAIL PROTECTED] wrote: I'd probably try asking this on a FreeMarker list since the exception after removing the r came from

Enum in s:if

2007-08-30 Thread Genadii Ganebnyi
How to use enum correctly in s:if test statement. Currently I am doing: s:if test=searchType = @[EMAIL PROTECTED] where SearchType is enum, but this does not work :(

struts 2.1 release availlability

2007-08-30 Thread meissa . sakho
Hi all, Can someone knows when struts 2.1 version will be released. thank in advance. Meissa L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut etre tenu responsable de son contenu. Toute utilisation ou diffusion non autorisee est interdite. Si vous n'etes pas

Re: logic:present available in struts 2 ?

2007-08-30 Thread wild_oscar
I would also like to know how to achieve the same functionality in Struts2! Adrian Ost wrote: Hi all, can I still use the logic-taglib in struts 2? or is there any other way to ask for the correct role? logic:present role=someRole ... some context /logic thanks in

Question: i18n in struts 2 + velocity

2007-08-30 Thread little_fish
I'm trying struts 2, and using velocity 1.4 and velocity-tools 1.3 (for some cool stuff like struts-menu). i18n in struts 2 is quite simple and straight forward. I put struts.custom.i18n.resources = ... in struts.properties, and it worked perfectly. However, I couldn't figure out how to do i18n

Struts 2.0.9 windowState=maximized problem

2007-08-30 Thread David Tercero
Hi all, I've got a problem, and I really don't know how to solve it. I'm using Liferay Portal 4.2.2 and Struts 2.0.9 I've got 2 portlet in the window. The one above is showing a table of authors, and clicking one row the bottom portlet shows its detail. Inside the author's detail there's a

Re: Struts 2.0.9 windowState=maximized problem

2007-08-30 Thread Nils-Helge Garli
Hi! The use of maximize only changes the size of the window, it shouldn't really change the state of your application. The back button as you describe means restore the window size. It does not change the window content. If you want to override this, you should create your own back link, with

Re: some advanced questions in Struts2

2007-08-30 Thread Ted Husted
In Strut 2, calling any method on a class is directly supported. Essentially, execute is just the default. We can also specify another mapping or method to call from a button on a form, meaning that the same form can submit to different methods on the same class, or a different mapping. Struts 2

Dojo-In-Struts2-Problem: IE works FF not...

2007-08-30 Thread Marc Eckart
Hi, I have a struts div-Tag with: This refreshes a jsp when the refreshSelectedCustomer topic is published. If this happens the sessionContext Action is called (As far as I understand it) In the selectedCustomer.jsp I have a href where I call a javascript which publishes the topic as well as a

Struts 2 and continuations

2007-08-30 Thread Matt Reed
I am trying to use continuations with struts 2 on a weblogic server and so far as I can tell everything is set up properly, however, every time I try and access a page I get the following error: Root cause of ServletException. java.lang.NullPointerException at

Re: Validation chaining in struts2

2007-08-30 Thread Ted Husted
Struts 2 uses a hierarchical approach to validation which could be used to support a multi-page workflow. (Struts 1 simulates a hierarchy by using the page property on the ActionForm.) The validation follows the Java class, not the action mapping. If class2 extends class1, then when class2 is

s:form validate=true

2007-08-30 Thread Pavel Sapozhnikov
Hi I have a question about this s:form validate=true attribute. So when I put it in s:form it says its only useful with xhtml or ajax themes. Why. I read the documentation on that thing it says that this is only javascript thing. What I don't understand is that it still says to have xml file or

How to print from 1 to 10 with struts2 tags?

2007-08-30 Thread fergunet
Hi all! I need to paginate some things and it would be useful to have the number of the pages like that: [first/previous] 1,2,3,_4_, 5, 6 [next/last] The _4_ is the actual_page. Yeah, is like the display:table of displaytag but made by myself. I've the stuff between the [] made, and I only

Re: multi-page forms

2007-08-30 Thread Ted Husted
Struts 2 uses a hierarchical approach to validation which could be used to support a multi-page workflow. (Struts 1 simulates a hierarchy by using the page property on the ActionForm.) The validation follows the Java class, not the action mapping. If class2 extends class1, then when class2 is

Re: How to print from 1 to 10 with struts2 tags?

2007-08-30 Thread Venu Madhav
fergunet wrote: Hi all! I need to paginate some things and it would be useful to have the number of the pages like that: [first/previous] 1,2,3,_4_, 5, 6 [next/last] The _4_ is the actual_page. Yeah, is like the display:table of displaytag but made by myself. I've the stuff between the []

Re: struts 2.1 release availlability

2007-08-30 Thread Ted Husted
No one actually knows. Our releases are driven by peer-review and take an indeterminate amount of time. We may start rolling test distributions of Struts 2.1 soon, but it usually takes four to six of those before we have one ready to distribute to the general public, and we haven't even done one

Tiles2 first actual release

2007-08-30 Thread Pavel Sapozhnikov
Hi does anyone know as to when Tiles2 release will become available. I know there is beta right now but I was wondering as to first release. Thanks. -- Pavel Sapozhnikov xFact, Inc [EMAIL PROTECTED]

Re: Tiles2 first actual release

2007-08-30 Thread Antonio Petrelli
2007/8/30, Pavel Sapozhnikov [EMAIL PROTECTED]: Hi does anyone know as to when Tiles2 release will become available. I know there is beta right now but I was wondering as to first release. Thanks. This question should be definitely asked to Tiles 2 mailing list:

Re: Tiles2 first actual release

2007-08-30 Thread Pavel Sapozhnikov
I thought the 2 lists were shared. On 8/30/07, Antonio Petrelli [EMAIL PROTECTED] wrote: 2007/8/30, Pavel Sapozhnikov [EMAIL PROTECTED]: Hi does anyone know as to when Tiles2 release will become available. I know there is beta right now but I was wondering as to first release. Thanks.

Re: Tiles2 first actual release

2007-08-30 Thread Antonio Petrelli
I forgot to say it is the Tiles 2 USERS mailing list (just to be sure :-) ) Antonio 2007/8/30, Antonio Petrelli [EMAIL PROTECTED]: 2007/8/30, Pavel Sapozhnikov [EMAIL PROTECTED]: Hi does anyone know as to when Tiles2 release will become available. I know there is beta right now but I

Re: Tiles2 first actual release

2007-08-30 Thread Antonio Petrelli
2007/8/30, Pavel Sapozhnikov [EMAIL PROTECTED]: I thought the 2 lists were shared. Nope...

Re: How format a string when it is Displayed?

2007-08-30 Thread Josh Vickery
Oops, I missed that you are using Struts 1. I believe that you can use the format attribute of the bean:write tag: http://struts.apache.org/1.1/userGuide/struts-bean.html#write to specify a format string as described on: http://java.sun.com/j2se/1.4.2/docs/api/java/text/MessageFormat.html Josh

[S2] File Download Example in showcase doesn't work with contentType application/x-download using IE

2007-08-30 Thread Joe Lam
try to make a file download action without opening the file. I try the showcase file download example. change contentType to application/x-download in struts.xml lt;param name=contentTypegt;application/x-downloadlt;/paramgt; with firefox it works fine. with IE, it still open the gif in browser.

Problem in Parameter passing.

2007-08-30 Thread Subhani Shaik
Hi, I have a problem while passing some data from my JSP to Action action class. I have a JSP in which I have a text field. Whwn I submit the page, I need to get the text entered in the JSP into Action. I read in a article that if i implement ParameterAware interface to my action class and

Re: [S2] File Download Example in showcase doesn't work with contentType application/x-download using IE

2007-08-30 Thread Jeromy Evans
IE6 displays the image inline because it recognises the extension of the file in preference to the mime type. The stream result allows you to set the Content-Disposition header, as you have already done in your JSP code. param name=contentDispositionattachment; filename=${fileName}/param

Re: Dojo-In-Struts2-Problem: IE works FF not...

2007-08-30 Thread Musachy Barroso
Any idea what event is referring to? musachy On 8/30/07, Marc Eckart [EMAIL PROTECTED] wrote: Hi, I have a struts div-Tag with: This refreshes a jsp when the refreshSelectedCustomer topic is published. If this happens the sessionContext Action is called (As far as I understand it) In the

Re: Problem in Parameter passing.

2007-08-30 Thread chris . stewart
Shaik, Assuming you are using Struts1, you need to define your data in a struts ActionForm class. Make sure that the name of your variable is the same in the ActionForm as in the jsp control, and then you will be able to access it using the form object from within the execute method of your

Re: Dojo-In-Struts2-Problem: IE works FF not...

2007-08-30 Thread Marc Eckart
2007/8/30, Musachy Barroso [EMAIL PROTECTED]: Any idea what event is referring to? musachy No not really. How can I find out, which event is used? The dojo.js is not really human readable...

Iterating a collectionobject: changing values of object-attributes

2007-08-30 Thread Arno Claassen
Hi there! I'm new to struts and need some help, hope anybody has a clue: I've got an object DayTimeLocation with strings day, time and location. In my form I create a collection with initially one of these objects (more to follow): public class DayTimeLocationForm extends ActionForm{

Re: [S2] File Download Example in showcase doesn't work with contentType application/x-download using IE

2007-08-30 Thread Joe Lam
Thanks so much. was missing attachment; in param contentDisposition (both examples in showcase do not have this) regarding exception in jsp, I just put the streaming stuff to action (return null result). thats fine. Thank you very much. Jeromy Evans - Blue Sky Minds wrote: IE6 displays

How to access request session objects in jsp using struts2 tags

2007-08-30 Thread afp
Hi, I am trying to identify whether a button has been clicked or not in my jsp. The way I do this or is trying to do this is to access the request object and then check in that for the button name. The code is as shown below The button which was clicked is coded as shown below s:submit

Re: Dojo-In-Struts2-Problem: IE works FF not...

2007-08-30 Thread Musachy Barroso
Well, it is on search.js line 206 ;) musachy On 8/30/07, Marc Eckart [EMAIL PROTECTED] wrote: 2007/8/30, Musachy Barroso [EMAIL PROTECTED]: Any idea what event is referring to? musachy No not really. How can I find out, which event is used? The dojo.js is not really human

Re: s:form validate=true

2007-08-30 Thread j alex
if validate=true , js function (pure client side) onsubmit is invoked on the form in xhtml theme ; and in ajax theme it adds and onblur validate() to every field element and validates it using ajax. Both of these use the rules defined in your validation xml file. So setting validate=true is for

Re: Dojo-In-Struts2-Problem: IE works FF not...

2007-08-30 Thread Marc Eckart
2007/8/30, Musachy Barroso [EMAIL PROTECTED]: Well, it is on search.js line 206 ;) musachy Ah, sometimes I'm blind. Firebug hide this info and I didn't take a closer look at my pastet content :-) On line 206 is this: // prevent refreshSelectedCustomer AJAX requests, if IpNbr is empty

strange validation error : org.xml.sax.SAXParseException: Document is invalid: no grammar found.

2007-08-30 Thread Leonidas Papadakis
Greetings to all, i am trying to upgrade to struts2.09 but i am getting this error when an action has validation : 2007-08-30 17:55:23,062 [ERROR] util.DomHelper - Document is invalid: no grammar found. at (null:1:12) org.xml.sax.SAXParseException: Document is invalid: no grammar found.

Re: strange validation error : org.xml.sax.SAXParseException: Document is invalid: no grammar found.

2007-08-30 Thread Leonidas Papadakis
I know that i am replying to myself ;) but the solution is to add : !DOCTYPE validators PUBLIC -//OpenSymphony Group//XWork Validator Config 1.0//EN http://www.opensymphony.com/xwork/xwork-validator-config-1.0.dtd; to the top of validators.xml file. Leonidas Leonidas Papadakis wrote:

Re: Dojo-In-Struts2-Problem: IE works FF not...

2007-08-30 Thread Musachy Barroso
If you need to prevent the request you would need it. Topics have changed quite a bit between releases, if you are using 2.0.9, then the topic takes 3 parameters, and it is published before the request, after the request and when there is an error. http://struts.apache.org/2.x/docs/ajax-tags.html

Struts 2 Radio button - seperate value/label

2007-08-30 Thread Dean Pullen
Hi guys. I can't work out via the Struts 2 documentation how to make a radio button have a separate value and label from a given Map. I'm trying: s:radio list=%{options} name=questionOne theme=simple / Where 'options' is a HashMapInteger, String What I get out on the JSP is one

jsp including another jsp

2007-08-30 Thread nmall
Hi Folks We are using Struts 2.0.6. We have a header.jsp which is included in each of our jsp pages. The header is tied to an action class to retrieve a name etc to display ( which changes depending on the login). However, the problem we are having is the information retrieved in the

Re: jsp including another jsp

2007-08-30 Thread Dave Newton
--- nmall [EMAIL PROTECTED] wrote: We are using Struts 2.0.6. We have a header.jsp which is included in each of our jsp pages. The header is tied to an action class to retrieve a name etc to display (which changes depending on the login). How is it tied to an action class? How are you

RE: Struts 2 Radio button - seperate value/label

2007-08-30 Thread Dean Pullen
Well as usual, although I spent a couple of hours trying to get it work, as soon as I post to a mailing list I discover the answer So here is how I got it to work for future reference. Created an Object like so: public class RadioModel { private int name; private String

Re: How to access request session objects in jsp using struts2 tags

2007-08-30 Thread Chris Pratt
If you just need access to the Request Attributes, try implementing RequestAware in your action. If you need access to other, more Servlet specific, parts of the Request, you'll have tto implement ServletRequestAware. Similarly for Sessions, if you just need the attributes, implement

Re: How to access request session objects in jsp using struts2 tags

2007-08-30 Thread Dave Newton
On 8/30/07, afp wrote: I am trying to identify whether a button has been clicked or not in my **jsp**. Emphasis mine. The real question is why is that being done in the JSP directly from the request parameters when it would probably be better to set a flag based on whatever business logic

ActionRedirect with wrong absolute path

2007-08-30 Thread Hayrol Reyes Mejía
Hi guys, I'm having a problem with Struts 1.2 and a IAS environment, the problem is as follow: The application use Struts 1.2 and Hibernate 3 and OraclaeAS 10g (10.1.0.2). The Application works very well in the developer OAS, but doesn't in the production's OAS (two servers). The

Re: How to access request session objects in jsp using struts2 tags

2007-08-30 Thread Alvaro Sanchez-Mariscal
Use JSTL: ${requestContext.currentSection}. The same applies for session: ${sessionContext. ...} Alvaro. On 8/30/07, Chris Pratt [EMAIL PROTECTED] wrote: If you just need access to the Request Attributes, try implementing RequestAware in your action. If you need access to other, more

Struts 2.0.10 release availlability

2007-08-30 Thread Pedro Herrera
Hil, Can someone knows when struts 2.0.10 version will be released. Herrera -- View this message in context: http://www.nabble.com/Struts-2.0.10-release-availlability-tf4355471.html#a12411278 Sent from the Struts - User mailing list archive at Nabble.com.

Re: jsp including another jsp

2007-08-30 Thread nmall
header is simply a jsp page called header.jsp. There are tabs in the header page and that is being displayed correctly. This is our header page ( i have attached header1.jsp) %@ taglib prefix=s uri=/struts-tags % html head http://www.nabble.com/file/p12411297/header1.jsp header1.jsp

Re: How to access request session objects in jsp using struts2 tags

2007-08-30 Thread afp
I guess I could do that by having a flag for that in the action and then using that in the jsp but really tat doesn't quite answer the question. In general how do we access the request or session in the jsp? Will what I have given below work or what shud I be doing to make it work! Is it that I

Re: jsp including another jsp

2007-08-30 Thread Dave Newton
All you're doing is including a JSP via a standard JSP directive; no action is being executed. You might want to look at the s:action.../ tag [1]. d. [1] http://struts.apache.org/2.x/docs/action.html --- nmall [EMAIL PROTECTED] wrote: header is simply a jsp page called header.jsp. There

Re: How to access request session objects in jsp using struts2 tags

2007-08-30 Thread afp
By implementing the interfaces I will have access to Request and session objects in action class alone or also in the jsp's and that too in struts2 tags only and not using scriptlets? To make it more clear will s:property value=#request['abc']/ print xyz if the url for the page was

Re: jsp including another jsp

2007-08-30 Thread nmall
That's good, thanks. So I need specify the action tag inside the included file header.jsp?? Also, we want to simply store and get attributes from the session instead of executing an action each time for this header. We tried doing #session.blah but it doesn't work in the header, although it

Re: How to access request session objects in jsp using struts2 tags

2007-08-30 Thread Dave Newton
--- afp [EMAIL PROTECTED] wrote: [...] but really tat doesn't quite answer the question. In general how do we access the request or session in the jsp? http://struts.apache.org/2.x/docs/ognl.html Will what I have given below work Does it work? or what shud I be doing to make it work!

Re: How to access request session objects in jsp using struts2 tag

2007-08-30 Thread Chris Pratt
OK, sorry, I thought you were talking about the action. If you want at the attributes you can use ${requestScope.attributename} or ${sessionScope.attributename} and if you need to get at the actual accessors you can use ${pageContext.request.contextPath} (*Chris*) On 8/30/07, Dave Newton

struts 2.0.9 backward compatible with struts 1.x in respect to role on action mapping

2007-08-30 Thread akash agrawal
Hi, Is role attribute supported in Struts 2? It was supported in Struts version 1.x. ( I would assume that Struts 2 is backward compatible) If it is supported how to use it? Is there any example or documentation related to this. Thanks, -Akash -

Re: struts 2.0.9 backward compatible with struts 1.x in respect to role on action mapping

2007-08-30 Thread Dave Newton
--- akash agrawal wrote: (I would assume that Struts 2 is backward compatible) S2 is a *completely* different architecture and has (essentially) nothing to do with S1. d. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: struts 2.0.9 backward compatible with struts 1.x in respect to role on action mapping

2007-08-30 Thread Dave Newton
Whoops; wrong button. IIRC a simplistic roles interceptor [1] was added (possibly even at my request, but it was awhile ago) which had functionality similar to S1. d. [1] http://struts.apache.org/2.x/docs/roles-interceptor.html (Doesn't seem to be displaying properly at the moment, though?)

Re: How to access request session objects in jsp using struts2 tags

2007-08-30 Thread afp
[...] but really tat doesn't quite answer the question. In general how do we access the request or session in the jsp? http://struts.apache.org/2.x/docs/ognl.html Tried what is given there and it was not working which was why I put in the post :( Will what I have given below work

Can you specify the name of struts.xml for Struts2?

2007-08-30 Thread Lane, Ron
We're having a problem with Struts2 running under Jrun. The 'web application class loader' in Jrun is not finding struts.xml in WEB-INF/classes. We can put struts.xml in the overall classpath of the Java application server, but then that means only one per Java app server. 1. Has anyone else

Re: Struts and Weblogic 10.0 issue

2007-08-30 Thread Ashish Kulkarni
Hi This error is in Identity.jsp , which is part of weblogic console application, and not my application, so i dont have the source of this jsp On 8/30/07, vamsi [EMAIL PROTECTED] wrote: Can you look at this input must be followed by either attribute specifications, or /. at -

Re: How to access request session objects in jsp using struts2 tag

2007-08-30 Thread afp
np chris! Is tat using JSTL? I am not using JSTL in my app. How can I get it working in/using struts2 tags s:tags / ?? Arup Chris Pratt wrote: OK, sorry, I thought you were talking about the action. If you want at the attributes you can use ${requestScope.attributename} or

Re: struts 2.0.9 backward compatible with struts 1.x in respect to role on action mapping

2007-08-30 Thread akash agrawal
Dave, Thanks for the reply. The link you mentioned does not have much detail in it. Although, How would interceptor would solve the definition of roles information for each action in an application? If you use this interceptor you mentioned, where would you put roles information for each

RE: Struts 2.0.10 release availlability

2007-08-30 Thread James Holmes
We're working on it. Almost everything is ready to go, and it's basically down to a matter of rolling the release. As you may know, all of the plans for upcoming releases, etc. are discussed openly on the [EMAIL PROTECTED] mailing list. James -Original Message- From: Pedro Herrera

location of DTD/schema for struts.xml Struts 2.0.9?

2007-08-30 Thread akash agrawal
Hi, Where is DTD/schema for struts.xml located in S2? I would like to check it DTD to find out what kind of tags are supported by S2. Thanks, -Akash - Pinpoint customers who are looking for what you sell.

RE: location of DTD/schema for struts.xml Struts 2.0.9?

2007-08-30 Thread James Holmes
http://struts.apache.org/dtds/struts-2.0.dtd -Original Message- From: akash agrawal [mailto:[EMAIL PROTECTED] Sent: Thursday, August 30, 2007 2:04 PM To: Struts Users Mailing List Subject: location of DTD/schema for struts.xml Struts 2.0.9? Hi, Where is DTD/schema for struts.xml

Re: Can you specify the name of struts.xml for Struts2?

2007-08-30 Thread Zarar Siddiqi
The struts.configuration.files property in struts.properties at the root of your classpath can specify struts configuration files using a comma separated list, by default this property is set to: struts.configuration.files=struts-default.xml,struts-plugin.xml,struts.xml You can change it if you

Re: Struts 2.0.10 release availlability

2007-08-30 Thread Laurie Harper
Pedro Herrera wrote: Hil, Can someone knows when struts 2.0.10 version will be released. To quote Ted's excellent reply to the same question earlier today: No one actually knows. Our releases are driven by peer-review and take an indeterminate amount of time. We may start rolling test

HELP! Could not open connection with host: jakarta.apache.org and port: 80??

2007-08-30 Thread Ed snooper
Hello kind person, I have a struts application that was working fine, but when I tried to move it to another server it started throwing the below error messages. Why is it trying to pull the DTD remotely? How can I fix? Thanks for any and all help Ed struts-config_1_2.dtd Aug 30, 2007

Re: struts.xml usage of param element in action element

2007-08-30 Thread Chris Pratt
Just create a mutator in your action and Struts will populate the value for you automatically. I use this to set the Role into my base action action name=myaction param name=roleadmin/param /action (*Chris*) On 8/30/07, akash agrawal [EMAIL PROTECTED] wrote: Hi, Can someone explain me

Re: struts.xml usage of param element in action element

2007-08-30 Thread akash agrawal
Hi, Thanks for the reply Chris. Do you mean providing a setter like setRole(String role) or setRoles(String role) would do? When would this setter be called? If I define an interceptor, Can I check for this property inside interceptor before my execute() is called? Thanks, -Akash Chris

Re: struts.xml usage of param element in action element

2007-08-30 Thread Chris Pratt
Yes, setRole(String role) for my example. (*Chris*) On 8/30/07, akash agrawal [EMAIL PROTECTED] wrote: Hi, Thanks for the reply Chris. Do you mean providing a setter like setRole(String role) or setRoles(String role) would do? When would this setter be called? If I define an

Re: struts.xml usage of param element in action element

2007-08-30 Thread akash agrawal
Chris, When would this setter be called? Can I access this property inside an interceptor (custom interceptor/pre-packaged interceptor)? (This would help to check it before execute is called) Thanks. Chris Pratt [EMAIL PROTECTED] wrote: Yes, setRole(String role) for my example. (*Chris*)

Re: struts.xml usage of param element in action element

2007-08-30 Thread Chris Pratt
When would this setter be called? Can I access this property inside an interceptor (custom interceptor/pre-packaged interceptor)? (This would help to check it before execute is called) I believe it is called by the ParamInterceptor, so as long as your interceptor is later in the stack, the

Re: Validation chaining in struts2

2007-08-30 Thread j alex
Ted, Regarding field validations, can you provide any reason why the validwhen validator is not provided in Struts 2? . I think this is a step backwards from Struts 1 where we could easily manage conditional validation (validate fieldb only if fielda fieldc meet some condition) Also, the

wstruts2 velocity file extension

2007-08-30 Thread Leonidas Papadakis
Greetings to all, can anyone suggest to me please how do i change the velocity file extension from .vm to .shtml ? Thank very much Leonidas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Can you specify the name of struts.xml for Struts2?

2007-08-30 Thread mraible
It looks like the FilterDispatcher supports a config init-parameter as well. However, I tried setting it to /WEB-INF/struts.xml and it didn't work for me. http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/dispatcher/FilterDispatcher.html Matt Zarar Siddiqi wrote: The

images tabbedpanel

2007-08-30 Thread Manuel Correa
Hey, Some have the sources .png or any source of the images of the tabbepanel tab's. I have my applications but the people that I'm working for, want another color in that tabs... someone made this change before???... is not something Struts 2 issue, but the problem is people only cares

Re: struts2 velocity file extension

2007-08-30 Thread Leonidas Papadakis
Mistype on the subject , i mean struts2 Leonidas Leonidas Papadakis wrote: Greetings to all, can anyone suggest to me please how do i change the velocity file extension from .vm to .shtml ? Thank very much Leonidas - To

RE: Can you specify the name of struts.xml for Struts2?

2007-08-30 Thread James Holmes
If you find things that are documented to work and don't, please open JIRA issues and we'll get them fixed. James -Original Message- From: mraible [mailto:[EMAIL PROTECTED] Sent: Thursday, August 30, 2007 4:37 PM To: user@struts.apache.org Subject: Re: Can you specify the name of

ActionRedirect with wrong absolute path

2007-08-30 Thread Hayrol Reyes Mejía
Hi guys, I’m having a problem with Struts 1.2 and a IAS environment, the problem is as follow: The application use Struts 1.2 and Hibernate 3 and OraclaeAS 10g (10.1.0.2). The Application works very well in the developer OAS, but doesn't in the production's OAS (two servers). The problems

Re: Validation chaining in struts2

2007-08-30 Thread Ted Husted
On 8/30/07, j alex [EMAIL PROTECTED] wrote: Regarding field validations, can you provide any reason why the validwhen validator is not provided in Struts 2? . I think this is a step backwards from Struts 1 where we could easily manage conditional validation (validate fieldb only if fielda

[S2] Integrating with springframework and tiles

2007-08-30 Thread Eugen Stoianovici
I'm using using struts 2.0.9 with springframework 2.0.6 and i want to use tiles as a template engine. Now in struts1 i would use org.apache.struts.tiles.xmlDefinition.I18nFactorySet to initialize the org.springframework.web.servlet.view.tiles.TilesConfigurer but there's no such class in

RE: images tabbedpanel

2007-08-30 Thread Jason Wyatt
Hi Manuel, You'll need to extract the images directory into the same path where your custom templateCssPath is, then change the images. For example, I had a tabbed panel like such: s:tabbedPanel id=NcrTabbedPanel name=NcrTabbedPanel selectedTab=%{currentTab} theme=ajax requiredposition=left

Re: [S2] Integrating with springframework and tiles

2007-08-30 Thread George Dadulescu
Just add the tile listener in the web.xml file of your application and set a tiles result type in the struts.xml file. On 8/31/07, Eugen Stoianovici [EMAIL PROTECTED] wrote: I'm using using struts 2.0.9 with springframework 2.0.6 and i want to use tiles as a template engine. Now in struts1 i

Re: [S2] Integrating with springframework and tiles

2007-08-30 Thread Eugen Stoianovici
wouldn't this affect the spring listener? George Dadulescu wrote: Just add the tile listener in the web.xml file of your application and set a tiles result type in the struts.xml file. On 8/31/07, Eugen Stoianovici [EMAIL PROTECTED] wrote: I'm using using struts 2.0.9 with springframework

Re: ActionRedirect with wrong absolute path

2007-08-30 Thread Paul Benedict
Hayrol, You've posted this problem about 4 times now. :-) If no one is responding, it won't help a fifth time, I am sorry to say. Let's continue tracking this in JIRA. https://issues.apache.org/struts/browse/STR-3089 Paul On 8/30/07, Hayrol Reyes Mejía [EMAIL PROTECTED] wrote: Hi guys, I'm

Re: Multiple Struts Config - Using the form tag

2007-08-30 Thread Paul Benedict
My recommendation is to remove the use of modules. You can do this instead: init-param param-nameconfig/param-name param-value/WEB-INF/struts-a.xml,/WEB-INF/struts-b.xml/param-value /init-param Paul

Re: STRUTS 1.3.8 Validator ist destroying my SessionToken

2007-08-30 Thread Paul Benedict
This is only possible if your input attribute species another action. Paul On 8/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes. Thats right. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Paul Benedict Gesendet: Mittwoch, 29.

Re: Struts and Weblogic 10.0 issue

2007-08-30 Thread Paul Benedict
Sounds like the problem is WebLogic, not Struts. You should bug them if they have a problem with using Struts. Paul On 8/30/07, Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi This error is in Identity.jsp , which is part of weblogic console application, and not my application, so i dont have

Re: Problem in Parameter passing.

2007-08-30 Thread Subhani Shaik
Hi, I understand the problem. I am using the s:url action=xyzClick here /s:url for making the action and I dont have form defined in my JSP. If we use like this, we may not receive the parameters in the current form to be transfered to our Action class by using ParameterAware features. Hence,