Re: seeking advice on authorization and authentication

2005-04-25 Thread delbd
Here we have application using struts and giving priviledges to some users or some roles. We rely on container security to handle login. We simply put a link to /jsp/admin which redirects to the / and, in web.xml, we ask for everything under /jsp/admin to require authentification. This way requ

Re: Displaying Formatted Vector Data

2005-04-25 Thread Andrew Thorell
I've been trying this segment of code, but it seems to be failing and no errors are being reported in the log file for me to use to help debug, any ideas? commcenter is the attribute defined in struts-config.xml in the action listing. callto is the name of the Vector / getter / setter methods. I'

Re: graphics

2005-04-25 Thread Michael Jouravlev
Remember, that you can do a lot with client-side javascript. Send raw data to the browser, and render chart there. Seems more logical, because it takes the load off the server and off the network (the latter may be not true for huge data set...). Check this out, for example: http://www.javascriptk

RE: Displaying Formatted Vector Data

2005-04-25 Thread Fogleson, Allen
You could use logic:iterate to iterate through the collection. Al -Original Message- From: Andrew Thorell [mailto:[EMAIL PROTECTED] Sent: Monday, April 25, 2005 4:51 PM To: Struts Mailing List Subject: Displaying Formatted Vector Data Greetings all, I was wondering if anyone had any i

Ssl+validator give me problems

2005-04-25 Thread kurt
Hi I'm trying to make a Struts project under Tomcat. I use ssl and it works. I use Validator too. Both works - but not together. Fx the index.jsp page has a and the action is "invoked" but the form has already been validated by the Validator - probably because some kind of redirection is done

Displaying Formatted Vector Data

2005-04-25 Thread Andrew Thorell
Greetings all, I was wondering if anyone had any ideas on the best way to display data from a Vector in a table column where it doesn't dump out like the following: [800-555-1212, 800-555-1212, 800-555-1212, ... ] I'm using the following tag to get that information out, but I need each number on

2 modules, cannot retrieve mapping?

2005-04-25 Thread Scott Purcell
I am trying to use two modules for struts. 1 for a developer to work on the main section, and another for the admin section for another developer. I am getting an error when trying to add a form tag to a jsp page that lives under the second module: /Admin/mypage.jsp (jsp location from docroot)

Re: graphics

2005-04-25 Thread Lucas Bern
before someone anwser me! ; - ) i found something that seems to be great! and it is free documented!!! http://cewolf.sourceforge.net/new/index.html joy it! Lucas Lucas Bern <[EMAIL PROTECTED]> wrote: Hi guys! anything better than jFreeChart?... or at least "free" documented? Thanks! Luc

Re: Passing in key to or at runtime

2005-04-25 Thread Jeff Beal
Have you looked at and ? -- Jeff On 4/25/05, Greg Pelly <[EMAIL PROTECTED]> wrote: > Is it possible to use or to look up a key that is > not known until runtime (ie, stored in the request)? > > I have a results screen that will display a message that varies depending on > the query performed.

graphics

2005-04-25 Thread Lucas Bern
Hi guys! anything better than jFreeChart?... or at least "free" documented? Thanks! Lucas Greg Pelly <[EMAIL PROTECTED]> wrote: Is it possible to use or to look up a key that is not known until runtime (ie, stored in the request)? I have a results screen that will display a message that varies de

Passing in key to or at runtime

2005-04-25 Thread Greg Pelly
Is it possible to use or to look up a key that is not known until runtime (ie, stored in the request)? I have a results screen that will display a message that varies depending on the query performed. I would like this message to be retrieved from the bundle in the struts-config.xml. For ex

Re: Action call another action?

2005-04-25 Thread Michael Jouravlev
Of course an orphaned item will sit for a while in the session. But does not this work the same in desktop apps too? Even worse, in pessimistic systems when you start editing you lock the record. Then you go have your coffee to piss off colleague who needed the same record ;-) In my case only one

RE: MessageTag set specific Local

2005-04-25 Thread =?iso-8859-1?Q?Marcel_St=F6r?=
vinod perla wrote: > vinod wrote: > u can set to a specific Locale in the Action Class by > calling the method setLocale(HttpServletRequest > request,java.util.Locale locale).The default scope of this is session. So, what you're saying is, that one cannot

Re: Managing exceptions

2005-04-25 Thread Mark Shifman
I am using struts 1.2.6 and I tried what Joe Germuska said however I am missing something. The message shows up so that displays it. Or to put it another way ${message} displays it while ${message} doesn't. So it looks like the exception is generating an ActionErrors object. I gener

Re: Action call another action?

2005-04-25 Thread Adam Hardy
On 25/04/05 17:03 Michael Jouravlev wrote: On 4/25/05, Ted Husted <[EMAIL PROTECTED]> wrote: in my sample CRUD application i have editAction, which displays an item in HTML form. It takes item ID as parameter. This action is mapped, it can be called directly from a page using link, like editAction.

Re: seeking advice on authorization and authentication

2005-04-25 Thread Dave Newton
Scott Purcell wrote: I am creating a shopping-cart type application using struts and have a question. The site itself does not have any authentication on it, as people just browse and add stuff to the cart. But the site does require some data manipulation into the database. Upon thinking about t

Re: seeking advice on authorization and authentication

2005-04-25 Thread Michael Jouravlev
In our application we used what we called "guard tag". It is a simple custom tag, which contains something like this: HttpSession session = pageContext.getSession(); String userID = (String)session.getAttribute(Constants.USERID_KEY); We put this tag in the beginning of a page: If there is

Re: seeking advice on authorization and authentication

2005-04-25 Thread Erik Weber
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/ Chapter 32: Security Should help. Erik Scott Purcell wrote: I am creating a shopping-cart type application using struts and have a question. The site itself does not have any authentication on it, as people just browse and add stuff to the cart. But

getting certain properties from message resources to the jsp's

2005-04-25 Thread Robert Sanheim
I want to do something fairly simple which I haven't seen a good example for yet: iterate through all messages from my default application.resources file that match a certain pattern, and display them on a jsp. The use case here is a navigational page that I want to have generated dynamically fro

seeking advice on authorization and authentication

2005-04-25 Thread Scott Purcell
I am creating a shopping-cart type application using struts and have a question. The site itself does not have any authentication on it, as people just browse and add stuff to the cart. But the site does require some data manipulation into the database. Upon thinking about this, I would like t

Re: Can you make Tomcat 5 create multiple JSESSIONID cookies in Firefox?

2005-04-25 Thread Ted Husted
On 4/22/05, Dick Starr <[EMAIL PROTECTED]> wrote: > I am new to both Struts and web applications and in fact am writing my > very first web application, so I may not understand how this all works. > In the app it's possible for more than one user to be on the same PC > (e.g. a user needs their supe

Re: Caching Java Objects

2005-04-25 Thread Erik Weber
temp temp, If you are going to cache: Use request scope for objects that should be cached for the duration of a single request servicing. Use session scope for objects that should be cached for the duration of a user's session (more than one request) and that represent data unique to the user,

Re: How can I get people to look at my contribution? [was: Re: Action ...

2005-04-25 Thread Dakota Jack
James has been and will continue to be, no doubt, a great asset to Struts. What that has to do with his misconception discussed in this thread is beyond me. But, as an aside, James, you have my "atta boy" too. Jack On 4/25/05, Ted Husted <[EMAIL PROTECTED]> wrote: > The plain truth is that an A

Re: Action call another action?

2005-04-25 Thread Michael Jouravlev
On 4/25/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > On the subject of one Action calling another, one option that is often > overlooked is to simply instantiate another Action yourself and call > process() on it manually. I.e., in Action A do: > > Action ab = new ActionB(); > ab.process(m

Re: Action call another action?

2005-04-25 Thread Michael Jouravlev
On 4/25/05, Ted Husted <[EMAIL PROTECTED]> wrote: > > in my sample CRUD application i have editAction, which displays an > > item in HTML form. It takes item ID as parameter. This action is > > mapped, it can be called directly from a page using link, like > > editAction.do?ID=1234. Another way to

Re: How can I get people to look at my contribution? [was: Re: Action ...

2005-04-25 Thread Dave Newton
Ted Husted wrote: Anyone with an email account can post to this list. That'll teach 'em to give me an email account. Muahahahahaha! All your Struts are belong to us. Dave "I thought something weird was going on" Newton - To unsu

Caching Java Objects

2005-04-25 Thread temp temp
Is it similar to sessions ie each user will have his own cached Object or all the users share the same Cached object . I have a jsp with multiple submit buttons .Each submit buttoncalls database to get data. Its like I have 3 submit buttons 1st gets User comments . 2nd gets some re

Re: Action call another action?

2005-04-25 Thread Frank W. Zammetti
On the subject of one Action calling another, one option that is often overlooked is to simply instantiate another Action yourself and call process() on it manually. I.e., in Action A do: Action ab = new ActionB(); ab.process(m f, r, r); The benefit to this is that you don't need to go through t

Re: Action call another action?

2005-04-25 Thread Frank W. Zammetti
On the subject of one Action calling another, one option that is often overlooked is to simply instantiate another Action yourself and call process() on it manually. I.e., in Action A do: Action ab = new ActionB(); ab.process(m f, r, r); The benefit to this is that you don't need to go through t

Re: MessageTag set specific Local

2005-04-25 Thread vinod perla
vinod wrote: u can set to a specific Locale in the Action Class by calling the method setLocale(HttpServletRequest request,java.util.Locale locale).The default scope of this is session. regards vinod On 4/25/05, Marcel Stör <[EMAIL PROTECTED]> wrote: > Hi all, > > Had my first Str

MessageTag set specific Local

2005-04-25 Thread Marcel Stör
Hi all, Had my first Struts experiences yesterday... MessageTag uses the browser's language settings to determin the Locale, which is being used to retrieve language-specific messages. So far so good. How can I force MessageTag to use a particular Locale for a request? The API suggests to use the

Re: How can I get people to look at my contribution? [was: Re: Action ...

2005-04-25 Thread Ted Husted
The plain truth is that an ASF project is not a democracy. It a meritocracy. People earn merit and credibility by doing things that matter and avoiding things that don't matter. One way to earn merit and credibility is to make helpful posts. But hurtful, unhelpful posts destroy merit just as easil

Re: Action call another action?

2005-04-25 Thread Ted Husted
> in my sample CRUD application i have editAction, which displays an > item in HTML form. It takes item ID as parameter. This action is > mapped, it can be called directly from a page using link, like > editAction.do?ID=1234. Another way to call it is to call it from > createAction, which creates n

Re: Problems with Struts 1.2.4 - ActionMessage vs ActionError

2005-04-25 Thread Les Dunaway
OK, I have gotten to where I know what is happening. Now, I hope someone can help me to understand why. The ActionMessage is getting properly saved in the request and the Further, the error has a valid key into the current application resouces . Other tags My conclusion: for some reason, t

Re: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope

2005-04-25 Thread John Moore
I should also point out that if I treat the whole page as a JSP 2.0 tag (which I'm currently doing, until I resolve the JSP/Struts issue), it works. That is, if instead of having: I have: Then the html:input tags contained within the body (provided by jsp:doB

Re: How to Known if there error for a property

2005-04-25 Thread Rodolfo =?iso-8859-1?Q?Garc=EDa_Esteban=2FCYII?=
Thanks, this works very well Rodolfo García Esteban Canal Isabel II División de Aplicaciones Técnicas C/ Santa Engracia, 125 Edificio 8 Tel. 91 545 10 00 - Ext. 2128 Fax. 91 545 14 41 ___ Erik Weber <[EMAIL PROTECTED]> 25/04/2005 09:33 Por favor, re

Re: How to Known if there error for a property

2005-04-25 Thread Erik Weber
Rodolfo, I attached two posts from Joe, which you can see are from last November. I am making some assumptions about your question (perhaps you want to display the error message right on top of the input field in addition to/rather than in a bulleted list at the top of the page), so I apologize

How to Known if there error for a property

2005-04-25 Thread Rodolfo =?iso-8859-1?Q?Garc=EDa_Esteban=2FCYII?=
Hi, I´m using struts 1.2.4, after validate a form. I need to know if there is a message for a property before print, how can I do? Thanks in advance, Rodolfo

Re: PropertyUtils

2005-04-25 Thread Erik Weber
I could be mistaken, but I think what you want to look at is BeanUtils.copyProperties. Erik tarek.nabil wrote: Hi everyone, I have some insert and update actions where I copy the data the user entered from the ActionForm to a DTO object which I send as a parameter to my business method. Since I c