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: logic:iterate property=fooArray id=foo html:text property=foo indexed=true/ /logic:iterate which should create an entry

Re: HOWTO: multiple values field.

2005-05-31 Thread amitava . basak
onclick and ondblclick events on a html:hidden 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

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:

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

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

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

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

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

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

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

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

numeric format with bean:write

2005-05-31 Thread Andreas Toom
Hello, is it possible to add zero-padding with format in the bean:write 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

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 not a

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

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.

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: [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 =

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

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

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: 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.

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. link 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-compiled by Tomcat 5.0.28. This

Linking to Stylesheets

2005-05-31 Thread Adam Lipscombe
Folks, Our JSP's use stylesheets referenced by a standard HTML link tag. E.g. link 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-compiled by Tomcat 5.0.28. This

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

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

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 html:hidden fields for data that doesn't need to be displayed but needs to be passed along. - You can create a html:submit button which is populated via data from a form bean property specified with the property=

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);

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,

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 head tag META HTTP-EQUIV=PRAGMA CONTENT=NO-CACHE Using the struts-way your web.xml could look like filter-mapping filter-nameCacheFilter/filter-name

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

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

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 standard

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

2005-05-31 Thread Rahul Akolkar
[ http://marc.theaimsgroup.com/?l=taglibs-userm=111756793724193w=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 do this

Automatic validation question...

2005-05-31 Thread N G
If I have set up validation as follows: field property=myField depends=validwhen, required arg0 key=myForm.FirstName/ var var-nametest/var-name var-value(radioButton = firstNameSearch)var-value /var /field If validwhen failts, will it try to validate the

Re: Struts-faces and conversion errors

2005-05-31 Thread Craig McClanahan
It would be technically feasible to make s:serrors 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,

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

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: arg0 key=prompt.username/ prompt.username is obtained from ApplicationResources.properties) How can I make particular field validation

Re: Using multiple resource bundles

2005-05-31 Thread Riyaz Mansoor
arg key=field.displayname bundle=mybundle position=0 / 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: arg0 key=prompt.username/

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:

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-

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- form name=myForm field property=myField depends=integer,intRange page=1 arg key=myField.displayname bundle=mybundle position=0 / arg1 name=intRange key=${var:min} resource=false/

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

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
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: 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:

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 that the

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: html:form action=/user/sendPrivateQuestion.do styleId=userBean html:text property=privateMessage.subject name=userBean/ /html:form I've already defined privateMessage in my userBean like below: /**

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