Struts Example for standards

2004-07-15 Thread Viral_Thakkar
Hi All, Is there place where I can find struts example projects? I need to see the coding style and whether null checking in Action class is required or not. I am not using ActionForm in my project. Regards, Viral - To

RE: Struts Example for standards

2004-07-15 Thread Kommineni, Sateesh \(GE Consumer Industrial\)
http://struts.sourceforge.net/ -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 11:11 AM To: Struts Users Mailing List Subject: Struts Example for standards Hi All, Is there place where I can find struts example projects? I need to see the

Re: [OT] Editor for Struts/J2ee apps

2004-07-15 Thread Sebastian Ho
Try Jdeveloper. Great support for Struts. sebastian On Thu, 2004-07-15 at 13:10, Navjot Singh wrote: hi, I am starting a j2ee app(servlets,jsp.taglibs,ejb,jms,jaxp) with struts as web framework and i need to decide on the IDE that i should use. May i have your inputs on pros/cons on

RE: Access to message properties from within application

2004-07-15 Thread Jan Behrens
-Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 6:46 PM To: Struts Users Mailing List Subject: RE: Access to message properties from within application -Original Message- From: Jan Behrens [mailto:[EMAIL PROTECTED] Sent:

RE: [OT] Editor for Struts/J2ee apps

2004-07-15 Thread Oswald Campesato
What the heck, I'll add a few comments as well: 1) Oracle's JDeveloper10G (AFAIK it requires a 10G database) has support for Struts as well as JSF. Since the latter is kinda-sorta the recommended future direction by Craig McLanahan, JDeveloper is probably a very good choice 2) Eclipse supports

calling request.getInputStream() within Action

2004-07-15 Thread Robert Shields
Hi Struts Users I'm trying to get the InputStream to read the binary contents of the request within an Action's execute method. E.g. public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request,

Easy Struts Eclipse V3

2004-07-15 Thread Denis Peyrusaubes
Hi, I am wondering if somebody tries the easystruts plugin for eclipse V3. http://easystruts.sourceforge.net only talk about eclipse V2 Do u know other plugin for developing struts based application using Eclipse V3 Thank u Denis -Message d'origine- DeĀ : Robert Shields

Re: Struts Example for standards

2004-07-15 Thread Ted Husted
http://struts.apache.org/learning.html#Examples But, it's not required. This check was made in earlier versions of the Struts Mailreader and justified as defensive programming. If the ActionForm was missing, the Action created one. Later, the check was removed, since the Action should not be

Re: Struts Sample / Best Practices for Database access

2004-07-15 Thread Richard Reyes
Thanks Ted. Where can i get the mailreader webapp again? Ted Husted wrote: This is kind of a trick question, or at least a trick subject. In a Struts application, the best practice for database access is for Struts to be unaware that there is even such a thing as a database. If you are using the

Re: LabelValueBean and BeanMap with html:radio and logic:iterator for indexed properties

2004-07-15 Thread Niall Pemberton
I've been doing a bit of work on PropertyUtils bugs recently and discussing some discrepencies with how simple/mapped properties are handled between the different methods with a couple of the other beanutils committers. Quoting from Craig McClanahan The standard implementations of expression

Re: [OT] Editor for Struts/J2ee apps

2004-07-15 Thread Bryan Hunt
Nitrox from M4 ... best that I've seen (for struts) . Better than MyEclipse but does not support code completion within JSP's or debugging ( from what I can see ) . --b Navjot Singh wrote: hi, I am starting a j2ee app(servlets,jsp.taglibs,ejb,jms,jaxp) with struts as web framework and i need to

Re: examples of struts??

2004-07-15 Thread Bryan Hunt
http://aerlingus.com http://aerlingus.com The finest of Irish airlines, to be sure , to be sure ! --b Lykins Don H Contr AFSAC/ITS wrote: What real-world web sites are using struts? Can someone point me to some sites and do you know which packages/classes are used? also, which is the most

RE: Easy Struts Eclipse V3

2004-07-15 Thread James Holmes
Struts Console is very similar to Easy Struts and works in ALL versions of Eclipse (but best in 3.0). In fact, Easy Struts is based on Struts Console, so they are very similar. http://www.jamesholmes.com/struts/ -James -Original Message- From: Denis Peyrusaubes [mailto:[EMAIL

Re: validation wierdness possibly related to multiple struts config files

2004-07-15 Thread Bryan Hunt
Thank you Bill, your answer was correct. I've found that commons-validator as distibuted with the latest 1.2.1 version of struts doesn't include the http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd file. So despite my specifying the DTD like so snip= !DOCTYPE form-validation PUBLIC

Re: [OT] Editor for Struts/J2ee apps

2004-07-15 Thread Bryan Hunt
sorry should have said M7 --b Bryan Hunt wrote: Nitrox from M4 ... best that I've seen (for struts) . Better than MyEclipse but does not support code completion within JSP's or debugging ( from what I can see ) . --b Navjot Singh wrote: hi, I am starting a j2ee

Re: validation wierdness possibly related to multiple struts config files

2004-07-15 Thread Bryan Hunt
Ok , dunno who to report this to but this validator stuff needs to be looked at before this is released to the public cause it's a bit of a mess. Just noticed that the version of validator-rules that is distributed is for the validator_1_1.dtd version. I think somebody needs to take a little

Re: LabelValueBean and BeanMap with html:radio and logic:iterator for indexed properties

2004-07-15 Thread Michael McGrady
At 03:52 AM 7/15/2004, you wrote: There are currently some discrepencies in beanutils where the above statement isn't followed - but, from the discussion over on commons, its likely that in a future version of beanutils it will be changed so that it is always consistent with the above statement.

[OT] Best practice for background service

2004-07-15 Thread Jan Behrens
Hi list, I am coding an app where I rely on a background service to check regularly for new mail. I want to instantiate my service component (the one checking for mail) when the context is loaded and have it running in a background thread. I have done only very limited coding with threads so far

Re: [OT] Best practice for background service

2004-07-15 Thread Bryan Hunt
better idea , integrate the spring framwork and use the built in support for quartz scheduling. http://www.springframework.org/docs/reference/index.html http://www.springframework.org/docs/reference/scheduling.html --b * * Jan Behrens wrote: Hi list, I am coding an app where I rely on a

Re: LabelValueBean and BeanMap with html:radio and logic:iterator for indexed properties

2004-07-15 Thread Niall Pemberton
No I see no difficulty in relying on it. I was just saying the same as Joe had already said but I just thought it would give you more comfort to know the principle that the beanutils committers are working on. Just for information, the inconsistency issue currently in beanutils is where you have

Best Free Plugins for Eclipse with Struts

2004-07-15 Thread Henrique VIECILI
Hi all Eclipse and Struts fans, What free plugins for eclipse 3 do you recommend to build a complete enviroment to develop J2EE applications using Struts? A complete enviroment includes: UML modeling DataBase connection J2EE development Struts framework Thanks, Henrique Viecili

Re: calling request.getInputStream() within Action

2004-07-15 Thread Bill Siggelkow
Robert, I found the following link that discusses this: http://archives.java.sun.com/cgi-bin/wa?A2=ind0106L=jsp-interestF=S=P=49196 It sounds like you are correct -- if request.getParameter() has been called you cannot get the input stream -- have you considered using a Servlet instead? Robert

RE: [faked-from] RE: [OT] Editor for Struts/J2ee apps

2004-07-15 Thread B.S.Narayana
tell me the url for JDeveloper. -Original Message- From: Amjad Shahrour [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 1:14 PM To: 'Struts Users Mailing List' Subject: [faked-from] RE: [OT] Editor for Struts/J2ee apps I agree JDeveloper 10g is GREAT. Amjad -Original

Re: validation wierdness possibly related to multiple struts config files

2004-07-15 Thread Bryan Hunt
finally solved it. When you have the following DTD definition in your validation.xml file snip= !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd; =snip It

Re: [OT] Best practice for background service

2004-07-15 Thread Bill Siggelkow
Jan, Bryan's recommendation of Spring and Quartz sounds good though I have not had a chance to work with these yet. If you want to roll your own I suggest you look at the java.util.Timer and java.util.TimerTask objects -- they work well for these type of services. See

Re: validation wierdness possibly related to multiple struts config files

2004-07-15 Thread Bill Siggelkow
I am using this DTD declaration in my validation.xml and validator-rules.xml files: !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN http://jakarta.apache.org/commons/dtds/validator_1_1.dtd; It lets me access

Re: validation wierdness possibly related to multiple struts config files

2004-07-15 Thread Niall Pemberton
I got confused recently about validator versions - validator 1.1.3 has just been released and thats what Struts 1.2.1 uses - validator 1.2 is still in development so you need to be using !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons Validator Rules

RE: [OT] Best practice for background service

2004-07-15 Thread Marco Mistroni
Hello, If u r familiar with JMX, there is a Timer service That does exactly what you want (emit notifications at certain Interval) Regards marco -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Siggelkow Sent: 15 July 2004 14:29 To: [EMAIL

RE: [OT] Best practice for background service

2004-07-15 Thread Daniel Perry
Quartz is very easy to use. No need for thread programming. But Job classes are created as and when they are needed (so no initialisation and shared object). Create a struts plug-in which initialises quartz, and sets up the jobs (very little code needed). Daniel. -Original Message-

Re: Struts Sample / Best Practices for Database access

2004-07-15 Thread Hubert Rabago
The mailreader app is included with the 1.2.1 distribution. http://cvs.apache.org/dist/struts/v1.2.1/ --- Richard Reyes [EMAIL PROTECTED] wrote: Thanks Ted. Where can i get the mailreader webapp again? Ted Husted wrote: This is kind of a trick question, or at least a trick subject. In

RE: [OT] Best practice for background service

2004-07-15 Thread Marco Mistroni
Hello, Sorry for 'OT' for asking questions about Quartz.. Is it so that I have to start a separate 'process' for Quartz to run? So, at the end I will have my application server running as well as a Quartz process running 'outside' the application server? Regards marco

Re: [OT] Editor for Struts/J2ee apps

2004-07-15 Thread DGraham
NitroX DOES support code completion: http://www.m7.com/appxray.jsp If you get a moment, you should view the video of the demo. However, I've heard that the new offering from Sun is good as well: http://www.demosondemand.com/clients/m7/001/page/demo.asp To be fair, I'm _still_ using Idea (and

Struts Validator Date Patterns

2004-07-15 Thread Enrique Medina
Hi, I would like to know if it's possible to indicate a validation of type date indicating as a dattePatern/datePatternStrict a key from an application resource message file. I mean, instead of: field property=fechaCierre depends=date arg0 key=field.mantdimensionescg.fechaCierre / arg1 name=date

Re: validation wierdness possibly related to multiple struts config files

2004-07-15 Thread Bryan Hunt
h ... if i put that in mine I get a file not found exception the commons-validator jar doesn't include that one. with this definition it seems to be working ok for the time being !DOCTYPE form-validation SYSTEM http://jakarta.apache.org/commons/dtds/validator_1_2_0.dtd; curse these dtd's

Re: validation wierdness possibly related to multiple struts config files

2004-07-15 Thread Niall Pemberton
Its in the commons-validator.jar that I downloaded with Struts 1.2.1 Fair enough if it works - still the wrong one though. Niall - Original Message - From: Bryan Hunt [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 15, 2004 3:14 PM Subject: Re:

RE: calling request.getInputStream() within Action

2004-07-15 Thread Robert Shields
Hi Bill Thanks for your response. I've tried with a servlet too, but even without calling request.getParameter the stream is still empty: public class TestServlet extends HttpServlet { ResourceBundle rb = ResourceBundle.getBundle(LocalStrings); public void doGet(HttpServletRequest

RE: [OT] Best practice for background service

2004-07-15 Thread Daniel Perry
Nope, you dont need to start another process - i use a struts plugin to load and initialise Quartz. It will run in other threads, but this will all be done for you behind the scenes. The code for my struts plugin is below (if it's of any help). Add the following entry to the

The absolute uri: http://struts.apache.org/tags-html cannot be resolved

2004-07-15 Thread Eliot Stock
Hello. I'm trying to do what the Struts docs mention here (scroll down to section 5.4.3.1): http://struts.apache.org/userGuide/configuration.html#dd_config_taglib which is, do away with declaring the struts taglibs in my web.xml altogether and just use an absolute URI for the taglib declaration

RE: calling request.getInputStream() within Action

2004-07-15 Thread Paul McCulloch
Can I ask why you are after the binary content of the request? Paul -Original Message- From: Robert Shields [mailto:[EMAIL PROTECTED] Sent: 15 July 2004 16:02 To: Struts Users Mailing List Subject: RE: calling request.getInputStream() within Action Hi Bill Thanks for your

Re: The absolute uri: http://struts.apache.org/tags-html cannot be resolved

2004-07-15 Thread Bill Siggelkow
Are you using the nightly build (or 1.2.1?) The taglib directive %@ taglib uri=http://struts.apache.org/tags-html; prefix=html % works fine for me. Maybe you have an old jar or TLD lying around in your classpath or WEB-INF? Eliot Stock wrote: Hello. I'm trying to do what the Struts docs mention

Re: The absolute uri: http://struts.apache.org/tags-html cannot be resolved

2004-07-15 Thread Bill Siggelkow
Well, I have the TLDs in my WEB-INF/lib -- I haven't tried removing them to see what happens ... Eliot Stock wrote: Hello. I'm trying to do what the Struts docs mention here (scroll down to section 5.4.3.1): http://struts.apache.org/userGuide/configuration.html#dd_config_taglib which is, do away

RE: calling request.getInputStream() within Action

2004-07-15 Thread Robert Shields
Hi Paul I'm trying to pass it to HttpClient - I'm writing a screen scraper (proxy). At the moment I have to enumerate the request parameters and pass them one by one to HttpClient - I have a feeling this won't work when I test it with a multipart encoded form (although I may be able to make use

Tiles, Validation and reuse of HTML Form

2004-07-15 Thread Josh Holtzman
Hello All, I've tried to search the list archives for previous threads on this topic, but it appears the search feature is not working. We are building a simple website that offers about a half dozen products for sale. We have one dedicated page layout (the product page) that contains

RE: Tiles, Validation and reuse of HTML Form

2004-07-15 Thread Jim Barrows
-Original Message- From: Josh Holtzman [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 9:43 AM To: 'Struts Users Mailing List' Subject: Tiles, Validation and reuse of HTML Form snip/ In the struts config file we created an Action element for each of the 6 product

Re: calling request.getInputStream() within Action

2004-07-15 Thread Craig McClanahan
Robert Shields wrote: Hi Bill Thanks for your response. I've tried with a servlet too, but even without calling request.getParameter the stream is still empty: One way to paint yourself into this particular corner is if you're trying this on a POST request. As soon as you call a method like

RE: Tiles, Validation and reuse of HTML Form

2004-07-15 Thread Jim Barrows
-Original Message- From: Bryan Hunt [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 10:03 AM To: Struts Users Mailing List Subject: Re: Tiles, Validation and reuse of HTML Form I do it with a separate action for each use case. I find it tedious but have not found a

Re: The absolute uri: http://struts.apache.org/tags-html cannot be resolved

2004-07-15 Thread Paul Spencer
Eric, I am using Struts 1.1 and use the following: %@ taglib uri=http://jakarta.apache.org/struts/tags-html; prefix=html % Notice the host is jakarta.apache.org not struts.apache.org. Paul Spencer Eliot Stock wrote: Hello. I'm trying to do what the Struts docs mention here (scroll down to section

RE: Tiles, Validation and reuse of HTML Form

2004-07-15 Thread Josh Holtzman
Brian, I agree. In our case, the site is actually designed in that there is one page that functions as both the catalog and item page. Don't ask... But yes, /showItem.do?item=1 is a better approach in my opinion than 6 action mappings. I think we have resolved our issue, simply by taking a

Re: More fun with forms...

2004-07-15 Thread Andrew Close
ron1, Jim thank you for your help. i think part of my problem was that i was trying to use a DynaActionForm instead of just creating and using my own ActionForm. now it appears to be working... for the most part. :) andy On Wed, 14 Jul 2004 12:02:27 -0700, Jim Barrows [EMAIL PROTECTED]

RE: Tiles, Validation and reuse of HTML Form

2004-07-15 Thread Jim Barrows
-Original Message- From: Josh Holtzman [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 10:30 AM To: 'Struts Users Mailing List' Subject: RE: Tiles, Validation and reuse of HTML Form Brian, I agree. In our case, the site is actually designed in that there is one

[OT] browser properties

2004-07-15 Thread Sergey Livanov
How can I switch usual buttons, address line and references off? regards, Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

html:selecthtml:optionsCollection

2004-07-15 Thread Andrew Close
alrighty, i've got this half figured out. i can populate my dropdowns, but my form doesn't seem to be scrapping the values back off the page. i have an action that gets a collection of beans and puts them in session for the JSP to use. the JSP renders and displays those objects correctly in the

Re: Parameterizing form JSPs with tags

2004-07-15 Thread Erik Weber
Rick Reumann wrote: On Mon, 12 Jul 2004 10:31:29 -0400, Erik Weber [EMAIL PROTECTED] wrote: (speaking of add form versus update form that are similar but not exactly the same . . ) I'd reuse the same form, even if it means some JSTL c:choosec:when test=${userAction == 'update'}.../.. I

Re: html:selecthtml:optionsCollection

2004-07-15 Thread Bill Siggelkow
Hmmm ... looks pretty darn hairy. You didn't show the JavaScript thats called by the onchange -- I would verify first that getGroups is being called. Andrew Close wrote: alrighty, i've got this half figured out. i can populate my dropdowns, but my form doesn't seem to be scrapping the values

html:image question

2004-07-15 Thread Jeff Stewart
How can I pass parameters in a html:image tag. I have four of these that will basically do the same thing, issue a query. But, the query is parameterized. It make little sense to do it the Husted way and have multiple image bean buttons to represent which html:image was selected. IMHO, that

How to use roles with Struts

2004-07-15 Thread ron1
Hi all :-) I am wondering how some of the experienced users use roles with struts. I saw there is a query for roles in the API (getRoles()), but could not figure out how to configure ACLs with struts, or more specific: where to define which action is allowed for which role, and, and I guess that

Re: html:selecthtml:optionsCollection

2004-07-15 Thread Andrew Close
sl_getGroups is being called. i printed out alerts when i was writing it. and i have Sys.outs in the action. besides, my JSP wouldn't show up if it wasn't :) the javascript is fairly simple: (i know there is a more Strutsy way to do this, i'm getting there...) function sl_getGroups(frm) { if

RE: How to use roles with Struts

2004-07-15 Thread Jim Barrows
-Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of ron1 Sent: Thursday, July 15, 2004 11:51 AM To: [EMAIL PROTECTED] Subject: How to use roles with Struts Hi all :-) I am wondering how some of the experienced users use roles with struts. I saw there is a

Re: Re: The absolute uri: http://struts.apache.org/tags-html cannot be resolved

2004-07-15 Thread Eliot Stock
That's it - it works. Thanks very much. So the docs at http://struts.apache.org/userGuide/configuration.html#dd_config_taglib are wrong, or at least very misleading, because they use struts.apache.org. They do say to use the uris above, but everyone is going to do what I did and just cut and

RE: html:selecthtml:optionsCollection

2004-07-15 Thread Jim Barrows
-Original Message- From: Andrew Close [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 11:57 AM To: Struts Users Mailing List Subject: Re: html:selecthtml:optionsCollection sl_getGroups is being called. i printed out alerts when i was writing it. and i have Sys.outs

Configuring plug-ins using set-property tag (in struts-config.xml)

2004-07-15 Thread Geeta Ramani
Hi all: I have a question regarding the use of plug-ins. According to the docs, For PlugIns that require configuration themselves, the nested set-property element is available. My question is simply this: how do I retrieve the value that I set in a set-property tag? I am sure this is dead

Re: How to use roles with Struts

2004-07-15 Thread ron1
Thanx Jim :-) Am I wrong on that one canonly configure web.xml roles on a servlet base? which will mean, I set roles for a servlet mapping? so all my struts actions will map to the same Permission... Or did I miss something in the web.xml? Cheers, Ron Jim Barrows wrote: -Original

RE: How to use roles with Struts

2004-07-15 Thread Jim Barrows
-Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of ron1 Sent: Thursday, July 15, 2004 12:08 PM To: [EMAIL PROTECTED] Subject: Re: How to use roles with Struts Thanx Jim :-) Am I wrong on that one canonly configure web.xml roles on a servlet base? which will

RE: Configuring plug-ins using set-property tag (in struts-config.xml)

2004-07-15 Thread Geeta Ramani
Jim: egg-on-faceYes that worked. I actually read .. which will all have been called before the init() method is invoked. as which will have to be called before the init() method is invoked. and got stumped.. /egg-on-face Thank you so much! Geeta P.S I can see now why writing to the list

RE: html:selecthtml:optionsCollection

2004-07-15 Thread Jim Barrows
-Original Message- From: Andrew Close [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 12:30 PM To: Struts Users Mailing List Subject: Re: html:selecthtml:optionsCollection the weird thing is that i just added a textfield to the form and my form/action picks that up.

RE: Configuring plug-ins using set-property tag (in struts-config.xml)

2004-07-15 Thread Jim Barrows
-Original Message- From: Geeta Ramani [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 12:21 PM To: Struts Users Mailing List Subject: RE: Configuring plug-ins using set-property tag (in struts-config.xml) Jim: egg-on-faceYes that worked. I actually read .. which

RE: Configuring plug-ins using set-property tag (in struts-config.xml)

2004-07-15 Thread Geeta Ramani
-Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 3:35 PM To: Struts Users Mailing List Subject: RE: Configuring plug-ins using set-property tag (in struts-config.xml) P.S I can see now why writing to the list before googling is

Re: html:selecthtml:optionsCollection

2004-07-15 Thread Andrew Close
On Thu, 15 Jul 2004 12:10:49 -0700, Jim Barrows [EMAIL PROTECTED] wrote: Just to make sure I understand what's happening. You display a page, user selects from first list, the page submits, the action does it's thing, and populates the second list, then the user selects from that list,

Re: How to use roles with Struts

2004-07-15 Thread Hubert Rabago
Ron, You can associate roles with each action mapping so that only users with certain roles can access that action. action path=/admin type=com.company.action.AdminAction roles=administrator/ Hubert --- ron1 [EMAIL PROTECTED] wrote: Thanx Jim :-) Am I wrong on that one canonly

RE: html:selecthtml:optionsCollection

2004-07-15 Thread Jim Barrows
-Original Message- From: Andrew Close [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 1:08 PM To: Struts Users Mailing List Subject: Re: html:selecthtml:optionsCollection On Thu, 15 Jul 2004 12:10:49 -0700, Jim Barrows [EMAIL PROTECTED] wrote: Just to make sure I

Re: html:selecthtml:optionsCollection

2004-07-15 Thread Andrew Close
-- Jim wrote: I don't think there is a better way, I'm just suggesting maybe hardcoding those to drop downs for testing purposes, and eliminate the JS. You're JSP looks right, and I'm assuming that your form bean has the return values as arrays if their multi-select, or single strings and

RE: html:selecthtml:optionsCollection

2004-07-15 Thread Jim Barrows
-Original Message- From: Andrew Close [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 1:40 PM To: Struts Users Mailing List Subject: Re: html:selecthtml:optionsCollection -- Jim wrote: I don't think there is a better way, I'm just suggesting maybe hardcoding those

Re: html:selecthtml:optionsCollection

2004-07-15 Thread Andrew Close
ahh. yeah, i added just plain html:options to the page and that didn't work. i'll see if i can get rid of the javascript and just submit with a button to test this out... Thanks Jim andy On Thu, 15 Jul 2004 13:43:18 -0700, Jim Barrows [EMAIL PROTECTED] wrote: -Original

Re: html:selecthtml:optionsCollection

2004-07-15 Thread Andrew Close
Blah! it works fine with a submit button. :) i guess i'll have to find another way to make the onchange work... On Thu, 15 Jul 2004 15:49:05 -0500, Andrew Close [EMAIL PROTECTED] wrote: ahh. yeah, i added just plain html:options to the page and that didn't work. i'll see if i can get rid of

Re: html:image question

2004-07-15 Thread Michael McGrady
At 11:53 AM 7/15/2004, you wrote: How can I pass parameters in a html:image tag. http://wiki.apache.org/struts/StrutsCatalogMultipleImageButtonsWithNoJavaScript If you do the coding on this one time, you merely have to add a new button when you want one in command class ButtonOperation. After

Re: html:image question

2004-07-15 Thread Michael McGrady
At 02:26 PM 7/15/2004, you wrote: crackwillow:image button='GO.gif' mapBean='host' bgClr='FF' txtClr='00' font='Eurostile' italic='false'

Re: html:image question

2004-07-15 Thread Michael McGrady
At 11:53 AM 7/15/2004, you wrote: It make little sense to do it the Husted way and have multiple image bean buttons to represent which html:image was selected. IMHO, that approach is too much like hard coding. I for one cannot imagine why you would want a button value to be dynamic other than to

Re: html:selecthtml:optionsCollection

2004-07-15 Thread Andrew Close
All right, i'm a real idiot. it was a javascript issue. after i check to make sure the dropdown value wasn't -1, i set it to -1 and then submit the form. must've been one of those hasty cut paste mistakes... everythings fine. nothing to see here. move along... On Thu, 15 Jul 2004 16:06:21

Re: webapp deployment

2004-07-15 Thread Phyl
Hi, I tried adding a context parameter to web.xml: context-param param-nametestparam/param-name param-valuehello/param-value /context-param and access it in a jsp: html body % out.print(getServletContext().getInitParameter(testparam));

RE: webapp deployment

2004-07-15 Thread Jim Barrows
-Original Message- From: Phyl [mailto:[EMAIL PROTECTED] Sent: Thursday, July 15, 2004 3:04 PM To: Struts Users Mailing List Subject: Re: webapp deployment Hi, I tried adding a context parameter to web.xml: context-param param-nametestparam/param-name

Text search not available for this list

2004-07-15 Thread Eliot Stock
When I try to search the archives for this list at: http://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED] I intermittently get this message: Text search not available for this list which must be a bad error message, because I'm sure I've searched it before. Also, it looks like the

Missing message for key welcome.title

2004-07-15 Thread Krishna Garimella
Hi, I have downloaded jakarta-struts-1.1 and installed it as per the installation instructions. When I try to run the tutorial I get the following message Missing message for key welcome.title. I did search the archives and tried all the fixes available for this problem, but nothing works.

RE: Missing message for key welcome.title

2004-07-15 Thread Venkat Maddipati
Make sure that the properties file (Resource Bundle file) is set properly in the struts configuration file (usually, struts-config.xml) and check that welcome.title property is defined in the resources file. The entry for the Message Resources looks like the following in the struts config file:

Re: Struts Sample / Best Practices for Database access

2004-07-15 Thread Vic Cekvenich
http://www.reumann.net/do/struts/ibatisLesson1 Richard Reyes wrote: Hi Guys, Newbie question, where can i get struts sample application using database components like DAO, JDO or Hibernate samples. Thanks Richard - To

Re: calling request.getInputStream() within Action

2004-07-15 Thread Craig McClanahan
Robert Shields wrote: Hi Craig, Yes, I thought as much. Do you know if it's possible to exactly recreate the binary HTTP body from parsed parameters, or elsewhere for that matter? The only thing I could think of would be a Filter -- requires Servlet 2.3 or later -- that would be able to scrape

About datasource

2004-07-15 Thread Koon Yue Lam
Hi ! I have successfully use struts to connect MySql but I wonder do I using the database connection pool, or just a new connection for each request?? All I did is very simple stuffs and I follow strict to the database How-To section of struts doc. How can I know I am actually using a connection

Re: About datasource

2004-07-15 Thread Craig McClanahan
Koon Yue Lam wrote: Hi ! I have successfully use struts to connect MySql but I wonder do I using the database connection pool, or just a new connection for each request?? All I did is very simple stuffs and I follow strict to the database How-To section of struts doc. How can I know I am actually

regular expression

2004-07-15 Thread subramaniam . o
Hi, I want to validate an attribute, the rule is that the input should not start with 'Test', how to write the regular expression for this validation. Please help me guys. Thanks and regards Subramaniam Olaganthan Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website:

how to use controllerclasses with tiles?

2004-07-15 Thread Fahd Ahmed
Hi, I am trying to use a controllerClass with Tiles. I am mentioning the controllerClass in one of my definition tags. The controller does nothing but put a varible in ComponentContext. On the JSP I just use the importAttribute tag to get that value. But when i access the page, I keep on getting

Re: how to use controllerclasses with tiles?

2004-07-15 Thread Mark Mandel
Fahd, I've successfully implemented heaps of controller classes, but I'm having trouble visualising what you have done. Any chance of a code example? Mark On Fri, 16 Jul 2004 10:35:13 +0500, Fahd Ahmed [EMAIL PROTECTED] wrote: Hi, I am trying to use a controllerClass with Tiles. I am