Validation for Price

2003-10-27 Thread Ravi Kulkarni
Hi everyone, Can anyone help me how to validate price using Validator Framework. Ours is i18n application. Are there any validators to validate prices? thanks in advance, Kulkarni. - To unsubscribe, e-mail: [EMAIL

ActionErrors/ActionMessages

2003-10-27 Thread Keld Hansen
I'd like to emphasize the importance of a mail recently added to the newsgroup regarding the use of ActionErrors and/or ActionMessages. The Validator uses the ActionErrors queue, so even if you'd like to use the new ActionMessages queue you'd hesitate to do so since this forces you to manage

html:options internationalization

2003-10-27 Thread koen boutsen
Does anyone know how I can use interantionalization in the tag html:options in a html:select. In html:option, a bundle and key attribute exist to use internationalization, but this does not exist in html:options Can anyone help Thanks Koen

Re: ActionErrors/ActionMessages

2003-10-27 Thread Adam Hardy
On 10/27/2003 08:21 AM Keld Hansen wrote: I'd like to emphasize the importance of a mail recently added to the newsgroup regarding the use of ActionErrors and/or ActionMessages. The Validator uses the ActionErrors queue, so even if you'd like to use the new ActionMessages queue you'd hesitate to

illegal character with struts-validator.war

2003-10-27 Thread dutrieux
Hello, I try today the last nighty build (jakarta-struts-20031026) and I try the example struts-validator.war and I get a error in Javascript Console in Mozilla v1.5 : illegal caracter, when the link JavaScript Registration Form http://localhost:8080/struts-validator/jsRegistration.jsp or

Re: ActionErrors/ActionMessages

2003-10-27 Thread Keld Hansen
Let me elaborate a little: As I understand it the Validator uses the ActionErrors queue. This means that I'll have to code this in my jsp-page: html:messages id=error message=false BRbean:write name=error/ /html:messages If I use the ActionMessages queue for my own validation - or error

how to access HttpSession in EJB code?

2003-10-27 Thread Viral_Thakkar
Is there any way, I can access the object from session in the EJB bean method? I am keeping the profile object in HttpSession, once the user gets successfully logged-in. Now I want to access few values from this profile object which is kept inside session. The application flow is as below :

RE: how to access HttpSession in EJB code?

2003-10-27 Thread Andrew Hill
Hi Viral, You will need to get the required object from the session up in the p-tier and pass it to your ejb in a method parameter when you call the EJB (or facade to it). (The EJB layer doesnt know about servlets and such like (indeed its client might well not be a servlet app)). -Andrew

Re: Index properties (once again)

2003-10-27 Thread Mark Lowe
Forget indexed properties, all that stuff.. Does each state have many bids, modes and/or calls? If you're not clear about this in the first place then you'll be in trouble. Until you stop spamming the list and think about what you're doing then you wont get anywhere. On Monday, October 27,

newbie session problem

2003-10-27 Thread geraldine
My struts application has a link to another jsp. but everytime i click on this link, the jsp creates a new session. I've tried practically everything, html:link, %response.encodeURL()% and even manually appending the jsessionid to the end of the url to this jsp, but it just keeps on creating

Re: ActionErrors/ActionMessages

2003-10-27 Thread Adam Hardy
On 10/27/2003 09:59 AM Keld Hansen wrote: Let me elaborate a little: As I understand it the Validator uses the ActionErrors queue. This means that I'll have to code this in my jsp-page: html:messages id=error message=false BRbean:write name=error/ /html:messages If I use the ActionMessages queue

Re: html:options internationalization

2003-10-27 Thread Jason Lea
Normally I have an action that prepares data that initialises the form with default information. This action will get the information from the message resources (using the chosen locale), puts them into a LabelValueBean and put those beans into a List. Then that List is put into the

Re: ActionErrors/ActionMessages

2003-10-27 Thread Keld Hansen
Thanx, I'll try it, but I read your suggestion as this: write out all global messages in the ActionMessages queue so I'll be surpised to see the messages from the Validator. /keld - Original Message - This works to display the Validator messages and errors from the Actions

Re: Index properties (once again)

2003-10-27 Thread Nicholas L Mohler
Hi Ranjat, Take a look at the mail archive. There are at least two threads that I have posted to that discuss indexed properties. I think that you'll find just about everything you need in those threads. There is info about (1) building your page with indexed properties and (2) getting

specifying image source as jpg stream

2003-10-27 Thread Yoganarasimha G
Hi all I'm developing a webpage which uses xml to display organization chart. I'm using SVG to display the chart in IE. If the user doesn't have SVG viewer I'm converting SVG to JPG using BATIK. At present I'm creating a image file in a temp folder and then displaying, but i want to avoid

Re: specifying image source as jpg stream

2003-10-27 Thread Kris Schneider
Create an Action whose execute method writes the image data directly to the response's output stream and then returns null (you could also use a servlet or filter). Quoting Yoganarasimha G [EMAIL PROTECTED]: Hi all I'm developing a webpage which uses xml to display organization chart. I'm

Re: Index properties (once again)

2003-10-27 Thread Vic Cekvenich
Mark Lowe wrote: Until you stop spamming the list and think about what you're doing then you wont get anywhere. +1 .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: newbie session problem

2003-10-27 Thread Geeta Ramani
Hi! this doesn't explain why a new session is created, but in the link in your original jsp do not link directly to the second jsp: it's a bad practice anyway since it breaks MVC. Instead use something like this: html:link page=/goToJsp2.doJsp 2/html:link In your struts-config.xml, add this

Deprecation - DataSource

2003-10-27 Thread Mathieu Grimault
First hello everyone !!! This is my first answer and i'm learning struts now... I'm using this method but it's deprecated...Did someone knows the right call ? thx. DataSource dataSource = (DataSource)servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY);

Re: ActionErrors/ActionMessages

2003-10-27 Thread Adam Hardy
On 10/27/2003 12:47 PM Keld Hansen wrote: Thanx, I'll try it, but I read your suggestion as this: write out all global messages in the ActionMessages queue so I'll be surpised to see the messages from the Validator. I'm just telling you what I'm doing :) - there's no reason why it shouldn't

errors and exception in ActionErrors

2003-10-27 Thread Fiallega, Jorge
I would like to put in the ActionErrors object regular errors that may happen and also an exception without loosing the previously stored errors. These are the steps I am taking and the results I am getting: 1. Errors occur so I add them to the ActionErrors with the GLOBAL_ERROR property:

requiredif don't execute the condition

2003-10-27 Thread Ruben Orta Magan
Hello. I've got a problem with the requiredif condition in the struts validator. I'm using this dtd: http://jakarta.apache.org/commons/dtds/validator_1_0.dtd http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd The validation rule is: formset form name=icytReviForm

Re: Deprecation - DataSource

2003-10-27 Thread Mark Lowe
You can use the jndi datasource that you define in web.xml rather than struts. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource- examples-howto.html The struts datasource is deprecated generally. Ideally you have your db connection stuff in your model layer. If this means

Re: Deprecation - DataSource

2003-10-27 Thread David Graham
--- Mathieu Grimault [EMAIL PROTECTED] wrote: First hello everyone !!! This is my first answer and i'm learning struts now... I'm using this method but it's deprecated...Did someone knows the right call ? thx. DataSource dataSource =

DynaValidatorForm and copyProperties

2003-10-27 Thread Frers Michael
Hello anyone have an idea how to easy copy values from a dynavalidatorform to an existing bean? i have a dynavalidatorform like: form-bean name=SearchForm type=org.apache.struts.validator.DynaValidatorForm form-property name=searchString type=java.lang.String/ /form-bean and a Bean looking

Re: DynaValidatorForm and copyProperties

2003-10-27 Thread VKeswani
try using : BeanUtils.copyProperties( formBean, searchBean ); Frers Michael [EMAIL PROTECTED] 10/27/2003 09:16 AM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED] cc: Subject:DynaValidatorForm and

upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilation errors

2003-10-27 Thread Ruta Thakkar
Dear All, I have been using Struts 1.1(stable release) with weblogic 6.1,jdk1.3..now we are upgrading to weblogic 8.1/jdk1.4 Here is the code that i was using earlier to pass multiple parameters in html:link: logic:iterate id=airportObj name=airportList bean:define id=airportCode

Session-scoped form and synchronization...

2003-10-27 Thread Bob Lee
Does Struts synchronize on session-scoped forms? For example, can I assume that Stuts won't modify the fields on a session-scoped form in response to one request while an action is still using it? Thanks, Bob - To

Eclipse-like web view framework for struts?

2003-10-27 Thread Kruse, Matt
I would like to build a web app that functions like a control panel with multiple views of data that the user can close, resize, etc. What I keep coming back to is wanting something similar to the Eclipse development environment, where I can pick my views and position them on the screen and have

RE: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilation errors

2003-10-27 Thread Karr, David
I doubt the JDK version upgrade is relevant here. Are you using WLS 8.1 or 8.1 SP1? Check with BEA support to get any relevant patches. It's possible that patch CR112789 will resolve this. -Original Message- From: Ruta Thakkar [mailto:[EMAIL PROTECTED] Dear All, I have been

Re: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilation errors

2003-10-27 Thread Ruth, Brice
In this particular code, you'd need to use pageContext.getAttribute(airportCode), in your scriptlet, I believe. Ruta Thakkar wrote: Dear All, I have been using Struts 1.1(stable release) with weblogic 6.1,jdk1.3..now we are upgrading to weblogic 8.1/jdk1.4 Here is the code that i was using

RE: Eclipse-like web view framework for struts?

2003-10-27 Thread Mike Jasnowski
The WebLogic Portal implementation I'm using at the moment has capabilities like you describe, you can customize layouts, lf, etc.. and place views on a browser screen, min/max them. I don't know if there are open-source implementations like this. There is also an Eclipse WebTools project being

Re: specifying image source as jpg stream

2003-10-27 Thread Craig R. McClanahan
Kris Schneider wrote: Create an Action whose execute method writes the image data directly to the response's output stream and then returns null (you could also use a servlet or filter). Don't forget that, in HTML images are retrieved (by the client) in *separate* requests. You can't

Re: Where and when will we use org.apache.struts.config.ModuleConfig appConfig

2003-10-27 Thread Manish Singla
Hi org.apache.struts.config.ModuleConfig appConfig = (org.apache.struts.config.ModuleConfig) request.getAttribute(org.apache.struts.Globals.MODULE_KEY); appConfig.getControllerConfig(); Above will give you an JavaBean Object which has stored info of RequestProcessor. You may store various

Re: Logging using commons.logging

2003-10-27 Thread Craig R. McClanahan
Ritvik wrote: Hi There, In our system we have a requirement to generate two seperate logs, system log and auditing log. The system log must log details of request and processing details. This log is mainly used by developer at the time of debugging and maintenance. The auditing log is used for

Re: Eclipse-like web view framework for struts?

2003-10-27 Thread Vic Cekvenich
Take a look at the tiles example war that ships with Struts. You can move tiles around in the example. Also read up on Tiles 201. (and new features of Tiles-EL in the nightly build, aka Struts 1.2) hth, .V Kruse, Matt wrote: I would like to build a web app that functions like a control panel

RE: upgrading Struts 1.1 to jdk 1.4 and weblogic 8.1 -Compilatio n errors

2003-10-27 Thread Hajratwala, Nayan (N.)
I actually had this identical problem when upgrading to WL 8. I was already using jdk 1.4, so it must be a WS thing. You should get the WL patch as well. I switched my scriptlet to do the following, which worked fine. params.put(airportCode, ((Airport)airportObj).getAirportCode() );

Where did the template tags doc's go?

2003-10-27 Thread Greg Hess
Does anyone know where I can find the docs for the template tags? Greg Hess Software Engineer Wrapped Apps Corporation 275 Michael Cowpland Dr. Suite 201 Ottawa, Ontario K2M 2G2 Tel:

Re: Where did the template tags doc's go?

2003-10-27 Thread jbaker
http://www.lifl.fr/~dumoulin/tiles/ Joe Baker Director of Internet Communications Amnesty International USA Greg Hess [EMAIL PROTECTED] 10/21/03 12:39 PM Please respond to Struts Users Mailing List To: Struts [EMAIL PROTECTED] cc: Subject:Where did the

Re: Session-scoped form and synchronization...

2003-10-27 Thread Kris Schneider
Nope, don't think so. Quoting Bob Lee [EMAIL PROTECTED]: Does Struts synchronize on session-scoped forms? For example, can I assume that Stuts won't modify the fields on a session-scoped form in response to one request while an action is still using it? Thanks, Bob -- Kris Schneider

Re: [ANNOUNCE] Struts Message Resource Doc

2003-10-27 Thread Manish Singla
Hi In your informative article, may be a small correction: For instance if the message can't be found in ApplicationResources_pt_br.properties (Brazilian Portuguese), the ApplicationResources_pt.properties file (and therefore Locale) will be searched. If the

question about reset()

2003-10-27 Thread Sonam Belbase
I'm trying to understand ActionForms a bit better and here is my question: If the servlet controller automatically invokes the reset() method before passing the ActionForm bean to the Action implementation class instance, how can you use the form's properties' values in your action? Is this why

Re: question about reset()

2003-10-27 Thread Ruth, Brice
to my knowledge, reset() is called to clear the form (and perform any re-initialization), before calling the setters for the form parameters being submitted by the browser. this way, the action that accesses the actionform will always have the values submitted by the browser, no more, no less

Re: html:cancel

2003-10-27 Thread Ted Husted
Not as such. What you can do is have the Action class look for a a cancel forward when there is a cancelled command. This lets you define a local cancel forward when needed or rely on a global one otherwise. HTH, Ted. Gandle, Panchasheel wrote: Is there a way to go back to previous, previous

Re: question about reset()

2003-10-27 Thread Manish Singla
Please see below .. Sonam Belbase wrote: I'm trying to understand ActionForms a bit better and here is my question: If the servlet controller automatically invokes the reset() method before passing the ActionForm bean to the Action implementation class instance, how can you use the form's

Re: Session-scoped form and synchronization...

2003-10-27 Thread Bob Lee
I assume this is a bug then, because there's no way for me to do this. It has to be done within Struts. Bob Kris Schneider wrote: Nope, don't think so. Quoting Bob Lee [EMAIL PROTECTED]: Does Struts synchronize on session-scoped forms? For example, can I assume that Stuts won't modify

Re: Session-scoped form and synchronization...

2003-10-27 Thread Manish Singla
hmmm. may be this not an bug...as struts ActionServlet extends Java Servlets . And Java Servlet is not not thread safe FYI: same goes for application attributes.. Bob Lee wrote: I assume this is a bug then, because there's no way for me to do this. It has to be done within

Re: question about reset()

2003-10-27 Thread Sonam Belbase
OK thanks Brice and Manish, I was not able to retrieve the values of my form properties in my action and according to your explanations, I can rule out reset() as the source of the problem. Thanks. SB Manish Singla wrote: Please see below .. Sonam Belbase wrote: I'm trying to understand

validator for check box

2003-10-27 Thread Jayaraman Dorai
Would like to validate that the user selects at least one option in the check box which was created using html-multibox. The struts-validator is not validating the required for a check box. Is there any code for validating the check box or am I missing something? Thanks Jayaraman

Re: question about reset()

2003-10-27 Thread Manish Singla
may be check out the scope(session/request)... Your FormBean should be stored in same scope as mentioned in struts-config.xml... Sonam Belbase wrote: OK thanks Brice and Manish, I was not able to retrieve the values of my form properties in my action and according to your explanations, I

RE: Session-scoped form and synchronization...

2003-10-27 Thread Peter Abbot
Generally if you are using a browser based interface to execute a servlet requests (except if using frames) the user can only send one request at a time. So if you are using a action with a session form and another action wants to use that form means that the user doesn't want the result of the

Re: Session-scoped form and synchronization...

2003-10-27 Thread Craig R. McClanahan
Bob Lee wrote: I assume this is a bug then, because there's no way for me to do this. It has to be done within Struts. It depends on what precisely you think needs to be synchronized: * Adding attributes to the session, or removing them from the session: The servlet container takes care of

Re: Session-scoped form and synchronization...

2003-10-27 Thread Craig R. McClanahan
Peter Abbot wrote: Generally if you are using a browser based interface to execute a servlet requests (except if using frames) the user can only send one request at a time. So if you are using a action with a session form and another action wants to use that form means that the user doesn't want

Re: Session-scoped form and synchronization...

2003-10-27 Thread Geeta Ramani
Craig R. McClanahan wrote: Unfortunately, having frames is *not* the only scenario where you have to worry about multiple simultaneous requests. Two simple additional ones: * Your app contains img tags that point back into your app (dynamically generated images, for example). * User

JSP code formatting/indentation

2003-10-27 Thread Laura Finlay
Would anyone know of a good editor to easily format JSP code, i.e. properly indent the full content of a JSP page? Thanks __ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/

Re: specifying image source as jpg stream

2003-10-27 Thread Max Cooper
You may want to write a separate servlet to serve the image data. That allows you to implement getLastModified() and allow proper browser-caching support, which can significantly increase the speed of your pages if the user is likely to view the images more than once. We did this with an Action

Out of memory with multipart/form-data and lot of checkboxes

2003-10-27 Thread Zsolt Koppany
Hi, in a form where the user can upload a file and set some attributes with checkbox (couple oh hundreds) I get an out of memory exception even when the file is very small (300 bytes). After some testing I figured out that it is caused by enctype=multipart/form-data. If I removed that I cannot

RE:[OT] JSP code formatting/indentation

2003-10-27 Thread Nail, Evan Burke
The only ones I have used come with the IDEs, although I'll bet if you google you'll find a free, freestanding one. NetBeans has a very easy to use one in it's IDE. Eclipse has one in its 3.x Milestone 3 version ( maybe earlier, not sure). I haven't used it much, so I'm not sure how well

RE: JSP code formatting/indentation

2003-10-27 Thread James Childers
Using vim: ^A = All done! -= J -Original Message- From: Laura Finlay [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 2:08 PM To: [EMAIL PROTECTED] Subject: JSP code formatting/indentation Would anyone know of a good editor to easily format JSP code, i.e. properly

RE:[OT] JSP code formatting/indentation

2003-10-27 Thread Laura Finlay
--- Nail, Evan Burke [EMAIL PROTECTED] wrote: The only ones I have used come with the IDEs, although I'll bet if you google you'll find a free, freestanding one. NetBeans has a very easy to use one in it's IDE. I've used NetBeans, but it does not have the reformat feature that's

RE: [OT] JSP code formatting/indentation

2003-10-27 Thread Ramadoss Chinnakuzhandai
JSP code editors/beautifiers and integration into eclipse Editor plug-in in eclipse for better viewing and editing of JSP and xml files. You can download from http://gd.tuwien.ac.at/opsys/linux/sf/subcat/cli/solareclipse/ (net.sf.solareclipse.jsp.ui_0.4.0) Also

nested tiles in struts

2003-10-27 Thread Derwyn . Harris
I can't seem to find any good examples of how to do this. I would like to have a nested tile inside of my body.jsp. For example I have a definition. definition name=tiles.mainLayout path=/WEB-INF/jsp/common/layout.jsp put name=title value=Tiles Blank Site / put

Re: Out of memory with multipart/form-data and lot of checkboxes

2003-10-27 Thread Brandon Knitter
in a form where the user can upload a file and set some attributes with checkbox (couple oh hundreds) I get an out of memory exception even when the file is very small (300 bytes). After some testing I figured out that it is caused by enctype=multipart/form-data. If I removed that I cannot

Disabling Form Field

2003-10-27 Thread Rhet Behler
Does anyone have any experiencing using the validation.xml and disabling a form field? Essentially what I would like to do is disable a text field in my form if the country selected is united states. Any help? Thanks

OT: Re: Session-scoped form and synchronization...

2003-10-27 Thread Vic Cekvenich
Geeta Ramani wrote: at we at least disabled one of our testers from being too click-happy..;) I hear that. -- Victor Cekvenich, Struts Instructor (215) 321-9146 Advanced Struts Training http://basebeans.com/do/cmsPg?content=TRAINING Server Side Java training with Rich UI, mentoring, designs,

Re: Tags creating Tags

2003-10-27 Thread Steve Apeero
For what you want to do what is wrong with using a jsp:include page=common_tags.jsp flush=true / where common_tags.jsp contain all the tags and html you wanted to declare in a seperate tag. Stephan From: Lukas Bradley [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To:

More than one condition using struts logic tags???

2003-10-27 Thread VKeswani
Hello, I have a little query - How can I check for more that one condition using struts logic tags? like if (A B C) { do something. } how do I achieve the same using struts logic tags?

Re: Tags creating Tags

2003-10-27 Thread struts
I was wondering the same thing. Along with tags like logic:equal tags and using ApplicationResources for language specifics, it seems like it would work well. Oscar On Mon, 27 Oct 2003, Steve Apeero wrote: For what you want to do what is wrong with using a jsp:include

[Q] Free charting?

2003-10-27 Thread Michael Korolyov
Hello, Would anyone point me to a free chart lib? pls. tag support isn't must, but nice to have. thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Q] Free charting?

2003-10-27 Thread Nathan Maves
JfreeChart On Oct 27, 2003, at 2:56 PM, Michael Korolyov wrote: Hello, Would anyone point me to a free chart lib? pls. tag support isn't must, but nice to have. thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Frames and IFrames in Stuts

2003-10-27 Thread George Steimer
Hi, I am a relative newbie with struts and I am trying to utilize both frames and IFrames from within a struts web application. The application we are building has a form that submits to a jsp page that conatains a frameset. I am using the html:frame tag in the frameset, but when the framed

Re: [Q] Free charting?

2003-10-27 Thread struts
Yes, and there are packages that let you use tags to incorporate jfreechart as well. http://cewolf.sourceforge.net/ Haven't incorporated any of this functionality yet, but it does seem to get used quite a bit. Oscar On Mon, 27 Oct 2003, Nathan Maves wrote: JfreeChart On Oct 27, 2003,

Re: [Q] Free charting?

2003-10-27 Thread Vic Cekvenich
http://cewolf.sourceforge.net/demo.html Michael Korolyov wrote: Hello, Would anyone point me to a free chart lib? pls. tag support isn't must, but nice to have. thank you -- Victor Cekvenich, Struts Instructor (215) 321-9146 Advanced Struts Training

Re: errors and exception in ActionErrors

2003-10-27 Thread Adam Hardy
On 10/27/2003 03:03 PM Fiallega, Jorge wrote: I would like to put in the ActionErrors object regular errors that may happen and also an exception without loosing the previously stored errors. These are the steps I am taking and the results I am getting: 1. Errors occur so I add them to the

Downloading a file from a database

2003-10-27 Thread Nicholson, Robb
In one of our STRUTS applications, I have a screen that allows users to upload and download files attached to an order. I have a JSP form that allows the user to browse a file on their machine and upload it. Also on the form is a list of the files already attached to the order, with links beside

Re: Downloading a file from a database

2003-10-27 Thread Manish Singla
Set following header to set name of attached file. response.setHeader(Content-Disposition,attachment; filename=\ + fileName + \); My two cents: Do you really want to connect to database and strean file from database. You may store temp file and check the date of temp file with database at

Re: Downloading a file from a database

2003-10-27 Thread Mark Lowe
As a web user I tend to have problems with these sorts of pages as I don't use IE. A lot of downloads where this sort of thing goes on often i end up with the file name of a php page rather than zip and stuff like that. My guess is is that IE is doing some of the work somewhere along the line,

DynaActionForm and DAO

2003-10-27 Thread alok . garg
Hello, I just to confirm that can I use the DynaActionForm object to populate the values in my DAO. If yes how?? Thanks in advance Alok Garg Polaris Software Lab Ltd. ( + 91 - 022 - 28290019 Ext. # 1308 ) This e-Mail may contain proprietary and confidential information and is sent for the

RE: DynaActionForm and DAO

2003-10-27 Thread Chen, Gin
It's impossible.. You can't.. Don't even look into BeanUtils.copyProperties cause it won't help at all. For individual properties PropertyUtils.copyProperty doesn't work either.. Its all a rouse. -Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday,

RE: Downloading a file from a database

2003-10-27 Thread Nicholson, Robb
Thanks a million, that fixed her up real good. BTW--We aren't really streaming directly from the DB, I get the file from the DB and pass it to the servlet. The servlet streams it to the response writer. So this is all in memory and goes bye-bye after I send it out to the client. -Original

how to collect the values from multiple select box

2003-10-27 Thread Nathan Maves
how to collect the values from multiple select box? nathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

My logic Tag Does Not Seem To Work

2003-10-27 Thread Caroline Jen
Please point out my mistakes. Does the 'name' attribute of the logic tag accept an object only? For example, I created a session this way: HttpSession session = request.getSession(); String username = request.getRemoteUser(); session.setAttribute( user, username ); In the LogoffAction, I

RE: how to collect the values from multiple select box

2003-10-27 Thread Chen, Gin
Simplest way is to have a String[] as your property. html:select property=stringarrayproperty multiple=true -Tim -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 6:02 PM To: Struts Users Mailing List Subject: how to collect the values from

Re: how to collect the values from multiple select box

2003-10-27 Thread Nathan Maves
What about with Dyna Action Forms Nathan On Oct 27, 2003, at 4:09 PM, Chen, Gin wrote: Simplest way is to have a String[] as your property. html:select property=stringarrayproperty multiple=true -Tim -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Monday, October

please help: ActionForms of same type but different name?

2003-10-27 Thread Sonam Belbase
Given the following code in my jsp: logic:iterate id=element name=dynamicFormList type=java.lang.String html:form action=/login name=%=element% type=com.oreilly.struts.storefront.security.LoginForm User Name: html:text property=userName size=20 maxlength=50/ Password: html:text

RE: how to collect the values from multiple select box

2003-10-27 Thread Chen, Gin
Same thing. form-property name=blah type=java.lang.String[]/ You can give it an initial={'','',''} if u want to give it an initial size/values. The beauty of the String[] approach is that with multiple select boxes Struts will take care of it for you without anything more than

RE: please help: ActionForms of same type but different name?

2003-10-27 Thread Chen, Gin
One approach, you can define as many form-beans as you want iteratations. Ex: form-bean name=LoginForm_1 type=com.oreilly.struts.storefront.security.LoginForm /form-bean form-bean name=LoginForm_2 type=com.oreilly.struts.storefront.security.LoginForm /form-bean . . . form-bean name=LoginForm_n

Re: please help: ActionForms of same type but different name?

2003-10-27 Thread Sonam Belbase
There is no knowing until runtime how many iterations there are going to be. That's why we can't define the n number of LoginForms. The requirement is that on the same jsp, we will have repeating html:form/html:form sections. User will specify at runtime how many he/she wants. The html:forms will

Struts-config

2003-10-27 Thread Edgar P Dollin
Has anyone experienced situtation where struts 1.1 will not allow any configuration items (controller / message-resources / plug-in) after the end of the action-mappings section. The error message is xml.sax.SAXParseException: Element struts-config allows no further input; controller is

RE: Struts-config

2003-10-27 Thread Matt Raible
Download XML Spy (or another good XML tool) and validate it against the DTD. -Original Message- From: Edgar P Dollin [mailto:[EMAIL PROTECTED] Sent: Monday, October 27, 2003 4:37 PM To: Struts Users Mailing List Subject: Struts-config Has anyone experienced situtation where struts 1.1

requiredif

2003-10-27 Thread Rhet Behler
Has anyone used this in the validation.xml? If so could I see a simple example? If not what are you using validwhen? thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: nested tiles in struts

2003-10-27 Thread Frank Rizzo
I think that this will work for you. here is a nested tile in the body. some of my pages require a bordered box around the content, so the bordered box is a tile called .borderedContent. Shown below is a relevant excerpt from tiles-defs.xml, then the borderedcontent.jsp, and then the about

Why the Forward Does Not Achieve In One Step?

2003-10-27 Thread Caroline Jen
Hi, I have the following code in the navbarMenu.jsp: html:link forward=exitLOGOUT/html:link and in the struts-config.xml, I have: forward name=exit path=/do/Logoff/ and action path=/Logoff type=org.NameOfOrganization.signoff.LogoffAction forward name=success

RE: requiredif

2003-10-27 Thread Marc Dugger
My understanding is that 'requiredif' will be deprecated and the use of 'validwhen' is encouraged. Example: field property=emailAddress depends=validwhen arg0 key=userinfo.emailAddress.label/ var var-nametest/var-name var-value((sendNewsletter == null) or

LookupDispatchAction and I18N

2003-10-27 Thread Michael Blair
Greetins all, As a newbie in struts, I am sure this is something simple. I have some LookupDispatchActions setup and working fine. Now, I want to internationalize this app. I created a second resource file ending in es_MX. Ok, now what happens is when it does the lookup to find the method in my

Re: requiredif

2003-10-27 Thread Rhet Behler
validwhen isn't available in struts 1.1 is it? have you used this or tested it? - Original Message - From: Marc Dugger [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, October 27, 2003 5:32 PM Subject: RE: requiredif My understanding is that

RE: requiredif

2003-10-27 Thread Marc Dugger
The new validwhen validation rule, which will be included into the Struts release immediately after the 1.1 release... I am using the nightly build to develop my app and am hoping 1.2 will be release by the time I'm ready to deploy. So far, validwhen is operating as promised. I haven't run into

bye thank you

2003-10-27 Thread David Thielen
Hi; I'm leaving the list but I wanted to say thank you to all that helped. And a plea to one of the struts experts - the world desperately needs a struts cookbook. ie, if you want to do X, here is how. The top 40 or 50 of those items would be wonderful (and cut down on traffic a lot). thanks

StrutsTestCase and Multiple Struts Configuration files

2003-10-27 Thread Edgar P Dollin
Has anyone used StrutsTestCase with multiple comma-delimited struts configuration files and multiple message files. If so are there any issues which might make it less straight forward than straight struts? Thanks Edgar - To

Re: More than one condition using struts logic tags???

2003-10-27 Thread Craig R. McClanahan
[EMAIL PROTECTED] wrote: Hello, I have a little query - How can I check for more that one condition using struts logic tags? like if (A B C) { do something. } how do I achieve the same using struts logic tags? You can do an and test by nesting logic:xxx tags inside each other.

  1   2   >