Re: Send a 403 response

2005-05-31 Thread Diego Manilla Suárez
Diego Manilla Suárez wrote: Hi! I need to implement some kind of security inside of an Action. When the user doesn't meet certain criteria, I must send him to the "forbidden" page. Right now I'm doing this: if (!allowed) { response.sendError(HttpServletResponse.SC_FORBIDDEN); return nul

Re: Can't not reference to property of object which is property of Bean

2005-05-31 Thread Rokibul Islam Khan
hi, U r getting that because of null property of privateMessage. As u r using nested bean i.e. privateMessage.subject will be interpreted as formBean.getPrivateMessage.getSubject() where as getPrivateMessage() is returning null in ur case which cause Null pointer exception. To avoid this u have two

Can't not reference to property of object which is property of Bean

2005-05-31 Thread Pham Anh Tuan
Hi all, I have 1 problem: I tried to do something like below: test.jsp includes: I've already defined privateMessage in my userBean like below: /** * Comment for privateMessage * This property is Private Message object */ private PrivateMessage privateMessage =

Re: Using multiple resource bundles

2005-05-31 Thread Van
On 5/31/05, Riyaz Mansoor <[EMAIL PROTECTED]> wrote: > > i'm using 1.2.x and 1.3-dev and it works fine. > > i do remember about an ARG bug in the earlier versions. i suggest u > search this mailing list. there might be others who might remember this > here. If I recall correctly, the bug was tha

Re: Struts-1.2.7

2005-05-31 Thread James Mitchell
Sorry Niall, I didn't even think about that possibility. Looks like you are more on top of things than I *thought* I was ;) -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitch

Re: Using multiple resource bundles

2005-05-31 Thread Riyaz Mansoor
i'm using 1.2.x and 1.3-dev and it works fine. i do remember about an ARG bug in the earlier versions. i suggest u search this mailing list. there might be others who might remember this here. :( Duggirala, Satyavati wrote: Yes, I am doing that and "bean:message " works fine. I am having

RE: Using multiple resource bundles

2005-05-31 Thread Duggirala, Satyavati
Yes, I am doing that and "bean:message " works fine. I am having problem only with arg element in validation.xml Is arg element supported in struts1.1 or do we have to use arg0,arg1.. -Original Message- From: Riyaz Mansoor [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 4:12 PM To

Re: Using multiple resource bundles

2005-05-31 Thread Riyaz Mansoor
seems fine. you should declare your message resource in struts-config with the name "mybundle" and it should contain the key "myField.displayname" r u doing that? Duggirala, Satyavati wrote: I am working on a field whose value is an int in the range 0- My code looks in validation.xml l

RE: Using multiple resource bundles

2005-05-31 Thread Duggirala, Satyavati
I am working on a field whose value is an int in the range 0- My code looks in validation.xml looks like this- min0 max -Original Message- From: Riyaz Mansoor [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 31, 2005 3:45 PM To: Struts Users Mailing List Subject: Re

Re: Using multiple resource bundles

2005-05-31 Thread Riyaz Mansoor
hmm. can post the file? Duggirala, Satyavati wrote: Still doesn't work. Is there a element type arg in validation.xml? Can I get any reference from where I could get some more information about using mutiple resource bundles in validator framework? Thanks Satya -Original Message- Fro

RE: Using multiple resource bundles

2005-05-31 Thread Duggirala, Satyavati
Still doesn't work. Is there a element type arg in validation.xml? Can I get any reference from where I could get some more information about using mutiple resource bundles in validator framework? Thanks Satya -Original Message- From: Riyaz Mansoor [mailto:[EMAIL PROTECTED] Sent: Tuesd

Re: Using multiple resource bundles

2005-05-31 Thread Riyaz Mansoor
riyaz Duggirala, Satyavati wrote: Hi We use multiple resource bundles in our Application. By default Struts gets the error messages used in validation.xml from default resource bundle. (ex: prompt.username is obtained from ApplicationResources.properties) How can I make particular fie

Using multiple resource bundles

2005-05-31 Thread Duggirala, Satyavati
Hi We use multiple resource bundles in our Application. By default Struts gets the error messages used in validation.xml from default resource bundle. (ex: prompt.username is obtained from ApplicationResources.properties) How can I make particular field validation error message to be obtaine

Re: Dynamically adding components to pages (using struts and custom tags)

2005-05-31 Thread Dakota Jack
Not sure why Rahul sent you a reference to your own question. Sort of encourages strange iterations! ///;-) Just kidding! In my opinion, using custom tags for this purpose is not the best way to go. Custom tags are meant to decouple code from markup. I would (A) either use a controller/naviga

Re: Struts-faces and conversion errors

2005-05-31 Thread Craig McClanahan
It would be technically feasible to make display the JSF conversion and validation messages (stored in FacesContext) as well as the Struts-specific ones. Could you please file an enhancement request in our issue tracking system? http://issues.apache.org/bugzilla/ Craig On 5/31/05, Emond Papeg

Automatic validation question...

2005-05-31 Thread N G
If I have set up validation as follows: test (radioButton = "firstNameSearch")var-value> If "validwhen" failts, will it try to validate the "required"? In other words, when using automatic validation, the validator goes through the list in "depends"

Re: Dynamically adding components to pages (using struts and custom tags)

2005-05-31 Thread Rahul Akolkar
[ http://marc.theaimsgroup.com/?l=taglibs-user&m=111756793724193&w=2 ] -Rahul On 5/31/05, Marius Botha <[EMAIL PROTECTED]> wrote: > Hi there, > > Hope someone can help me. > > I have a requirement where my system needs to prompt users for certain > information at certain times in a process. To

Re: Linking to Stylesheets

2005-05-31 Thread Dakota Jack
Whatever you deliver via an action can have the caching aspects you code into the situation so that you can force a client to take a new stylesheet if you deliver the css yourself. On 5/31/05, Adam Lipscombe <[EMAIL PROTECTED]> wrote: > Folks, > > > Our JSP's use stylesheets referenced by a stan

Re: technique to show a preview of the image

2005-05-31 Thread Dakota Jack
I don't know why you are storing to a database, Sudip, but if you are I would just store a BufferedImage object and, then, you can deliver the image however you like, i.e. in any format (PNG, GIF, JPEG etc), in any size, with or without alpha transparency, etc. Since IO with files is CPU independe

Re: technique to show a preview of the image

2005-05-31 Thread Dakota Jack
Looks like you sort of hijacked a thread where womeone else was trying to get assistance on another question, Adam. If I am mistaken, sorry, but if I am not it really is better to start your own thread with your own subject than to hijack another person's thread. On 5/31/05, Adam Lipscombe <[EMAI

Re: Linking to Stylesheets

2005-05-31 Thread Martin Gainty
Adam- You need to set no cache for the html pages/images on the client's side so put this right after the Browser client's tag Using the struts-way your web.xml could look like CacheFilter *.jsp /Whatever.jsp nocache cacheTimeout 1 Documentation for

Re: Have state across 2 requests without use of session?

2005-05-31 Thread Dave Newton
Martin Gainty wrote: You can use a session-scoped bean coded within your Action class such as [...] [Original subject line:] Subject: Have state across 2 requests without use of session? Uh... Dave - To unsubscribe, e-

Re: Have state across 2 requests without use of session?

2005-05-31 Thread Martin Gainty
Andy- You can use a session-scoped bean coded within your Action class such as User user = ... look up valid user in the database ...; HttpSession session = request.getSession(); session.setAttribute("user", user); http://struts.apache.org/api/org/apache/struts/taglib/bean/package-summary.h

Re: Have state across 2 requests without use of session?

2005-05-31 Thread Ed Griebel
Here's a couple of ideas: - You can use the same form bean in all 3 pages, using fields for data that doesn't need to be displayed but needs to be passed along. - You can create a button which is populated via data from a form bean property specified with the property= attribute - There's always

RE: technique to show a preview of the image

2005-05-31 Thread Mark Benussi
Adam. If you make changes in your css they are reflected when the file is downloaded with the page. If the client has caching turned on the changes will only be reflected when the cache is cleared manually [CTRL + SHIFT + Refresh]. You can set various arguments on your JSP to enforce that the co

Re: Linking to Stylesheets

2005-05-31 Thread Brandon Mercer
Adam Lipscombe wrote: >Folks, > > >Our JSP's use stylesheets referenced by a standard HTML link tag. E.g. rel="stylesheet" href="pages/calendar/calendar.css"> > > >The graphic designers are complaining 'cos on-the-fly changes made in a >stylesheet does not automatically force a JSP to get re-compi

[OT] Re: Linking to Stylesheets

2005-05-31 Thread Wendy Smoak
From: "Adam Lipscombe" <[EMAIL PROTECTED]> > Our JSP's use stylesheets referenced by a standard HTML link tag. E.g. > > > The graphic designers are complaining 'cos on-the-fly changes made in a > stylesheet does not automatically force a JSP to get re-compiled by Tomcat > 5.0.28. This means they c

Have state across 2 requests without use of session?

2005-05-31 Thread andy wix
Hi, I am having difficulty trying to write a web app without session state (not my choice). As an example, my normal approach, say, to delete a user from a list is: in the 'pre display' action: - fill an arraylist of user objects from the db and set it in the session in the jsp - this arrayl

Linking to Stylesheets

2005-05-31 Thread Adam Lipscombe
Folks, Our JSP's use stylesheets referenced by a standard HTML link tag. E.g. The graphic designers are complaining 'cos on-the-fly changes made in a stylesheet does not automatically force a JSP to get re-compiled by Tomcat 5.0.28. This means they cant see their changes unless they restart TC

RE: technique to show a preview of the image

2005-05-31 Thread Adam Lipscombe
Folks, Our JSP's use stylesheets referenced by a standard HTML link tag. E.g. The graphic designers are complaining 'cos on-the-fly changes made in a stylesheet does not automatically force a JSP to get re-compiled by Tomcat 5.0.28. This means they cant see their changes unless they restart TC

RE: technique to show a preview of the image

2005-05-31 Thread Mark Benussi
If you have a file in the database I would highly recommend persisting it to the file system anyway for performance reasons. A preview of a file is usually a scaled down version and from that point of view I would 'work' on the image to resize it to your required preview dimensions. -Original

technique to show a preview of the image

2005-05-31 Thread sudip shrestha
Any suggestions on showing a preview of the image stored in the database? I found one which is: storing the file in a temporary folder and display from there... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [OT] Business Layer Ideas

2005-05-31 Thread Dakota Jack
Just one last little thing, Peter, so that there is no misunderstanding. It is absolutely critical in the Strategy Pattern that we deal with a Java Bean. A great proportion of the fruits of the Strategy Pattern rely on that so that if your "metamophasis" does not retain this feature, it is not a

Re: [OT] Business Layer Ideas

2005-05-31 Thread Dakota Jack
I meant "I find your note interesting" and not "I find your not interesting". On 5/31/05, Dakota Jack <[EMAIL PROTECTED]> wrote: > Hi, Peter, > > I am not sure what you are saying here. I had trouble following you. > > The Strategy Pattern is roughly the following: > > public class DefaultStra

Re: [OT] Business Layer Ideas

2005-05-31 Thread Dakota Jack
Hi, Peter, I am not sure what you are saying here. I had trouble following you. The Strategy Pattern is roughly the following: public class DefaultStrategyInterface implements StrategyInterface { private Helper helper; public void setHelper(Helper helper) { this.helper = help

Re: DynaActionForm and the 'pull' model

2005-05-31 Thread Dave Newton
Laurie Harper wrote: Nope, Dave nailed it. Re-read the requirement I described. The point is to avoid using actions to load the data and pass it to the view. If you re-read my description of what I mean by 'push' vs. 'pull' rather than simply saying the terms mean something different it might

Re: Displaying files from database on a webpage

2005-05-31 Thread Frank W. Zammetti
Have a look at the sample app I wrote to demonstrate the DownloadAction: http://wiki.apache.org/struts/StrutsFileDownload There is some code in there for doing exactly what your trying to do. You might find an answer there. I'm not sure off-hand why your getting that exception unfortunately. -

Struts-faces and conversion errors

2005-05-31 Thread Emond Papegaaij
Hello, I'm currently evaluating Struts in combination with JSF for use in our company. As a simple test-case I decided to convert the example application from the JSF tutorial (the number guessing game). All works very well, except for one issue: conversion messages. The form holding the enter

RE: [OT] Business Layer Ideas

2005-05-31 Thread Pilgrim, Peter
> -Original Message- > From: Dakota Jack [mailto:[EMAIL PROTECTED] ==== > > > I should have added that Rod (Johnson) in the book cited pointedly > advocates extensive use of the Strategy Pattern, see pp. 421 ff. The > use of CoR in Struts 1.3 for the extensible RequestProcessor is no

Displaying files from database

2005-05-31 Thread Janek Ziniewicz
Hi, what I want to do is display in a webpage file which is stored in database. My struts app should recognize its mime type and according to this perform suitable action (eg if it is *pdf run acrobat, if *html just display it, etc). I know how to put and get this data from dbase and how to recog

numeric format with

2005-05-31 Thread Andreas Toom
Hello, is it possible to add zero-padding with format in the tag?, I have used format with dates before but I can't find any good examples for numeric data. My bean property is a int representing a month and I want to write 01, 02,.. instead of just 1,2,.. /Andreas ---

Displaying files from database

2005-05-31 Thread Janek Ziniewicz
Hi, what I want to do is display in a webpage file which is stored in database. My struts app should recognize its mime type and according to this perform suitable action (eg if it is *pdf run acrobat, if *html just display it, etc). I know how to put and get this data from dbase and how to recog

Re: Struts-1.2.7

2005-05-31 Thread Niall Pemberton
There was a mistake in the BeanUtils 1.7.0 release - the manifest was not updated to the correct version. So although the manifest in the BeanUtils jar shipped with Struts says its BeanUtils 1.6 - it is actually BeanUtils 1.7.0. You can check this yourself by downloading BeanUtils 1.7.0 directly an

Displaying files from database on a webpage

2005-05-31 Thread Janek Ziniewicz
Hi, what I want to do is display in a webpage file which is stored in database. My struts app should recognize its mime type and according to this perform suitable action (eg if it is *pdf run acrobat, if *html just display it, etc). I know how to put and get this data from dbase and how to reco

Dynamically adding components to pages (using struts and custom tags)

2005-05-31 Thread Marius Botha
Hi there, Hope someone can help me. I have a requirement where my system needs to prompt users for certain information at certain times in a process. To do this I need to be able to add components to a page at run time based on a user's permissions. E.g. if the user is supposed to specify a date

Re: HOWTO: multiple values field | please don't mix threads

2005-05-31 Thread delbd
Please don't use a replay to another mail as the basis of your questions. This mixes the mail Threads and make it more difficult to manage! Well this all doesn't answer my original question on multivalue fields, still pending ^_^ Le Mardi 31 Mai 2005 10:48, [EMAIL PROTECTED] a écrit : > onclick

Displaying files from database on a webpage

2005-05-31 Thread Janek Ziniewicz
Hi, what I want to do is display in a webpage file which is stored in database. My struts app should recognize its mime type and according to this perform suitable action (eg if it is *pdf run acrobat, if *html just display it, etc). I know how to put and get this data from dbase and how to reco

AW: HOWTO: multiple values field.

2005-05-31 Thread Andreas Solarik
I think the question was more along the lines of "its hidden -> why have hooks for ui interaction?"... I *think* that the answer might lie in the inheritance structure -> take a look at the BaseHandlerTag and what extends from it. Maybe thats the answer? regards, andreas -Ursprungliche Nac

Send a 403 response

2005-05-31 Thread Diego Manilla Suárez
Hi! I need to implement some kind of security inside of an Action. When the user doesn't meet certain criteria, I must send him to the "forbidden" page. Right now I'm doing this: if (!allowed) { response.sendError(HttpServletResponse.SC_FORBIDDEN); return null; } The problem is that the

RE: HOWTO: multiple values field.

2005-05-31 Thread Nitin Mandolkar
Onclick: Java script event hander executes the code when an element get a mouse click. ondblclick: Java script event hander executes the code when an element get a mouse double click. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 31 May 2005 09:48 To: Strut

Re: HOWTO: multiple values field.

2005-05-31 Thread amitava . basak
onclick and ondblclick events on a tag are provided ? What are its uses if at all? Amitava Basak Tata Consultancy Services Limited Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the inte

HOWTO: multiple values field.

2005-05-31 Thread delbd
Hello, in a form user is allowed to enter multiple values for a field foo. There can be an unlimited number of those entries. I saw there is the possibility to do this: which should create an entry for each foo value in the form, using public String getFoo(int index) public void setFoo(i

RE: [OT] JavaOne Social Gathering in San Francisco on 6/26 at 8pm

2005-05-31 Thread Pilgrim, Peter
> -Original Message- > From: Van [mailto:[EMAIL PROTECTED] > Sent: 31 May 2005 04:28 > To: Struts Users List > Subject: [OT] JavaOne Social Gathering in San Francisco on 6/26 at 8pm > > > Please join us for the third annual web developer gathering during > JavaOne in San Francisco. After