RE: Can I use RequestProcessor to handle session?

2003-11-06 Thread Navjot Singh
yes and probably the right way to do -Original Message- From: Samanth Athrey [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 10:35 AM To: [EMAIL PROTECTED] Subject: Can I use RequestProcessor to handle session? Hello Gurus I am trying to handle session timeout by extending

[OT] Security Folter

2003-11-06 Thread Mike Duffy
Does anyone know if SecurityFilter supports encrypted passwords for a DB realm, or must passwords be stored in plain text? http://securityfilter.sourceforge.net/ Thanks! Mike __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard

html:submit and 2 buttons

2003-11-06 Thread Frers Michael
Hello just a little question about the taglib i want to have one form with 2 buttons in it one button should do new the other update how can i make my action class know which button was hit? additionally i want that the buttons get there labels from a property file that works as shown below

FAQ (Passing Variables Between Actions); But, Stuck and Need Help

2003-11-06 Thread Caroline Jen
Passing variables from one action to another is a frequently asked question. The answer is to use either hidden fields or a session object. The story starts with searching the database. My application offers options to search the database by author, title of the article, article ID, or .

Re: Trouble redirecting

2003-11-06 Thread Mathieu Grimault
Marcella, Does this work ? I've tried it and can't exit from the context path, the url returned is always like /context/http://www.yahoo.fr; !!! If anyone has a clue, i wonder why it works for you and not for me - Original Message - From: Marcella Turner [EMAIL PROTECTED] To: [EMAIL

RE: validator, range

2003-11-06 Thread Budi Rostiarso
I've used constants before, for date format pattern and maxlength. And looks like i'm using the appropriate validator afterall. So, maxInt is 2147483647. Can you give me the exact maxFloat value...? hehe...just kidding. Thanks Dave. -Original Message- From: David Friedman

Re: OT - what is a blonk

2003-11-06 Thread Mark Lowe
Nottingham Forest beat Luton 2 -1 I assume the rest of your question was an attempt at humor. Cheers Mark On Thursday, November 6, 2003, at 05:03 AM, [EMAIL PROTECTED] wrote: This is off topic but I couldn't wait til casual friday... I have the following problem in my web-app. When I try and

org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE

2003-11-06 Thread Andreas . Schmaelzlein
Hi there, i get the following message by start a jsp/java application which use struts. (Tomcat 4.1.24) My web.xml contains: servlet servlet-nameideal/servlet-name servlet-classorg.tzi.ideal.ui.servlet.ExtendedActionServlet/servlet-class

Re: FAQ (Passing Variables Between Actions); But, Stuck and Need Help

2003-11-06 Thread Adam Hardy
On 11/06/2003 08:26 AM Caroline Jen wrote: Passing variables from one action to another is a frequently asked question. The answer is to use either hidden fields or a session object. [snip...] Now, the application has another user case - editors. An editor only retrieve and view all articles

RE: html:submit and 2 buttons

2003-11-06 Thread Arik Levin ( Tikal )
You can just use JavaScript passing some parameters You can also try this approach: http://husted.com/struts/tips/003.html -Original Message- From: Frers Michael [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 6:54 PM To: Struts Users Mailing List Subject: html:submit and

Re[4]: EL Expression in html:hidden tag

2003-11-06 Thread Arne Brutschy
Hello, Monday, November 3, 2003, 7:20:31 PM, you wrote: KS I'm jumping in late on this thread, but why bother using Struts-EL at all under KS JSP 2.0? The original (RT) tags should be magically EL-aware as long as the app KS uses a Servlet 2.4 format web.xml, right? Oh, really? I didn't know

struts-menu and internationalization

2003-11-06 Thread koen boutsen
Has anyone used internationalization in the struts-menu ? If so, could you explain me how I can do it. I tried the following : menu-config.xml: Menu name=organisation title=label.logout Item name=organisationOverview title=label.overview forward=/organisation/searchFirstLetter / /Menu

dynamically populating options in form

2003-11-06 Thread Anindito De
Hi, We have two select boxes in an HTML form. Based on the option that the user selects in the first box and some other considerations, the contents in the second box get populated. Are there any reasonable means of doing this in struts with minimal use of JavaScript ? Thanks in advance Anindito

Basic JSTL Question...

2003-11-06 Thread Jacob Wilson
Hi... I would appreciate if someone out there helps me with these basic JSTL questions... 1. In c:foreach how do I check whether the collection contains values??? When it has values, it iterates a loop fine... Now, if I want to specify 'No records' how do I do that??? 2. How do I check

RE: dynamically populating options in form

2003-11-06 Thread Andrew Hill
Well at the least you would probably want to use some javascript to trigger the submission of the form onchange of the first select so that you can populate the second select based on the first's value over on the server side and then redisplay the form. To do it without any javascript you would

RE: Basic JSTL Question...

2003-11-06 Thread Arik Levin ( Tikal )
1) See operators (empty) http://developer.java.sun.com/developer/technicalArticles/javaserverpages/fa ster/ 2) it goes : c:choose c:when/c:when c:otherwise/c:otherwise /c:choose -Original Message- From: Jacob Wilson [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 1:04 PM

upload validation failures are blanking my form values

2003-11-06 Thread Caoilte O'Connor
Hi, I've got a bizarre bug with the struts-upload tools. Struts-upload works when, 1) everything validates correctly. 2) there is a validation error and you do not attempt to upload a file. but it breaks as soon as i try to upload a file and there is a validation error for any reason. The

RE: html:submit and 2 buttons

2003-11-06 Thread Philip Mark Donaghy
Your action can read the value attribute of your submit tag. This is the label in your case. bean-el:message key=search.new/ Use the request.getParameter to find out which button was clicked. Give each of your submit buttons a different NAME. request.getParameter(NAME) will return the label of

request processor error.

2003-11-06 Thread Abhijeet Mahalkar
Just an hour before my websphere 5.0 was working properly but suddenly it started giving following error and my websphere 5.0 server automatically stus down after few minutes. and this error comes in a loop and finally it throws StackoverFlow exception Will any body help me to underrstand the

validwhen + struts 1.1

2003-11-06 Thread Vara Prasad Reddy
I am currently using struts 1.1. Is there a way I can use the "validwhen" functionality of future coming struts 1.2. Something like I can take only the class files of validwhen and use it along with struts 1.1 can someone detail me on this? Thanks in advance Vara Prasad

Re: upload validation failures are blanking my form values

2003-11-06 Thread Rajat Pandit
i am waiting for an answer as well. i also had a similar problem Caoilte O'Connor wrote: Hi, I've got a bizarre bug with the struts-upload tools. Struts-upload works when, 1) everything validates correctly. 2) there is a validation error and you do not attempt to upload a file. but it breaks

Re: org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE

2003-11-06 Thread Dirk Markert
Hello Andreas, do you have your IdealMessageResources file in your WEB-INF directory? *** ASnd Hi there, ASnd i get the following message by start a jsp/java application which use ASnd struts. (Tomcat 4.1.24) ASnd My

RE: dynamically populating options in form

2003-11-06 Thread Nimish Chourey , Tidel Park - Chennai
Something like Below .. The Onchange event will trigger the Submission to another action which then keeps the collection in request/session scope and select Box B is then populated ..See the code below .. script function callAction(){

AW: org.apache.jasper.JasperException: Cannot find message resour ces under key org.apache.struts.action.MESSAGE

2003-11-06 Thread Andreas . Schmaelzlein
merci - that´s it ! -Ursprüngliche Nachricht- Von: Dirk Markert [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 6. November 2003 13:06 An: Struts Users Mailing List Betreff: Re: org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE

RE: struts-menu and internationalization

2003-11-06 Thread Paul McCulloch
I use struts menu, with the CoolMenu displayer, and everything works fine. Your config looks ok. What exactly isn't working? There is a struts-menu specific mailing list, which would be a more approriate place to ask for help. Paul -Original Message- From: koen boutsen [mailto:[EMAIL

Re: Re[4]: EL Expression in html:hidden tag

2003-11-06 Thread Kris Schneider
Yup, that's the theory anyway. As of JSP 2.0 (with a Servlet 2.4 format web.xml that has not explicity deactivated EL evaluation), request-time attribute values can be specified using either the familiar scriptlet expression (%= %) or the EL (${}). So, any pre-JSP 2.0 tags that have attributes

Re: intRange Validation works but displays always null

2003-11-06 Thread struts
Untill now no solutions where found for this problem. Anybody has the solution ? thx. Hello Martin, change arg0 key=insertData.p_datum_t / to arg0 key=errors.range / *** MG Hello togehter, MG i have a problem

Re: [OT] Security Folter

2003-11-06 Thread Max Cooper
I haven't tried it myself, but I did get a bug report from someone trying to do that. The bug was fixed, so I think it is working now. SecurityFilter doesn't come with any realm implementations(*), but you can use the CatalinaRealmAdapter to wrap a realm from Tomcat that will do password

Re: upload validation failures are blanking my form values

2003-11-06 Thread Susan Bradeen
Maybe this archive thread can help you? http://marc.theaimsgroup.com/?t=10475202833r=1w=2 Susan On 11/06/2003 06:22:05 AM Caoilte O'Connor wrote: Hi, I've got a bizarre bug with the struts-upload tools. Struts-upload works when, 1) everything validates correctly. 2) there is a

RE: struts-menu and internationalization

2003-11-06 Thread koen boutsen
When a user logs in, I give him a default language, e.g. English, and create the appropriate Locale. This user sees the menu in the correct language. When this user switches his language, by clicking an image, I create another Locale, e.g. French. All the other labels I use, change into the

data-source connection keeps closing

2003-11-06 Thread David Parry
After days of googling and trawling through the mail archives, I still can't find any explanation for this... I'm trying to get a DataSource that's been configured in struts-config.xml and use the connection in my Model. Every time I try to use the connection it says that it has closed

RE: data-source connection keeps closing

2003-11-06 Thread Geert Van Landeghem
David, hope this helps: data-sources data-source type=com.mysql.jdbc.jdbc2.optional.MysqlDataSource set-property property=autoCommit value=true/ set-property property=description value=MySql Data Source/ set-property property=driverClass

Re: upload validation failures are blanking my form values

2003-11-06 Thread Caoilte O'Connor
it's not quite the same problem as that guy is having. I don't mind file fields being blanked, because chances are the validation error is from that particular file being too big. my problem is that every single field in the form is being blanked (ie text ones which describe the file too, not

RE: Struts + itext

2003-11-06 Thread Greg Hess
Gonzalez, Probably more than you need but here is an example: package com.wrappedapps.boutique.view.admin; import java.io.*; import java.util.*; import java.text.*; import java.awt.Color; import javax.servlet.*; import javax.servlet.http.*; import org.apache.struts.action.*; import

RE: Struts-Validation

2003-11-06 Thread Ramadoss Chinnakuzhandai
yes Rickas exactly like what you mentioned what I did is first I just called super.validate() in my validate method of ActionForm then did the custon validation...btw is there any way in which I can validate those fields in framework itself..??? one like NotRequiredIf...?? like I should

RE: html:submit and 2 buttons

2003-11-06 Thread Greg Hess
I have often added form properties to represent flags for the different button actions to process. My ActionForm would have two properties update and new: setUpdate(boolean flag){} boolean isUpdate() For the submit buttons: html:submit property=update value=true / If I have to use an image

RE: Struts + itext

2003-11-06 Thread Gonzalez Comesaña, Sergio Eduardo
Thank you ! -Mensaje original- De: Greg Hess [mailto:[EMAIL PROTECTED] Enviado el: jueves, 06 de noviembre de 2003 15:21 Para: 'Struts Users Mailing List' Asunto: RE: Struts + itext Gonzalez, Probably more than you need but here is an example: package

RE: upload validation failures are blanking my form values

2003-11-06 Thread Greg Hess
Try setting the redirect=true for your error action forward. Not exactly sure of the exact problem but this has solved my problems with error reporting with forms with file uploads. HTH, Greg -Original Message- From: Caoilte O'Connor [mailto:[EMAIL PROTECTED] Sent: Thursday, November

RE: validwhen + struts 1.1

2003-11-06 Thread Marc Dugger
Blankvalidwhen is in CVS right now. Check out nightly build if it's worth it to you. -Original Message- From: Vara Prasad Reddy [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 5:32 AM To: struts Subject: validwhen + struts 1.1 Importance: High I am currently

[OT - Design] Needing Fast Access to 300,000 Records

2003-11-06 Thread Jerry Jalenak
Hi All - I've been trying to figure out a good way of handling something, and just can't quite seem to get a grip on the best approach. Here's what I've got: Two database tables - Table 1 has a BILLING_CODE and an ACCOUNT_CODE. Table 2 has the ACCOUNT_CODE and other account information (name,

RE: jsp output to file

2003-11-06 Thread Greg Hess
To achive this I generaly use a utility method as defined below, note the path argument will contain a full url including the session Id key as the jsp is generaly relying on session data to build the output for example(http://localhost/myapp/someAction.do;jsessionid=thesessionid). The return can

Re: [OT - Design] Needing Fast Access to 300,000 Records

2003-11-06 Thread Vic Cekvenich
Jerry Jalenak wrote: Hi All - I've been trying to figure out a good way of handling something, and just can't quite seem to get a grip on the best approach. Here's what I've got: Two database tables - Table 1 has a BILLING_CODE and an ACCOUNT_CODE. Table 2 has the ACCOUNT_CODE and other

RE: jsp output to file

2003-11-06 Thread Jack Bakker
Thanks, I'll give this a try. -- jack -Original Message- From: Greg Hess [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 9:47 AM To: 'Struts Users Mailing List' Subject: RE: jsp output to file To achive this I generaly use a utility method as defined below, note the

multibox - Null attribute name ServletException

2003-11-06 Thread ZYD
I tried to use multibox. I copied the code snippet from Struts in Action, but I got: [ServletException in:/WEB-INF/jsp/form/multiboxTest.jsp] Null attribute name' --- This is my multiboxTest.jsp: %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean

Access message resources from Action?

2003-11-06 Thread Brice Ruth
This seems like a simple thing to do, and I could swear I've seen it answered on the list - but I can't find it! How do I access the message resources that I get at from a JSP using bean:write locale=localeObj key=message.key/ from an Action? -- Brice D. Ruth Sr. IT Analyst Fiskars Brands,

Re: [OT - Design] Needing Fast Access to 300,000 Records

2003-11-06 Thread David Graham
--- Jerry Jalenak [EMAIL PROTECTED] wrote: Hi All - I've been trying to figure out a good way of handling something, and just can't quite seem to get a grip on the best approach. Here's what I've got: Two database tables - Table 1 has a BILLING_CODE and an ACCOUNT_CODE. Table 2 has

RE: [OT - Design] Needing Fast Access to 300,000 Records

2003-11-06 Thread Jerry Jalenak
Vic - This is still in the design stage, so I don't have a SQL statement to provide. I'm looking for the best approach to handling what is essentially a table lookup where I need two keys (BILLING_ACCOUNT and ACCOUNT_CODE) The scenario is this: When one of my clients logs on to the

RE: struts-menu and internationalization

2003-11-06 Thread Paul McCulloch
A quick look at the source code suggests that the locale used is either the loacle of the request (set by your browser) or some locale object in some scope. You need to tell the menu:useMenuDisplayer tag how to access your locale object. If for instance you put the user's locale in session scope

RE: [OT - Design] Needing Fast Access to 300,000 Records

2003-11-06 Thread Greg Hess
To avoid having 300,000 records sitting in memory I generally have my queries return record id's. My DAO returns an int[] or ResultObjects collection containing record id's that I store in some scope(session) as it takes little mem. The records are not generally all displayed at once so I only

RE: Access message resources from Action?

2003-11-06 Thread Paul McCulloch
((MessageResources) request.getAttribute(Globals.MESSAGES_KEY)).getMessage(locale, message.key) Paul -Original Message- From: Brice Ruth [mailto:[EMAIL PROTECTED] Sent: 06 November 2003 14:51 To: Struts Users Mailing List Subject: Access message resources from Action? This seems like a

Re: Access message resources from Action?

2003-11-06 Thread Kris Schneider
Acton.getResources(HttpServletRequest) or Acton.getResources(HttpServletRequest, String) Then: MessageResources.getMessage(Locale, String) Quoting Brice Ruth [EMAIL PROTECTED]: This seems like a simple thing to do, and I could swear I've seen it answered on the list - but I can't find it!

Token and workflow

2003-11-06 Thread liste
Hi everyone, I asked for some questions about token and double submissions a couple of weeks ago. Today, i'm back to that problem and more specifically on the workflow. The double submission detection is Ok. But i don't know how to retrieve the normal flow of the application. I explain myself

Re: multibox - Null attribute name ServletException

2003-11-06 Thread Firat TIRYAKI
store the properties in a bean and recall them in your action. F. - Original Message - From: ZYD [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 06, 2003 3:52 AM Subject: multibox - Null attribute name ServletException I tried to use

Re: data-source connection keeps closing

2003-11-06 Thread Alvaro
Hi David, try to change the connection URL to: jdbc:mysql://localhost/semantic?autoReconnect=true Bye, Alvaro. David Parry wrote: Subject: data-source connection keeps closing From: David Parry [EMAIL

Help in Validation.

2003-11-06 Thread Sunny
Hi friends, I am having html:file tag in my form. I want to check whether has selected any file or not. like if the user submits the form without selecting the file, i want to validate. in my validate.xml,. this is the validation i've entered. formset form name=ImportPlanForm

Can the name attribute be omitted form html:iterate tag ?

2003-11-06 Thread ZYD
Hi The following two code snippets are from Struts in Action, I copied them to my JSP page and ActionForm. but I cannot get it work. I got : [ServletException in:/WEB-INF/jsp/form/multiboxTestSubmit.jsp] Null attribute name' What's wrong with it? What do I need to pay attention to? Please

RE: [OT - Design] Needing Fast Access to 300,000 Records

2003-11-06 Thread shirishchandra.sakhare
Hi, But I think over here you are missing one important point. Out of those 3 records, the client will want to browse over only a couple of (may be a couple of hundreds). So as and when he requests, geting a few of them(stanadard pageful records at a time)wont be slow.Just retrieving all

Re: multibox - Null attribute name ServletException

2003-11-06 Thread ZYD
Thanks for your response. Could you give me some hint? I'm a struts newbie. Thanks a lot. - Original Message - From: Firat TIRYAKI [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, November 06, 2003 11:04 PM Subject: Re: multibox - Null attribute name

Re: [OT - Design] Needing Fast Access to 300,000 Records

2003-11-06 Thread Vic Cekvenich
This should all be done is SQL. At a design stage, you take your outputs (mock up html pages or reports. I am sure you or anyone has a screen with 30,000 records on it, or even a 1,000) and do some data model. Based on your analysis you should know the SQL. If this is hard for you, then attach

Re: Access message resources from Action?

2003-11-06 Thread Brice Ruth
Excellent, thanks. Kris Schneider wrote: Acton.getResources(HttpServletRequest) or Acton.getResources(HttpServletRequest, String) Then: MessageResources.getMessage(Locale, String) Quoting Brice Ruth [EMAIL PROTECTED]: This seems like a simple thing to do, and I could swear I've seen it

Token and workflow

2003-11-06 Thread liste
Hi everyone, I asked for some questions about token and double submissions a couple of weeks ago. Today, i'm back to that problem and more specifically on the workflow. The double submission detection is Ok. But i don't know how to retrieve the normal flow of the application. I explain myself

Re: [OT] Security Filter - Active Authentication (Better)

2003-11-06 Thread Brandon Goodin
I wrote an implementation of the Active Authentication idea introduced in Java Developers Journal. I like it much better than Security Filter. It allows me to use the TRUE container's standard authentication. Also, I get ALL the features that SecurityFilter provides and ALL the features of

Best Practices in Struts for Form objects?

2003-11-06 Thread Michael Cardon
Hello, If I have 5 Action classes that all need to reference the same Form object, should I map each Action to the same form name, or use different names for each of the Forms in the Actions? Does it make a difference if I’m using session scope vs. request scope? Example using the same form

Re: [OT - Design] Needing Fast Access to 300,000 Records

2003-11-06 Thread Vic Cekvenich
[EMAIL PROTECTED] wrote: retrieving all the records because just in case the client may need them does not look very efficient approach to me. One never designs for all the exceptions of what might be, that would be a bad design. One designs for the likely case only, at least good designers do.

Re: Best Practices in Struts for Form objects?

2003-11-06 Thread Philip Mark Donaghy
If all of your Forms have exactly the same properties then use the same form mapping for all your actions. If all of your Forms share some properties then use different forms for each action. Each of these forms would extend a generic form which extends of course ActionForm or ValidatorForm.

Re: Best Practices in Struts for Form objects?

2003-11-06 Thread Frers Michael
Hello it totally depends what you need. different names: if u use different names than there will be created five different forms, each under an other name. if all are in request it makes not really sense to do this because they are deleted if the request is over. but if you use them in session

RE: [OT - Design] Needing Fast Access to 300,000 Records

2003-11-06 Thread Jerry Jalenak
All, Thanks for the comments. It does appear that I am attempting to solve an easy the most difficult way possible. I'm going to go away now and spend some time with my handy dandy SQL book Thanks again! Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd.

Re: Best Practices in Struts for Form objects?

2003-11-06 Thread Ben Anderson
you probably only want one form set to request scope. If you use different forms, then that form is only valid for the one specific action it is associated with. For instance, if the submitting page contains a form that has a textbox where you can input your name. And you want to display the

Re: [OT] Security Filter - Active Authentication (Better)

2003-11-06 Thread Hubert Rabago
Hi Brandon, I would be very interested in your implementation. If you don't have it up somewhere already and you don't mind, can you send it to me? thanks, Hubert --- Brandon Goodin [EMAIL PROTECTED] wrote: I wrote an implementation of the Active Authentication idea introduced in Java

Re: Reusing Validation

2003-11-06 Thread Srinivas Gunturu
Resending this since haven't got any responses for a day In summary, here is my question. For those needing more details, look at the entire text below. Is there a way to re-use the validation that is already built on all forms using validator framework? If so how? If not, how can I

Re: [OT] Security Filter - Active Authentication (Better)

2003-11-06 Thread Brandon Goodin
I'm putting it together. If a committer on the Struts sf.net project wants to give me permissions to create a cvs project for this... I'd be happy to. Also, it would be nice to receive back contributions on how to make this better. I'll send a zip to anyone who wants it. Brandon Goodin

Re: Which version of Commons Digester released with Struts 1.1

2003-11-06 Thread David Graham
--- Philip Mark Donaghy [EMAIL PROTECTED] wrote: I would like to debug a problem that I have with Digester. The error is : java.lang.NoSuchMethodException: No such accessible method: addFormBeanConfig() on object: java.lang.String How can I get the version number that is distributed

logic:equal using form bean property?

2003-11-06 Thread Greg Hess
Hi All, I am iterating over a collection and want to display only a single Object. I have a form property(pid) indicating the Object index within the collection. logic:iterate name=products id=product indexId=ctr logic:equal name=createInstanceForm property=pid value=%=ctr%

html:link

2003-11-06 Thread MANCHIKALAP, KRISHNA (SBCSI)
Is there any other way to create anchor link in struts 1.1 other than this html:link page=/jsp/employee/CreateEmp.jsp Create /html:link because the above link of code is not creating link in my JSP -- Kri$hn@ - ?: bus:

Re: logic:equal using form bean property?

2003-11-06 Thread David Graham
If you're using a Servlet 2.3 container you should use the JSTL's c:forEach and c:if tags instead of the Struts tags. What do your getter and setter method for pid look like? David --- Greg Hess [EMAIL PROTECTED] wrote: Hi All, I am iterating over a collection and want to display only a

radiobutton selected

2003-11-06 Thread koen boutsen
Hello I use some radiobuttons. I read in the tips from Ted Husted to do it like this : logic:iterate id=i name=listLanguages html:radio property=langCode value=value idName=i/ bean:write name=i property=label/ /logic:iterate for (Iterator iter = list.iterator(); iter.hasNext();){

Re: multibox - Null attribute name ServletException - SOLVED

2003-11-06 Thread ZYD
I change html:iterate tag to: logic:iterate id=item name=multiboxTest property=items the =multiboxTest is the ActionForm bean's name in struts-config.xml. and add getter/setter for items, now it works. Thanks. bruce - Original Message - From: ZYD [EMAIL PROTECTED] To: Struts Users

RE: logic:equal using form bean property?

2003-11-06 Thread Greg Hess
My container is Resin 2.1.10 supporting Servlet 2.3, but have not yet played with any JSTL tag's will convert as a last resort. The method signatures are as follows: public void setPid(String id) { m_pid = id; } public String getPid() { return m_pid;

Usar tipos de datos como Timestamp, BigDecimal

2003-11-06 Thread Milton Benavides
Deseo usar algunos tiops de datos como Timestamp, BigDecimal en algunos campos. Cuál sería la mejor manera de utilizarlos estos. 1.- Crear la clase ActionForm con todos los atributos como string para luego trasladarlos una vez validados a un Bean??? 2.- Crear los atributos en el ActionForm

Dynamic Image from DB to JSP

2003-11-06 Thread Marc AMIR-TAHMASSEB
Hi, I have an image in my Database and I want to display it. Before creating the jsp, I ask the image from the DB and put it in my modele (like a InputStream property named photo in an Employe class) In my JSP i want to display this image (so the property) Is it possible to give a binary

RE: Usar tipos de datos como Timestamp, BigDecimal

2003-11-06 Thread Marcos Oliva
Milton, Lo major seria declararlos en el actionform como string. Marcos oliva -Original Message- From: Milton Benavides [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 8:33 AM To: [EMAIL PROTECTED] Subject: Usar tipos de datos como Timestamp, BigDecimal Deseo usar algunos

Re: Dynamic Image from DB to JSP

2003-11-06 Thread Hubert Rabago
When the browser encounters the IMG src=some.ext tag, it sends another request for the some.ext resource. You have to serve this through another servlet or action. --- Marc AMIR-TAHMASSEB [EMAIL PROTECTED] wrote: Hi, I have an image in my Database and I want to display it. Before creating

RE: Usar tipos de datos como Timestamp, BigDecimal

2003-11-06 Thread Milton Benavides
Esta bien gracias: pero luego como los paso a un Bean que tiene los atributos con los tipos de datos correctos. debido a que luego debo pasar este bean a un EJB que tomará alguna acción.

RE: Dynamic Image from DB to JSP

2003-11-06 Thread David Friedman
Marc, That's a tricky one I've planned for but haven't started yet. My research showed the html:img tag should be used with a path. That path can invoke an action (direct, not tiled) that sets the content-type to the right type of image then tosses out the binary stream. So, it should be

Re: [OT] Security Filter - Active Authentication (Better)

2003-11-06 Thread Brandon Goodin
I'm an idiot... I already have CVS access to the sf.net project. Hehe... I'll committ it there. But, I warn you... what I am putting in the CVS is not a full functioning web example... I'll add that later. But, for now it's just code that needs to be organized better. But, it does give you an idea

RE: Dynamic Image from DB to JSP

2003-11-06 Thread Hubert Rabago
You can also specify a default filename for the image through response.setHeader(Content-Disposition,filename= + imageFilename); so when the user attempts to save the image, he/she doesn't get images.do as the default. --- David Friedman [EMAIL PROTECTED] wrote: Marc, That's a tricky one

RE: Usar tipos de datos como Timestamp, BigDecimal

2003-11-06 Thread Marcos Oliva
Milton, Puedes usar el org.apache.commons.beanutils.BeanUtils.populate metodo o crear tu propio metodo en tu action class donde mapeas de string a el type que es correcto. Solamente que tienes que ser un poco cuidadoso con los Timestamp, you uso una conbinacion de BeanUtils populate y mis

Re: [OT] Security Filter - Active Authentication (Better)

2003-11-06 Thread Brandon Goodin
okay... I didn't want to commit it to the Struts sf.net cvs until I had it working as a functioning example web app. So, I have my rudimentary conglomeration of files at: http://www.phase.ws/security/security.zip Look for a working example over the next few days on the sourceforge struts

getting current session in ActionForm

2003-11-06 Thread Taner Diler
Hi, I get my default values from ActionForm object. But I can not implement localization feature to default values. Because, I can not get current session and struts LOCALE_KEY attribute from session in form object. How can I get current session object in my form object? Thank you.

Re: getting current session in ActionForm

2003-11-06 Thread Caoilte O'Connor
you can do it during the reset which is sent the request along with the actionmapping. I believe the Artimus example does some clever locale_key setting like this. c On Thursday 06 November 2003 18:09, Taner Diler wrote: Hi, I get my default values from ActionForm object. But I can not

Redirect to remote website using ActionForward

2003-11-06 Thread Morten
Hi. Is it possible to redirect to a completely custom URL outside application context using ActionForward? I can see from the docs that I could use a ForwardConfig, but I cannot return a such from the Action execute methods. I could use response.sendRedirect(..) and return null I guess, but that's

Struts Dilemma

2003-11-06 Thread Srinivas Gunturu
Often when writing a bean for use by a tag, I seem to be writing a equivalent method that returns a string value for a boolean property. For example: If I mean to pass a boolean property isInactive, I am also writing a getInactiveFlag which returns N or Y based on isInactive. I use

Question on storing bean in request context

2003-11-06 Thread Brice Ruth
Good morning (again) I have an Action that is retrieving a javabean object from my database (via iBATIS, thank you very much :)) and I need to store that bean somewhere where a Tile can access it. What I'm doing, is storing it in the request context (request.setAttribute(item,item)) and then

RE: Struts Dilemma

2003-11-06 Thread Appel, Jeremy D
Try the logic:notEqual or logic:equal tags... -Original Message- From: Srinivas Gunturu [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2003 12:30 PM Subject: Struts Dilemma Often when writing a bean for use by a tag, I seem to be writing a equivalent method that returns a

Best Practice : session vs. request attributes

2003-11-06 Thread Frederic Dernbach
I'm questioning my current design practice regarding Struts forms. Until now, I tend to store all client data in the Struts form and I avoid using other request attributes or session attributes. But, this approach seems limited when I need to display a collection of objects that are very

RE: Struts Dilemma

2003-11-06 Thread Joe at Team345
I think the best way to avoid this is to always use Strings and only Strings for all form values (except Collections). Then your action class can convert to/from the desired type when it creates the transfer object to pass to the business delegate. If you combine this approach with the struts

Re: ActionMessage key location

2003-11-06 Thread Lukas Bradley
Actually, it doesn't help. How do I then create an ActionMessage referencing the messagesOne resource? Lukas Hope this helps message-resources parameter=MyTerms null=false/ message-resources parameter=MyMsgs null=false key=messagesOne / message-resources parameter=resources.MyOtherMsgs

Re: Question on storing bean in request context

2003-11-06 Thread Kris Schneider
You shouldn't need jsp:useBean. What happens with just: c:out value=${requestScope.item.productName}/ Quoting Brice Ruth [EMAIL PROTECTED]: Good morning (again) I have an Action that is retrieving a javabean object from my database (via iBATIS, thank you very much :)) and I need to store

Re: Best Practice : session vs. request attributes

2003-11-06 Thread Vic Cekvenich
Is it OK using session attributes (performance, memory, etc. ), even if you make sure session attributes are removed when no more needed ? I ALLWAYS use session for form bean and then clean up. I allways use request for read only beans (c:out, display tag, etc.) And there is a non-standard thing I

Re: Question on storing bean in request context

2003-11-06 Thread Brice Ruth
Um (embarrassed) ... I forgot to import the JSTL core taglib ... (/me hides head) Kris Schneider wrote: You shouldn't need jsp:useBean. What happens with just: c:out value=${requestScope.item.productName}/ Quoting Brice Ruth [EMAIL PROTECTED]: Good morning (again) I have an Action that

  1   2   >