Re: Tiles 2.0.3 Plug-in

2007-07-19 Thread Roberto Nunnari
Yes. I can confirm that. Also, in the move from Struts 2.0.6 to 2.0.8, I had to change my tiles.xml put tags to put-attribute, like this: before: definition name=userList extends=mainLayout put name=title value=UsersList / put name=body

Re: Does Tiles Layout page can have struts form components

2007-07-19 Thread Antonio Petrelli
2007/7/19, Arunkumar Balasubramanian [EMAIL PROTECTED]: If you could get me a link which has the sample for this steps, it would assist me. The reason because I did not give a link is that such documentation is present only for Tiles 2, while it seems that you are using Struts-Tiles 1.

Re: Setting application properties

2007-07-19 Thread SimonK
Thanx for you reply. The 'problem' with this solution is that I then have to explicitly access the file each time I want a property. I was hoping that There was a place that I could load such parameters then simply access it. The things I have experimented with (and which have failed) are:

how to return to originating jsp when rendering jasperreport from struts2

2007-07-19 Thread travers
I am rendering a jasper report (pdf format) from within a jsp (button). The report gets created, but the action is a new html (the action url) page and I need to use the browsers back to return to the original page. Is there a way to generate the pdf, without navigating to the new html. Below is

Re: How to control the display of Struts2 tags like s:textfield

2007-07-19 Thread RobinCamus
You can write a new Tag extending TextFieldTag to implement your own attributes. or You can use the theme simple on your textfield so you can write the label directly in html TR TD LABEL style=color: green /TD TD s:textfield /TD /TR TonyD wrote: I'am using the qxhtml theme in my

S2 send wrong Portlet Window States - May be a bug

2007-07-19 Thread tom tom
Hi, We got some portlets developed using S2 running of uPortal. It looks like When we switch between Window states and try to print window states in JSR168Dispatcher it prints window states incorrectly. For e.g When I minimize a portlet it says the window states is minimized but when I maximize

Re: S2 send wrong Portlet Window States - May be a bug

2007-07-19 Thread Nils-Helge Garli
Hi, Could you make a minimal example that illustrates the problem in uPortal, and then put it somewhere to download? Nils-H On 7/19/07, tom tom [EMAIL PROTECTED] wrote: Hi, We got some portlets developed using S2 running of uPortal. It looks like When we switch between Window states and try

Simple authentication/authorization with Struts 2 using annotation

2007-07-19 Thread Mahdi Milani Fard
Hi, I'm developing a Struts 2 application which needs non-role-based authorization (e.g. a user can see the messages of a group if he is a member, etc.) Realm is not enough in such case and you need to add some authorization code to each action if you use realm. I developed an

Re: S2: YUI plugin and autocompleter

2007-07-19 Thread Scott Nesbitt
Right, I do not think it is that as it works the same way in IE7. Does anyone know of a workaround? Perhaps it is just a matter of the right CSS. Thanks, Scott --- Musachy Barroso [EMAIL PROTECTED] wrote: I think IFrame is used by default when IE is detected musachy On 7/18/07,

struts2 ajax jsps

2007-07-19 Thread nmall
Hi, When we use the AJAX theme in Struts2, do we need to copy all the jsps and tags bundled in the struts2 jar file under src/main/webapp into our application? Or would it suffice to have struts-2.0.6.jar in my lib dir. I am getting the following error while executing my jsp. Thanks for your

@Element annotation

2007-07-19 Thread sdeepak
Hi all, Does any one know how to use @Element annotations. Instead of using the actionClass-conversion.properties file. I tried using it as shown below: @Element(value=com.utils.Person.class) private ListPerson persons; But it gives a NullPointerException whenever i submit the form. But with

NullPointerException using DefaultActionProxyFactory to invoke Actions manually

2007-07-19 Thread Néstor Boscán
Hi I'm trying to use DefaultActionProxyFactory to create an ActionProxy to invoke an Action manually. I'm using the Struts 2 jars that works with JDK 1.4. I'm getting NullPointerException because in the class there is a container attribute that does not get injected. Any ideas about this?. Any

Re: struts2 ajax jsps

2007-07-19 Thread Musachy Barroso
You don't need to copy anything except the jars distributed with Struts 2. You probably copied from the example in showcase which includes that file. regards musachy On 7/19/07, nmall [EMAIL PROTECTED] wrote: Hi, When we use the AJAX theme in Struts2, do we need to copy all the jsps and

Re: struts2 ajax jsps

2007-07-19 Thread Dave Newton
--- nmall [EMAIL PROTECTED] wrote: getting the following error while executing my jsp. ...FileNotFoundException: /ajax/commonInclude.jsp The only commonInclude I could find was in showcase; you shouldn't need it for your own application. d.

Re: struts2 ajax jsps

2007-07-19 Thread nmall
Hi, I am trying to get started with struts ajax tags. I simply copied example2.jsp ( under ajax in showcase app) into an appropriate dir in my src/main/webapp. But all I see is I'm a Tab!!! I'm the other Tab!!! I don't see the tabbed panel test1 test2 etc. I have a menu-config.xml with

Re: How to control the display of Struts2 tags like s:textfield

2007-07-19 Thread yitzle
Consider wrapping it in a span class=blah tag... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: struts2 ajax jsps

2007-07-19 Thread Dave Newton
--- nmall [EMAIL PROTECTED] wrote: I am trying to get started with struts ajax tags. I simply copied example2.jsp ( under ajax in showcase app) into an appropriate dir in my src/main/webapp. But all I see is [...] You can't just copy a single file from an application and expect it to work.

[s2] converter attribute of action tag

2007-07-19 Thread petchia
Does anyone know what this is for? In looking through the Struts 2 and XWork source code it doesn't appear to be implemented. Any ideas?? -Bill -- View this message in context: http://www.nabble.com/-s2--converter-attribute-of-%3Caction%3E-tag-tf4111871.html#a11691601 Sent from the Struts -

Re: Simple authentication/authorization with Struts 2 using annotation

2007-07-19 Thread Viplav Kallepu
Hi, Thank you for sharing the idea. I am also working on the authorization and authentication of my application. The authentication interceptor checks the action method for @Secured annotation and checks the session to see if the user has logged in. If not, the target page and parameters are

Re: struts2 ajax jsps

2007-07-19 Thread Musachy Barroso
As Dave pointed out, the missing file is the one that contains s:head theme=ajax / which is required to get the ajax tags to work musachy On 7/19/07, Dave Newton [EMAIL PROTECTED] wrote: --- nmall [EMAIL PROTECTED] wrote: I am trying to get started with struts ajax tags. I simply copied

Re: Don't expose .action to user?

2007-07-19 Thread mraible
I agree it would be nice if you could make totally clean URLs with Struts 2 - as if you had each action registered as servlets in your web.xml. Unfortunately, I don't believe it's possible. The only solution I can think of is to use the UrlRewriteFilter. http://tuckey.org/urlrewrite While this

Re: FieldExpressionValidator: How do I reference field names?

2007-07-19 Thread mraible
If you're right, I'd expect the following expression make friendEmail required when the friend reason is checked (it's a radio button): reason == 'friend' and friendEmail != null However, if I check friend and don't fill out the e-mail address, it still passes validation. Based on the error

Re: Don't expose .action to user?

2007-07-19 Thread Kevin Lawrence
Hi Matt, My solution does seem to work for the few simple cases that I tried. The only overhead is that you have to create an empty main.action file in each directory that corresponds with an action url. That suits my purposes quite well as, despite best practice recommendations, I don't

RE: Don't expose .action to user?

2007-07-19 Thread Neil Aggarwal
Matt: I use URLRewrite. I only have a few rules since urlreqrite supports regex pattern mathing. Thanks, Neil -- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com FREE! Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details. -Original

RE: Don't expose .action to user?

2007-07-19 Thread mraible
Do you rewrite outgoing URLs as well, or just incoming? Neil Aggarwal wrote: Matt: I use URLRewrite. I only have a few rules since urlreqrite supports regex pattern mathing. Thanks, Neil -- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com FREE! Eliminate junk email

Re: Don't expose .action to user?

2007-07-19 Thread Eric Buitenhuis
If obscuring the underlying technology is the primary concern, perhaps using *.htm instead of *.action for struts 2 while using *.html for static could be a solution. Then everyone would think you were writing it using Microsoft technology :-) On 7/19/07, Neil Aggarwal [EMAIL PROTECTED] wrote:

Re: Don't expose .action to user?

2007-07-19 Thread Kevin Lawrence
I know you were joking but, for me, there are two concerns: 1. I want the urls to be memorable www.junitfactory.com/demo is easier to remember than www.junitfactory.com/demo.action (or .htm or .html or .jsp) 2. I will almost certainly move part of my site to a CMS in the near future and

WebSphere 6.0 Sitemesh plugin issue

2007-07-19 Thread Ed Knutson
I am building an application using Struts 2.0.8 on a WebSphere 6.0.2.17 ND server. Another application on this server uses Webwork 2.2 with Spring and Sitemesh 2.3 and I was hoping the transition to Struts 2 would be relatively smooth. This app server uses the 1.4.2 JVM and I am using the j4

RE: Don't expose .action to user?

2007-07-19 Thread Neil Aggarwal
Matt: Both. Neil -- Neil Aggarwal, (832)245-7314, www.JAMMConsulting.com FREE! Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details. -Original Message- From: mraible [mailto:[EMAIL PROTECTED] Sent: Thursday, July 19, 2007 12:04 PM To:

RE: Tiles 2.0.3 Plug-in

2007-07-19 Thread Jiang, Jane (NIH/NCI) [C]
Thank you so much for pointing this out. That solved my problem. I am now upgraded to 2.0.8 with tiles 2.0.3. Jane -Original Message- From: Roberto Nunnari [mailto:[EMAIL PROTECTED] Sent: Thursday, July 19, 2007 2:14 AM To: Struts Users Mailing List Subject: Re: Tiles 2.0.3 Plug-in

Re: Don't expose .action to user?

2007-07-19 Thread Adam Ruggles
Have you looked at using the restful url stuff? Kevin Lawrence wrote: I know you were joking but, for me, there are two concerns: 1. I want the urls to be memorable www.junitfactory.com/demo is easier to remember than www.junitfactory.com/demo.action (or .htm or .html or .jsp) 2. I will

Re: Don't expose .action to user?

2007-07-19 Thread Kevin Lawrence
I have not. Can you give me a link? Thanks, Kevin Adam Ruggles wrote: Have you looked at using the restful url stuff? Kevin Lawrence wrote: I know you were joking but, for me, there are two concerns: 1. I want the urls to be memorable www.junitfactory.com/demo is easier to remember than

Re: Need help: decorator:body / not parsed

2007-07-19 Thread orshoe
Hi, I have struggled with this for sometime now and found an interesting thing. If I replace the filter class org.apache.struts2.sitemesh.FreemarkerPageFilter with com.opensymphony.module.sitemesh.filter.PageFilter in the web.xml, the page content (title, head, body elements) are being parsed and

Re: Don't expose .action to user?

2007-07-19 Thread Adam Ruggles
Here a couple links that should get you started. http://struts.apache.org/2.0.8/struts2-core/apidocs/org/apache/struts2/dispatcher/mapper/Restful2ActionMapper.html http://struts.apache.org/2.0.8/docs/restfulactionmapper.html http://struts.apache.org/2.0.8/docs/actionmapper.html Kevin Lawrence

Re: FieldExpressionValidator: How do I reference field names?

2007-07-19 Thread Eric Rank
Hi Matt, I tried out your scenario, and I think I found the problem. In my test, it also validated when I left the friendEmail field blank. It seems that the value of friendEmail is not null, but an empty string. To solve the problem, I added another clause to check for String length.

Re: [Struts 2] If exists tag?

2007-07-19 Thread Dale Newfield
Musachy Barroso wrote: s:if test=collection != null !collection.isEmpty() ... /s:if //more elegant :) s:if test=collection != null !collection.isEmpty ... /s:if http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/specialCollectionsProperties.html isEmpty is a pseudo-property of

Re: FieldExpressionValidator: How do I reference field names?

2007-07-19 Thread Eric Rank
My Bad, there's another scenario when this field will validate. When reason != 'friend' Better expression: param name=expression(reason != 'friend') or ((reason == 'friend') and (friendEmail != null) and (friendEmail.trim().size() 0))/param Eric On Jul 19, 2007, at 1:33 PM, Eric

Re: automating the generating of web.xml and struts-config.xml

2007-07-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Antoine, Antoine Solomon wrote: I just wanted to know if there are any technologies used for automatically creating the web.xml and struts-config.xml files? I dunno about web.xml, but you could write a skeleton struts-config.xml file and then

Re: struts2 ajax jsps

2007-07-19 Thread nmall
I have these commonInclude.jsp and in fact the whole ajax directory from struts-2.0.8 under my src/main/webapp/WEB-INF. However, it doesn't seem to show the widget properly due to not being able to load TabContainer.html. I have struts-2.0.6.jar in my classpath. Here is the error I get: DEBUG

Take me off the list please.

2007-07-19 Thread randy
Thanks.

RE: Does Tiles Layout page can have struts form components

2007-07-19 Thread Arunkumar Balasubramanian
Thanks. I will try out and will let your know. Date: Thu, 19 Jul 2007 08:54:18 +0200 From: [EMAIL PROTECTED] To: user@struts.apache.org Subject: Re: Does Tiles Layout page can have struts form components 2007/7/19, Arunkumar Balasubramanian [EMAIL PROTECTED]: If you could get me a

Re: FieldExpressionValidator: How do I reference field names?

2007-07-19 Thread mraible
I wish the solution was that easy - I tried your expression below and still no dice. Maybe it's something so small I can't see it? Does it have something to do with the fact that reason is a radio button that sets a String value? Matt Eric Rank-2 wrote: Hi Matt, I tried out your

New Bee Question: How do i enable validation only if certain condition is met?

2007-07-19 Thread sriharsha . chevuru
Hi, My Question: Suppose i have a form and it has 5 text boxes. I am using validation.xml for validating the data entered in the textboxes. My requirement is, if the user nters data in atleast one of the textboxes (valid or invalid) and hits submit. Only then i want to validate all the

Re: Loading Screen!!

2007-07-19 Thread Richard Sayre
Look at the walking tour of the mail reader application. http://planetstruts.org/struts2-mailreader/Welcome.do It uses a loading page to redirect to an action. The loading page is just a plain html page the has a META HTTP-EQUIV=Refresh CONTENT=2;URL=My.action tag. I made a similar page with

Re: Open Source Struts Dating Application

2007-07-19 Thread Strut Date
Thanks for the pointers. The application is built on Struts 1.2.7. cilquirm [EMAIL PROTECTED] wrote: I think you have to 'know' somebody to get it incubated. i.e. Just because you're offering, doesn't mean they'll bite. (And I don't mean that in a bad way, either. ) Check out the

Re: Open Source Struts Dating Application

2007-07-19 Thread Strut Date
Thanks Leon. Marcus seems to have done rather well for himself. Researching your comment provoked much thought (I had not known the extent of success of plentyoffish). Leon Rosenberg [EMAIL PROTECTED] wrote: run it by yourself and make a lot of money like the guy who owns

Using Action-method-validator.xml with Client Side JavaScript

2007-07-19 Thread Néstor Boscán
Hi I have an Action that has many methods that are invoked and I just want some of them to be validated. Now I also want client side JavaScript validation. If I use the Action-method-validator.xml no validation is perform on the client side, only when I use Action-validator.xml it will generate

Using Action-method-validator.xml with Client Side JavaScript

2007-07-19 Thread Néstor Boscán
Hi I have an Action that has many methods that are invoked and I just want some of them to be validated. Now I also want client side JavaScript validation. If I use the Action-method-validator.xml no validation is perform on the client side, only when I use Action-validator.xml it will generate

Re: Simple authentication/authorization with Struts 2 using annotation

2007-07-19 Thread Mahdi Milani Fard
Here is a partial code that might help. It stores the current action (secured action) and the parameters in the session: if (actionSecured !loggedIn) { System.out.println(Redirecting to login page); Map session = actionInvocation.getInvocationContext().getSession();