[s1] security filter for EventDispatchAction

2007-07-26 Thread Strachan, Paul
Hi, For security/authorisation we use a servlet filter which checks the url against our security database. We've recently upgraded to Struts 1.2.9 and tried using EventDispatchAction, but the problem is the filter does not know which event to secure against (as the event name is arbitory value

Re: S2 + REST urls

2007-07-26 Thread Aram Mkhitaryan
First of all, put that constants in struts.properties file next to struts.xml there are some problems with constants defined in struts.xml, some of them does not work correctly Then, you can create your namespace and mappings for images and csses, this will add security, and you will be able to hi

Re: Chart generator servlet

2007-07-26 Thread Aram Mkhitaryan
I use jfreechart, I'm generating the chart in the page's servlet (where the html is generated), I'm putting the image's url so that it is mapped to the chart viewer servlet. See examples of jfreechart, it's too simple. Best, Aram Aram Mkhitaryan 52, 25 Lvovyan,

Re: Is Struts still a better choice over JSF as on today ?

2007-07-26 Thread Frank W. Zammetti
souravm wrote: Regarding going for JSF due to componentization, I'm again not sure what additional componentizations JSF does compared to struts. JSF is inherently a component-based framework, meaning you aren't really thinking in terms of pages, your thinking in terms of components of a "vie

[s2] Developing Portlets with Eclipse tutorial available

2007-07-26 Thread Don Brown
I wrote up a simple tutorial showing how to start developing portlets using Struts 2 and Eclipse. It takes advantage of the fact that Struts 2 portlets can be deployed as normal web applications, the tutorial is more how to use a Maven 2 archetype with Eclipse, but with portlet-specific bits. I'm

Re: ValidatorActionForm and Collection refill for the jsp

2007-07-26 Thread Paul Benedict
You could make the collection persistent -- session scope? Zmaj wrote: I have a form (ValidatorActionForm ) which is has a select and a input field and my problem is when is validate the input field with the validator framework to see if the input string matches a certain pattern. When the pat

RE: Is Struts still a better choice over JSF as on today ?

2007-07-26 Thread souravm
Hi Frank, Thanks again for sharing the anecdotes of those projects which used JSF. I fully agree with your observations/comments regarding RAD tools. I work for a software service provider organization and seen the same things happening (for the projects using RAD tools) many a times. Regardi

Re: Captcha in Struts2

2007-07-26 Thread Dale Newfield
aarthy wrote: How Can I implement Captcha in Struts2? Simplest way is to use recaptcha , although you're then tying your site to the network being up, and their site being up. http://tanesha.net/projects/recaptcha4j/ -Dale --

Captcha in Struts2

2007-07-26 Thread aarthy
How Can I implement Captcha in Struts2? -- View this message in context: http://www.nabble.com/Captcha-in-Struts2-tf4154321.html#a11819699 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-ma

Re: Need to forward to Nothing

2007-07-26 Thread Manisha M Sathe
Thanks, it worked Manisha "Paul Benedict" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 07/26/2007 03:05 PM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc Subject Re: Need to forward to Nothing Do not be forwarding to null. Just return n

RE: Struts 2 Spring plug-in

2007-07-26 Thread Jiang, Jane (NIH/NCI) [C]
I got mine working when I took out the default-autowire="autodetect" from my applicationContext.xml. Thanks David at arctechsoftware.com for suggesting the fix. By the way, the Struts 2 tutorial he offers is the best I have came across. It offers a complete example of integrating Struts 2, Til

Re: [S2] how to prevent the results pages get saved in the browser's cache

2007-07-26 Thread Brian Trzupek
Gabriel, I am not certain of how S2 reacts with the settings, but I think that you need something like: "Cache-Control: max-age=0" To tell it to 'expire' that page. I used this once in a pure servlet app, and found some reference to it here: http://www.w3.org/Protocols/rfc2616/rfc2616-sec1

[S2] Validation Input page handling the display of lists

2007-07-26 Thread Adam Ruggles
I have a form that uses the validation framework so when the user submits a page I have a /myform.jsp statement that re-renders the input form and displays the fields that failed validation. The problem I'm running into is that I have a option transfer select field and once the form is re-rend

Re: [OT] Re: Is Struts still a better choice over JSF as on today ?

2007-07-26 Thread Frank W. Zammetti
Not nearly as good would be my guess :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yahoo: fzammetti MSN: [EMAIL PROTECTED] Author of "Practical Ajax Projects With Java Technology" (2006, Apress, ISBN 1-59059-695-1) and "JavaScript, D

Re: Need to forward to Nothing

2007-07-26 Thread Paul Benedict
Do not be forwarding to null. Just return null. On 7/26/07, Manisha M Sathe <[EMAIL PROTECTED]> wrote: > > Thanks to all, I tried that out. I am not getting any error but I am > getting warning. > > My forward: > > return mapping.findForward(null); > > Warning on console: > > [Jul 26, 2007 13:48:5

ValidatorActionForm and Collection refill for the jsp

2007-07-26 Thread Zmaj
I have a form (ValidatorActionForm ) which is has a select and a input field and my problem is when is validate the input field with the validator framework to see if the input string matches a certain pattern. When the pattern is wrong and the validator forwards back to the input jsp the collect

checking whether a button has been pressed

2007-07-26 Thread Session A Mwamufiya
Hi, I have a jsp page with a form and a number of input buttons. I would like my form action to differentiate which button has been pressed in order to show different pages. I have private boolean variables that correspond to each button in my jsp page being pressed, but when my action runs a

Re: Unable to get started with Struts2 [solved]

2007-07-26 Thread Aladin
Hi Kevin, As it turns out, it was a permission issue relating to the ognl package. On startup, classes from this package attempt to invoke methods from classpath jars. In order for it to succeed at doing this, it needs permission (if you are running tomcat with some sort of permission manager).

Re: Need to forward to Nothing

2007-07-26 Thread Manisha M Sathe
Thanks to all, I tried that out. I am not getting any error but I am getting warning. My forward: return mapping.findForward(null); Warning on console: [Jul 26, 2007 13:48:52] [ExecuteThread: '14' for queue: 'weblogic.kernel.Default'] WARN [org.apache.struts.action.ActionMapping] - Unab

Trying to get form action attribute from template

2007-07-26 Thread Néstor Boscán
Hi I'm trying to get the form action attribute in the form.ftl template. Instead of retrieving the value that it's set in the tag it returns the complete URL /uriPrefix/theAction.action?JSESSIONID= Is there a way to retrieve only what's in the action attribute? Regards, Néstor Boscán

Re: Need to forward to Nothing

2007-07-26 Thread Musachy Barroso
Same thing applies to S2. musachy On 7/26/07, Paul Benedict <[EMAIL PROTECTED]> wrote: > If you return null from an action in S1, that means you handled the response > yourself -- no need for Struts to intervene. This has nothing to do with > "killing the process" (bad news for your web container

[S2] how to prevent the results pages get saved in the browser's cache

2007-07-26 Thread Gabriel Belingueres
Hi, Which is the best (right?) way of setting the HTTP headers in a S2 app to prevent the browser to cache the result pages? I'm testing right now with a servlet filter which match all /* URLs but the back button is still working (i.e. the previous page is stored in the browser cache). Here is

Re: passing data(object) from jsp to action class thru HTTP request.

2007-07-26 Thread Mateusz Nowakowski
I have to pass object,so I think I should go for session? Am I right? Yes, you should use session, but ... i dissuade from save something to session from JSP. Firstly, after a month you won't remember what you have in session, and session will grown because you won't remember to clean it pro

S2: Bug in struts or dojo? was Re: S2: Getting info from server via topic

2007-07-26 Thread Scott Nesbitt
Is this a bug in Struts 2.0.6 or Dojo 0.4? Why would there be garbage in the data argument? Is this not the right way to subscribe to a topic? Surely somebody out there is doing this. Thank you, Scott --- Scott Nesbitt <[EMAIL PROTECTED]> wrote: > > Hmm, when I print out the value of the "

[OT] Re: Is Struts still a better choice over JSF as on today ?

2007-07-26 Thread Antonio Petrelli
2007/7/26, Frank W. Zammetti <[EMAIL PROTECTED]>: (this was a case of the generated code having to be mucked with to get it right, and it turned into a big, heaping plate of spaghetti in the process). I always wonder what kind of spaghetti have you got outside of Italy :-D Antonio ---

Re: Need to forward to Nothing

2007-07-26 Thread Paul Benedict
If you return null from an action in S1, that means you handled the response yourself -- no need for Struts to intervene. This has nothing to do with "killing the process" (bad news for your web container). Returning null is acceptable when sending a file for download, for example. Paul On 7/26/0

Re: Can I integrate Struts 2 + JSF and Facelets?

2007-07-26 Thread mraible
mraible wrote: > > Thanks for your help. I was able to get it working with Sun's RI + > Facelets. I'm confident I could get it working with MyFaces 1.2 as well - > but since they require a JSP 2.1 container (Sun's RI doesn't), I'll stick > with the RI. > > Here's the two ways I discovered: >

RE: Is Struts still a better choice over JSF as on today ?

2007-07-26 Thread Frank W. Zammetti
On Thu, July 26, 2007 1:23 pm, souravm wrote: > For me so far I don't see any reason why people should go for JSF except > for moving ahead with a standard. As such I don't even see much use of > event handling at UI layer - I always like to keep UI layer simple. But remember that something can be

RE: Need to forward to Nothing

2007-07-26 Thread Asthana, Rahul
Forward to null has worked for me in struts 1.2.x. -Original Message- From: Manisha M Sathe [mailto:[EMAIL PROTECTED] Sent: Thursday, July 26, 2007 11:48 AM To: user@struts.apache.org Subject: Need to forward to Nothing The action class does not forward to anything - it's like killing t

Re: Can I integrate Struts 2 + JSF and Facelets?

2007-07-26 Thread mraible
Thanks for your help. I was able to get it working with Sun's RI + Facelets. I'm confident I could get it working with MyFaces 1.2 as well - but since they require a JSP 2.1 container (Sun's RI doesn't), I'll stick with the RI. Here's the two ways I discovered: 1. Create a faces-config.xml file

passing dada from jsp to action class thru HTTP request.

2007-07-26 Thread Kameshwaran
I am trying to pass some values from the jsp to action class. I did something like this in the jsp:request.setAttribute("InvVOX", inventoryVOX); but when I try to get it in the action class(when the jsp gets submitted).I am getting null. Is there something I am missing here? Please do help me

RE: Is Struts still a better choice over JSF as on today ?

2007-07-26 Thread souravm
Hi Frank, Thanks a lot for your opinions/inputs. Found it very informative. For me so far I don't see any reason why people should go for JSF except for moving ahead with a standard. As such I don't even see much use of event handling at UI layer - I always like to keep UI layer simple. Now k

Re: passing data(object) from jsp to action class thru HTTP request.

2007-07-26 Thread Kameshwaran
I have to pass object,so I think I should go for session? Am I right? newton.dave wrote: > > --- Kameshwaran <[EMAIL PROTECTED]> wrote: >> I am trying to pass some values from the jsp to >> action class. >> >> I did something like this in the >> jsp:request.setAttribute("InvVOX", inventoryVOX

Re: Need to forward to Nothing

2007-07-26 Thread Musachy Barroso
Are you talking about Struts 1 or 2? If S2, then you can return Action.NONE (not sure if that's what you expect as 'killing the process'). musachy On 7/26/07, Manisha M Sathe <[EMAIL PROTECTED]> wrote: > The action class does not forward to anything - it's like killing that > process if it comes

Re: There is no Action mapped for action name HelloWorld. - [unknown location]

2007-07-26 Thread boriskerzner
Thanks a lot. I figured that one out too... after 6 hours!! ;) temp_checker wrote: > > I had the same problem. In case you haven't already figured it out, simply > moving my struts.xml from WEB-INF to WEB-INF/classes/ solved the problem. > I hope it works for you. > > > > boriskerzner wrote:

Re: passing data(object) from jsp to action class thru HTTP request.

2007-07-26 Thread Dave Newton
--- Kameshwaran <[EMAIL PROTECTED]> wrote: > I am trying to pass some values from the jsp to > action class. > > I did something like this in the > jsp:request.setAttribute("InvVOX", inventoryVOX); > > but when I try to get it in the action class(when > the jsp gets submitted).I am getting null.

Re: [s2] broken in IE (was: [S2] Multiple Submits with different actions in a Form)

2007-07-26 Thread David Durham, Jr.
On 7/26/07, Dave Newton <[EMAIL PROTECTED]> wrote: I thought IE's broken button behavior was already documented, including on the wiki? That may be. Here's the rendered HTML: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> Cancel Test

Re: [s2] broken in IE (was: [S2] Multiple Submits with different actions in a Form)

2007-07-26 Thread Dave Newton
I thought IE's broken button behavior was already documented, including on the wiki? d. --- "David Durham, Jr." <[EMAIL PROTECTED]> wrote: > > > Things like: > > > > > > > > > > > > value="Cancel"/> > > > > > > > > > work for me in firefox, but don't seem to work > in IE. > > > > Could you p

Re: [s2] broken in IE (was: [S2] Multiple Submits with different actions in a Form)

2007-07-26 Thread David Durham, Jr.
> Things like: > > > > > > > work for me in firefox, but don't seem to work in IE. Could you provide the rendered HTML that works in one browser but not the other? Sure. TestCancel.jsp -- http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> <%@ taglib prefix="s" uri

Re: S2 + REST urls

2007-07-26 Thread Ted Husted
It's possible that the use case of a an empty action extension was not considered when the filter was first designed. It does seem like a valid use case, and it may be time to patch the filter. -Ted. On 7/26/07, matihost <[EMAIL PROTECTED]> wrote: > I wondering why filter dispatcher do not check

Re: Unable to get started with Struts2

2007-07-26 Thread Kevin Lawrence
Michelle Baert wrote: Aladin wrote: I have the simplest of Struts2 application and I keep getting an error in the logs stating: ERROR TP-Processor5 org.apache.catalina.core.StandardContext - Error filterStart ... This looks very similar to what I get with all my struts2 apps. See thread: "I

Need to forward to Nothing

2007-07-26 Thread Manisha M Sathe
The action class does not forward to anything - it's like killing that process if it comes to this action class. How can I specify that ? Thanks & regards Manisha

Fwd: Popup from struts

2007-07-26 Thread Carlos González López
-- Forwarded message -- From: Carlos González López <[EMAIL PROTECTED]> Date: 26-jul-2007 16:40 Subject: Popup from struts To: user@struts.apache.org Hi, I need to open a popup from struts-conf.xml. this is possible? thank you

Re: autocompleter works at firefox but broken at IE 6

2007-07-26 Thread 宁波新希望信息技术有限公司 -- 俞宏伟
I found that struts 2 " link two autocompleter" of showcase apps can not work correctly with IE 6, I test both struts 2.0.8 and struts 2.0.9 have same javascript exception. as metioned prior message, the struts live showcase also can not works with IE 6. http://www.planetstruts.org/struts2-showca

Re: Re: A problem using Struts Tiles

2007-07-26 Thread Antonio Petrelli
2007/7/26, Paul Benedict <[EMAIL PROTECTED]>: Antonio, are you doing the same with the Tiles2 plugin? Using a command not a custom controller? Do you mean this? http://svn.apache.org/repos/asf/struts/struts1/trunk/tiles2/src/main/resources/org/apache/struts/tiles2/chain-config.xml I simply c

Re: Re: A problem using Struts Tiles

2007-07-26 Thread Paul Benedict
Ah, it just occurred to me: Are you using Struts 1.3? If so, you need a custom chain file. You don't need a custom controller in 1.3, but you do need a custom chain-config to insert the Tiles command. Search the Struts wiki on the 1.3 upgrade notes which explain how to do this. Antonio, are you do

asterisk wildcar for result name (non(?) documented feature)

2007-07-26 Thread Hubert Grininger
Hi, just figured out that it is possible to use a asterisk (*) for action tag's name property. Eg: /WEB-INF/pages/view/help.jsp That's very convenient because thus it's possible to chain to this action from every possible state. /view/result.action /view/help.action

Chart generator servlet

2007-07-26 Thread Balazs Michnay
Hi there, I wanted to generate charts from my web-app and I found jCharts (http://jcharts.sourceforge.net/) as one good choice. I deployed the example war, so I saw how to set up a simple "chart generator" servlet. It works just fine. If my chart is generated from a servlet, only the resulting c

Re: Re: A problem using Struts Tiles

2007-07-26 Thread matihost
I think you forgot to override controller class (as i remember i had the same problem): Your configuration should have also: >My configurations: > > struts-config.xml > > >... > > > > >... > > > value="/WEB-INF/tiles-defs.xml" /> > >... >---

[S2] how to access struts.properties values in a custom tag

2007-07-26 Thread David Binder
Hi, I'm trying to get the i18n encoding value from the parameters we set in struts.properties for our project. I'm trying to do it in a tag (in the component part). I don't manage to access it. I cant find the object carrying the information. Does someon have an idea ? David

Re: 答复: 答复: Radio Buttons in Struts

2007-07-26 Thread merryba
It is working now after clearing my cache. Real wrote: > > A bit strange, it does work in my test app. > > Crazyreal > -邮件原件- > 发件人: merryba [mailto:[EMAIL PROTECTED] > 发送时间: 2007年7月26日 9:27 > 收件人: user@struts.apache.org > 主题: Re: 答复: Radio Buttons in Struts > > > It doesn't work .St

S2 + REST urls

2007-07-26 Thread matihost
Hi everyone What is the best practice to use REST url notation in Struts2 application ? Does anyone have successful solution ? Below are my consideration about the available solutions: I used /* filter mapping for struts filter and set and tried all available mappers for constant "struts.m

Popup from struts

2007-07-26 Thread Carlos González López
Hi, I need to open a popup from struts-conf.xml. this is possible? thank you

Re: A problem using Struts Tiles

2007-07-26 Thread Paul Benedict
I use global forwards as well. There is something else at play here. Whenever that error occurs, it means some other problem occured. Perhaps the definitions never load, etc. On 7/26/07, Dave Newton <[EMAIL PROTECTED]> wrote: > > I don't believe that global-forwards were ever able to > point to ti

AW: AW: Struts 2 requires input result on failed type conversion

2007-07-26 Thread Martin Simons
Since nobody was able to help me so far I tried to dive into the matter myself. To this point in time I was not able to understand how Struts type conversion works though. Especially I was not able to find the spot in the code where Struts returns the "input" result-string on a failed validation si

RE: Struts http path question

2007-07-26 Thread Scott Trafton
Thanks Phillip, that worked. I knew there was something I was missing. -Scott -Original Message- From: Phillip Grenier [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 25, 2007 4:57 PM To: Struts Users Mailing List Subject: RE: Struts http path question Try setting the namespace on the pa

Re: A problem using Struts Tiles

2007-07-26 Thread Dave Newton
I don't believe that global-forwards were ever able to point to tile definitions, but it's been awhile. Inside the action-mappings a forward can point to a tile. d. --- Antonio Petrelli <[EMAIL PROTECTED]> wrote: > 2007/7/26, Paul Benedict <[EMAIL PROTECTED]>: > > > > Of course you can forward t

Re: A problem using Struts Tiles

2007-07-26 Thread Antonio Petrelli
2007/7/26, Paul Benedict <[EMAIL PROTECTED]>: Of course you can forward to a tile. That's the point of tiles :-) Maybe I have not been clear. The following works: but the following does not seem to work: Antonio

Re: A problem using Struts Tiles

2007-07-26 Thread Paul Benedict
Of course you can forward to a tile. That's the point of tiles :-) Antonio Petrelli wrote: 2007/7/26, brossir <[EMAIL PROTECTED]>: If I remember well, I think that there is a bug in Struts that prevents from using ActionForward with a Tiles definition as a forward. I don't know if there

Vanishing parameters

2007-07-26 Thread Thom Burnett
I have a struts application with an intermittent problem of losing all it's parameters from the request. Is there any known problem, mis-coding, or whatever that would cause that? The application has a set of jsp pages each with one or more buttons for submit, cancel, and other actions. The JSPs

RE: Access to pages according to profile

2007-07-26 Thread Corro Fuentes, Gerardo
Cheers!!! It's clear now... -Mensaje original- De: Aram Mkhitaryan [mailto:[EMAIL PROTECTED] Enviado el: jueves, 26 de julio de 2007 14:33 Para: Struts Users Mailing List Asunto: Re: Access to pages according to profile Struts, especially S2 is action based, not page based. I mean, your

Re: Access to pages according to profile

2007-07-26 Thread Aram Mkhitaryan
Struts, especially S2 is action based, not page based. I mean, your "search" and "delete" are different actions, or even the same action, but the methods are different, anyway they should have different mappings that you can configure your Acegi for example, action configs may be /.../some/path

Re: A problem using Struts Tiles

2007-07-26 Thread Antonio Petrelli
2007/7/26, brossir <[EMAIL PROTECTED]>: If I remember well, I think that there is a bug in Struts that prevents from using ActionForward with a Tiles definition as a forward. I don't know if there is an open issue for this, because the JIRA server seems to be down :-( Just to be sure, did yo

Unable to resolve package.properties

2007-07-26 Thread Indu rekha Meduri, TLS-Chennai
Hi, I am trying Struts2CrudStep1 tutorial sample application. I am not able to resolve package. properties file. I have placed it in the same location where the action class resides and tried placing it in all of its root directories. But could not resolve. Is there any configuration that

Re: Stop Struts 2 from adding request parameters to all links?

2007-07-26 Thread Dave Newton
--- Anton Pussep <[EMAIL PROTECTED]> wrote: > When I call a page or action with a request > parameter (like > "index.jsp?param=xyz") then Struts seems to > automatically add it to all > links on the page. In my case I have a parameter > that should not be > added to any links, it should just be set

RE: Access to pages according to profile

2007-07-26 Thread Corro Fuentes, Gerardo
Thanks, I wonder if there's a way to do Page/Action-Level security checks with Acegi+Struts. I mean, maybe a user in one page can do a "search" but not a "delete", whereas a different profile user could do both. Thanks again! -Mensaje original- De: Aram Mkhitaryan [mailto:[EMAIL PROTEC

Stop Struts 2 from adding request parameters to all links?

2007-07-26 Thread Anton Pussep
When I call a page or action with a request parameter (like "index.jsp?param=xyz") then Struts seems to automatically add it to all links on the page. In my case I have a parameter that should not be added to any links, it should just be set for this one page/action call. Is there a way to do that?

RE: Struts 2 Spring plug-in

2007-07-26 Thread Deepak Kumar
Hi Try http://www.roseindia.net/struts/hibernate-spring/ Thanks -Original Message- From: Jiang, Jane (NIH/NCI) [C] [mailto:[EMAIL PROTECTED] Sent: Thursday, July 26, 2007 3:19 AM To: user@struts.apache.org Subject: Struts 2 Spring plug-in Hi, Has anyone got Struts Spring plug-in to wo

A problem using Struts Tiles

2007-07-26 Thread brossir
My configurations: struts-config.xml ... ... ... tiles-defs.xml But i got: javax.servlet.ServletExcept

Re: Struts 2 Spring plug-in

2007-07-26 Thread David Binder
can you post your spring filter and listener configuration (web.xml) as well as the application context corresponding to those guilty beans :) ? David 2007/7/25, Jiang, Jane (NIH/NCI) [C] <[EMAIL PROTECTED]>: Hi, Has anyone got Struts Spring plug-in to work? I am getting this error starting

Re: Access to pages according to profile

2007-07-26 Thread Aram Mkhitaryan
I use Spring with Struts2 and Acegi Security! The last one provides great solutions for both URI and Domain Object security. Best, Aram Aram Mkhitaryan 52, 25 Lvovyan, Yerevan 375000, Armenia Mobile: +374 91 518456 E-mail: [EMAIL PROTECTED]

Access to pages according to profile

2007-07-26 Thread Corro Fuentes, Gerardo
Hi, I'm building a web application that has hundreds of pages and many users classified in different profiles. These profiles have different permission access to pages and resources, my question is; Is there a utility in Struts that might be helpfull in creating this kind of functionality.