RE: Security in Struts

2005-05-25 Thread tarek.nabil
Thanks everyone. Filters are Action superclasses are both good ideas. Actually, I think a filter fits more, but it's a general solution that I would go for, even if I weren't using Struts. And both solutions involve building the whole security infrastrutcture myself. I was thinking maybe the Struts

How to run an action automatically like thread ?

2005-05-25 Thread minhnguyet
Hi all , I have an action in struts that I want it will read database and process some another actions base on that database every 10 minutes . But I don't how to make it automatically run like thread in application ! Any recomments ? Thanks in advance for help .

Re: output device support

2005-05-25 Thread Rahul Akolkar
On 5/25/05, Wiebe de Jong <[EMAIL PROTECTED]> wrote: > How would I go about supporting multiple output devices, such as browsers, > Blackberries, phones and various PDA devices? Are there any Struts > extensions out there for this? Or should I investigate Sitemesh or Cocoon? So, the application(s)

Re: Autologin?

2005-05-25 Thread Lixin Chu
i guess http://acegisecurity.sourceforge.net will most likely not shown in the search list. you may want to take a look at it if you do not want to develop something from scratch again. On 5/25/05, atta-ur rehman <[EMAIL PROTECTED]> wrote: > I'll start with the first five :) > > http://www.google

Re: html:img question

2005-05-25 Thread Dakota Jack
Just out of curiosity, when you don't seem to have internationalized the image, why would you want to do that with the alt? On 5/25/05, Aladin Alaily <[EMAIL PROTECTED]> wrote: > Hi Guys, > > Maybe I've been working too long... but I can't seem to figure out the > following. > > I am trying to c

Re: html:img question

2005-05-25 Thread croffman
You can use bean:define to create a dynamic JSP variable and set that to the alt attribute using JSP Scriptlet as follows: I hope this should solve it. croff - Original Message - From: "Aladin Alaily" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, May 25, 2005 5

Re: form-bean question - help

2005-05-25 Thread Larry Meadors
So, you have a form bean with a total of ~300 properties? Yes, that could be a bit heavy in a high load environment. Larry On 5/25/05, croffman <[EMAIL PROTECTED]> wrote: > I have a form bean which has few form-bean properties (less than 10) each of > type customized class, which contains arou

form-bean question - help

2005-05-25 Thread croffman
I have a form bean which has few form-bean properties (less than 10) each of type customized class, which contains around 30 attributes. Does any one have any idea is there any impact on high volume testing? Your suggestions are helpful. Thanx in advance.

RE: sTRUTS 1.3 - chain flow /again

2005-05-25 Thread Joe Germuska
At 9:23 AM +0100 5/25/05, Marco Mistroni wrote: Hello Joe & all, I have one question regarding the chain.. Am I correct to assume that The SelectInput command that comes after ValidateActionForm in chain-config.xml should be called in case validation fails? How does that happen? Javadoc s

Re: [struts] MyEclipse with Struts 1.2

2005-05-25 Thread Rob
(I sent this earlier, but found that I was not subscribed properly to the list, so here's a retry) I'm using MyEclipse 3.8.4+QF2-BetaFor3.1 on Eclipse 3.1M4 with Struts 1.2.4 and JSTL 1.1, deployed on Tomcat 5.5.7 on JDK1.5.0_02 (all actually running and conforming to JDK1.5, not just JDK1.4 c

RE: html:img question

2005-05-25 Thread meyawn
what is the name of the bean? also try doing something like this: var ALT_MESSAGE = "" ; -Original Message- From: Aladin Alaily [mailto:[EMAIL PROTECTED] Sent: Thursday, May 26, 2005 1:39 AM To: Struts Users Mailing List Subject: html:img question Hi Guys,

Re: html:img question

2005-05-25 Thread Aladin Alaily
Thanks Chris. I must be going blind ;) Aladin Chris Loschen wrote: Hope that helps! Chris Loschen -Original Message- From: Aladin Alaily [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 6:39 PM To: Struts Users Mailing List Subject: html:img question Hi Guys, Maybe I

RE: html:img question

2005-05-25 Thread Chris Loschen
Hope that helps! Chris Loschen -Original Message- From: Aladin Alaily [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 6:39 PM To: Struts Users Mailing List Subject: html:img question Hi Guys, Maybe I've been working too long... but I can't seem to figure out the following.

html:img question

2005-05-25 Thread Aladin Alaily
Hi Guys, Maybe I've been working too long... but I can't seem to figure out the following. I am trying to create an tag and dynamically set the alt attribute with the application properties file... but it doesn't seem to work. Here is what I'm doing: and in my application.properties fi

output device support

2005-05-25 Thread Wiebe de Jong
How would I go about supporting multiple output devices, such as browsers, Blackberries, phones and various PDA devices? Are there any Struts extensions out there for this? Or should I investigate Sitemesh or Cocoon? Any case studies or actual code would be greatly appreciated. Thanks W

Re: html:multibox question

2005-05-25 Thread Wendy Smoak
From: "Apte, Dhanashree (Noblestar)" <[EMAIL PROTECTED]> > > How do I make sure that only the selected ones get through? > http://struts.apache.org/userGuide/struts-html.html#multibox WARNING: In order to correctly recognize cases where none of the associated checkboxes are selected, the ActionFo

RE: Populating a new form bean and passing it on to the next request

2005-05-25 Thread Chris Loschen
Yes, quite possibly that was the problem. You'll see in my reply to Erik how I got around the issue. Thanks for your help! Chris -Original Message- From: meyawn [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 4:53 PM To: Struts Users Mailing List Subject: RE: Populating a new fo

RE: Populating a new form bean and passing it on to the next request

2005-05-25 Thread Chris Loschen
Thanks Erik, Actually, my login action is rather complex, and gets called by several other apps which I don't have control over, so I'd rather not just duplicate the code: somebody else might change it at some point, and then I'd be in trouble. Both the login action and my action already extend a

RE: Could someone on the dev team add link to mailing list on Struts site

2005-05-25 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> I actually use that one too. But for the first-time Struts user, we > seem to be making it overly difficult to find, subscribe, and search > the mailing lists. If Mr. Jack's assertion is correct, then I guess > I need to go back to the previous discussion he's refering to and > find out why...

RE: Could someone on the dev team add link to mailing list on Struts site

2005-05-25 Thread Jay Burgess
I actually use that one too. But for the first-time Struts user, we seem to be making it overly difficult to find, subscribe, and search the mailing lists. If Mr. Jack's assertion is correct, then I guess I need to go back to the previous discussion he's refering to and find out why... Jay

RE: html:multibox question

2005-05-25 Thread meyawn
well, when you uncheck a checkbox, there is nothing passed to your form. so your form doesnt know which checkboxes are there on your page that are unchecked. it knows only about the boxes you checked. so i guess you have to reset your form after it has inited?? not very sure -Original Message-

RE: Could someone on the dev team add link to mailing list on Struts site

2005-05-25 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> Also, the "List Archive" link is broken, so it's doubly annoying > to someone coming in for the first time. I use this one: http://marc.theaimsgroup.com/?l=struts-user - Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] F

html:multibox question

2005-05-25 Thread Apte, Dhanashree (Noblestar)
I have a page that has a series of check-boxes that a user can select/deselect at will. When the page loads up, some of the checkboxes are already checked. The user can then either select new ones or deselect existing ones. However, when I submit the page, the unselected ones are still a part of m

ModuleConfigImpl WAS: Parsing struts-config. Parser chokes on

2005-05-25 Thread Dahnke, Eric \(Company IT\)
Thanks for the response. It looks like it will work. I'm implementing it as follows within an action, but the mci object doesn't get its properties set. All the hashmaps of actions, and forwards, and exceptions are always null. ModuleConfigImpl mci = new ModuleConfigImpl("dashboard"); ActionConfi

RE: Could someone on the dev team add link to mailing list on Struts site

2005-05-25 Thread Jay Burgess
I believe the point was that this page is not linked to from the main Struts page (http://struts.apache.org/index.html)? If it is, I can't find it. And I don't understand why, as it's probably one of the first things a new user would look for. Also, the "List Archive" link is broken, so it's doubl

RE: Populating a new form bean and passing it on to the next request

2005-05-25 Thread meyawn
you set stuff in your request object..but for the login form another request object is created and it has a seperate instance of loginForm..i am a bit rusty with struts, pls correct me if i am wrong -Original Message- From: Chris Loschen [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2

RE: Could someone on the dev team add link to mailing list on Struts site

2005-05-25 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> You won't believe this, Rick, but they actually make these things > hard to find on purpose. Check the archives if you think I am > kidding. Yeah, you've been quite the jokester so far. http://struts.apache.org/mail.html - Dave -

RE: Security in Struts

2005-05-25 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> Are there any widely used approaches or best practices that we > can follow? The acegi security framework offers a widely used approach: http://acegisecurity.sourceforge.net/ - Dave - To unsubscribe, e-mail: [EMAIL PROTECT

Re: Populating a new form bean and passing it on to the next request

2005-05-25 Thread erikweber
Sorry this doesn't answer your question directly, but I would back up a bit and question your design. Rather than try to invoke your LoginAction manually from another action, I would just invoke all the necessary methods in your ForgotPasswordAction. Presumably logging on is little more than a

Populating a new form bean and passing it on to the next request

2005-05-25 Thread Chris Loschen
Hi all, I'm using Struts 1.1. I've got some "forgot password" functionality working, and the last piece of that is to set a new password for the user who has successfully answered their security question. For that action, I use a "forgotPasswordForm" form bean, which goes to my "newPasswordAction"

Re: JSTL fmt:message with modules

2005-05-25 Thread Martin Gainty
Bob- assuming you set userLocale to english north america width="100%"> so in the jsp if variable userLocale is set as Locale userLocale = new Locale("fr", "CA"); header.title key is located in ApplicationResources_fr_CA.properties located on the com/abcbank/example folder and i

Re: Parsing struts-config. Parser chokes on

2005-05-25 Thread Michael Jouravlev
Have you tried org.apache.struts.config.impl.ModuleConfigImpl.findActionConfigs ? On 5/25/05, Dahnke, Eric (Company IT) <[EMAIL PROTECTED]> wrote: > > Hello, > > I've written a little script to parse struts-config.xml in order to get > a list of the actions and types, etc. It works great if I co

Parsing struts-config. Parser chokes on

2005-05-25 Thread Dahnke, Eric \(Company IT\)
Hello, I've written a little script to parse struts-config.xml in order to get a list of the actions and types, etc. It works great if I comment out the line at the top of the file. Without commenting the line I get an IOException related to a parse error when executing the following code: D

JSTL fmt:message with modules

2005-05-25 Thread Bob Arnott
Hello, just trying out JSTL on a new app I'm writing as I thought it was about time I used it. However, I'm having a bit of trouble with the tag as I don't know how to specify the correct bundle to use. I'm using modules and tiles, so each module has it's own resource bundle, but they share th

Re: use action-form's properties in JSTL

2005-05-25 Thread Wendy Smoak
From: "Yaroslav Novytskyy" <[EMAIL PROTECTED]> > > How can I get a form's property in JSP to use it in EL in JSTL tags. > > > > > <- define here > > <- use here > > If you're going to use JSTL, you'll probably want to switch to the Struts-EL tags so you can use expressions with them as wel

RE: how to get the index of the outer loop

2005-05-25 Thread Benedict, Paul C
Kalyan, Each loop needs to expose their iteration under a different bean name. This is not any different than standard programming loops. Also, I recommend you just JSTL:forEach which is a preferred looping method. ${i},${j} Thanks, Paul -Original Message- From: Wendy Smoak [

Re: how to get the index of the outer loop

2005-05-25 Thread Wendy Smoak
From: "Kalyan Ayyagari" <[EMAIL PROTECTED]> > I have a nested loop using nested:iterate. Inside the inner loop I have a > radio button. I want to group the radio buttons based on the index of the > outer loop. How can I do it? http://struts.apache.org/userGuide/struts-logic.html#iterate You can

Re: Need help

2005-05-25 Thread erikweber
You can find something on DynaActionForm here: http://struts.apache.org/userGuide/index.html You can find JSTL documents here: http://java.sun.com/products/jsp/jstl/reference/api/index.html I have no idea where to find documentation on the different Action varieties on the Web, but they are co

Re: DynaActionForm and the 'pull' model

2005-05-25 Thread Dave Newton
Dakota Jack wrote: [...] and am not interested in Dave's little flame bit. You were interested enough to assume that what I said was flame bait and respond passive-aggresively, when really all I said was that it was obvious that we weren't talking about the same thing. Now for a _better_ e

RE: Fwd: RequestProcessor, cache control, IE bug

2005-05-25 Thread Frank W. Zammetti
Not to beat a dead horse, but the code I posted yesterday was broke in a couple of ways, but I believe I have resolved them all now. In case anyone has interest, please contact me for the updated code (probably not in good form to repost it now to the list, so please eMail me privately). -- Fran

how to get the index of the outer loop

2005-05-25 Thread Kalyan Ayyagari
I have a nested loop using nested:iterate. Inside the inner loop I have a radio button. I want to group the radio buttons based on the index of the outer loop. How can I do it? Here's the code snapshot: OuterProperty: InnerProperty: My Radio Property

Re: Security in Struts

2005-05-25 Thread Aladin Alaily
Hi Tarek, If you want action level security, just write a base action that authenticates the user, and which all other actions extend. In the base action, if the user is valid, then processing continues. Otherwise, the user is redirected to the logged-out page. I would put this logic in th

Re: bean:include on public domain

2005-05-25 Thread Martin Gainty
Raj- James Mitchell suggested you force the include from your action via RequestDispatcher call Did you try that? Are you able to tracert to the url? More importantly what do the tomcat logs say when you invoke your Martin- - Original Message - From: "Raj Tilak" <[EMAIL PROTECTED]> T

Re: Security in Struts

2005-05-25 Thread atta-ur rehman
Hello Tarek, I'd say front your application with a Servlet Filter that checks for the security of the current page against security runles defined in database/XML and probably cached for the current session to avoid hitting database for every request. ATTA On 5/25/05, tarek.nabil <[EMAIL PROTECT

Re: use action-form's properties in JSTL

2005-05-25 Thread atta-ur rehman
Hi, try formName.property formName is the name that you defined in your struts.xml for the form of current action. it should work. and the reason it works that Struts puts the form object under the 'name' key in either request and session scope depending upon the 'scope' attribute of your curre

Security in Struts

2005-05-25 Thread tarek.nabil
Hi everyone, We're building a project using Struts and are about to start on the security module. The requirements are that security should be fine grained, which means that it can not be on the module level, but rather on the JSP or Action level. Actually, the users might ask for security on the

use action-form's properties in JSTL

2005-05-25 Thread Yaroslav Novytskyy
Hello! How can I get a form's property in JSP to use it in EL in JSTL tags. e.g. <- define here <- use here Yaroslav Novytskyy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma

Re: Help Please...... ( Struts on Iplanet )

2005-05-25 Thread Santosh K Rath
Hi Richard , I would like to know , how are you deploying?Are you deploying making war/ear file or deploying the file system. If war file then why don't try putting struts-bean.tld file in WEB-INF folder. After that I would like you write <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix= "bea

Re: Help Please...... ( Struts on Iplanet )

2005-05-25 Thread Richard Reyes
Hi Santosh, I tried both html's and they all worked. Now I tried the second one with <%@ taglib uri="/tags/struts-bean" prefix="bean" %> on top and it generated the same error as above. Thank you for helping me I have no idea whats going on in this iplanet server Richard On 5/25/05, Santosh K

Need help

2005-05-25 Thread senthil Kumar
Hi All., Anybody can give the site name or link to refer the "DynaActionForm", "LookupAction" and JSTL. I want to gothrough that. Regs., Senthil This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged infor

RE: sTRUTS 1.3 - chain flow /again

2005-05-25 Thread Marco Mistroni
Hello Joe & all, I have one question regarding the chain.. Am I correct to assume that The SelectInput command that comes after ValidateActionForm in chain-config.xml should be called in case validation fails? How does that happen? Javadoc says that /** * Validate the properties of the f

Re: Help Please...... ( Struts on Iplanet )

2005-05-25 Thread Santosh K Rath
Richard,    To start with the step by step debugging , I would like you start with a simple jsp page , something like below. Let's see , what happeans. My Title    Welcome to Web Debit Services-Agents Portal. Please contact Telic.net and get your correct URL. After that , let's try

Re: Help Please...... ( Struts on Iplanet )

2005-05-25 Thread Richard Reyes
Hi Santosh, Here are my JSPs and the converted java code On 5/25/05, Santosh K Rath <[EMAIL PROTECTED]> wrote: > > Hi Richard, > Can you please check _index_jsp.java(Line no 123)? It's the java file > created from your jsp page(index.jsp). It might help you. Or else you can > paste th

Re: Help Please...... ( Struts on Iplanet )

2005-05-25 Thread Richard Reyes
Hi Santosh, Heres line 123... if (pageContext != null) pageContext.handlePageException(ex); On 5/25/05, Santosh K Rath <[EMAIL PROTECTED]> wrote: > > Hi Richard, > Can you please check _index_jsp.java(Line no 123)? It's the java file > created from your jsp page(index.jsp). It might help

Re: Help Please...... ( Struts on Iplanet )

2005-05-25 Thread Santosh K Rath
Hi Richard, Can you please check _index_jsp.java(Line no 123)? It's the java file created from your jsp page(index.jsp). It might help you. Or else you can paste the java code as well as jsp code here for better analysis.Thanks. Santosh Richard Reyes <[EMAIL PROTECTED]> 05/25/2005 12:10