RE: Bean Definition

2002-05-14 Thread Chakradhar Tallam
the name of the form bean is projectForm with small p compared to the bean class ProjectForm with big P. make sure u use projectForm with small p in ur form action definition. ct. -Original Message- From: Sudhir [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 14 May 2002 4:17 PM To: [EMAIL

Re: Logic:Iterate:sort, what do you think?

2002-05-14 Thread Richard Yee
Michael, Since it's already done through the TreeMap and TreeSet collection classes, I don't think it's necessary to implement it again in the logic:iterate tag. If you want to access members of a collection in a sorted order, then use the TreeMap or TreeSet as the collection and invoke the

Re: SSL

2002-05-14 Thread @Basebeans.com
Subject: Re: SSL From: Wolfgang Gehner [EMAIL PROTECTED] === just testposting... Andy Noble wrote in message ... Always worth checking out Ted Husted's site : http://husted.com/struts/FAQ/controller-ssl.htm Andy - Original Message - From: Rakesh [EMAIL PROTECTED] To: [EMAIL

RE: Using struts with WLS6.2?

2002-05-14 Thread Vikram Goyal01
We have done it with 6.1 SP2 and there were no extra steps required. Rgs Vikram -Original Message- From: asd asd [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:35 PM To: [EMAIL PROTECTED] Subject: Using struts with WLS6.2? The only install docs I could find online at

PropertyMessageResourceFactory problem

2002-05-14 Thread McGrath, Wayne
This is my first time to try Struts in Tomcat 3.2.1 (no Apache) struts-documentation.war deployed OK but all other .war files result in errors (below) while the war files are being loaded. Any advice for a first timer with Struts. java.lang.ClassNotFoundException:

Re: Using struts with WLS6.2?

2002-05-14 Thread Michael Shang
Does WLS 6.2 ever exist??? - Original Message - From: Vikram Goyal01 [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, May 14, 2002 4:14 PM Subject: RE: Using struts with WLS6.2? We have done it with 6.1 SP2 and there were no extra steps required. Rgs

Re: Sub-application motel -- pages check in but they don'tcheck out

2002-05-14 Thread Ian Tomey
Hi Steve I registered an enhancement in bugzilla months ago... to get around this the easiest way is to subclass the tags and add some extensions. here is an example from the form tag. the function called lookup, first block of code deals with determining appConfig. replace it with: if (

RE: Bean Definition

2002-05-14 Thread Sudhir
Hi Chakradhar, Thanks for your immediate reply. Could you let me know an example how to get the data from database and display on JSP. Using Action Class we need to get the data from databse ... right. After getting the data to Action Class how to transform the data to JSP via Action

RE: Using onclick within iterate tag

2002-05-14 Thread Wilson, Les J SI-FSIA
Hi Doug, We do something similar, but with a check box and an input field, but the process should be the same. Javascript function that enables the input field based on the checkbox accessed by form and index function isBudgetRequired(form, index) { checkBox =

Re: VAJ 4 Struts Error 503

2002-05-14 Thread @Basebeans.com
Subject: Re: VAJ 4 Struts Error 503 From: Marco [EMAIL PROTECTED] === [EMAIL PROTECTED] wrote in news:[EMAIL PROTECTED]: This is a generic error put out by VAJ (actually WebSphere) when one of your servlets in your app.webapp fails to load. In this case, it's most probably the

changing locale from jsp

2002-05-14 Thread Lisa van Gelder
Hi guys Can you tell me if is possible to call the Struts setLocale method from a jsp page? thanks Lisa -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

JasperReports/Struts 1.0

2002-05-14 Thread Cuperus, Bob
Hello All: I have been working on enabling JasperReports inside an existing Struts application, but have not had much luck. I have run through the tutorial and the entire JasperReports site but did not get much if anything out of the documentation...maybe I am missing something? I was

DTD's not found in BES 5.0

2002-05-14 Thread Karim D. Saloojee
Hi I am running Struts with Borland Enterprises Server (BES), version 5.0. I have migrated an application that was deployed on Tomcat 4 standalone to BES. BES will not run the app, printing a parser error on startup about not being able to find the dtd's for the struts-config.xml file. This

RE: changing locale from jsp

2002-05-14 Thread Lisa van Gelder
Actually, maybe the question should be how do I set the LOCALE_KEY for my session? I can then change the locale stored under LOCALE_KEY myself. Lisa -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Bean Definition

2002-05-14 Thread Michael Marrotte
This might be too obvious. But, the definition (ProjectForm.class) must be in org/apache/struts/webapp/example following the type syntax. To get things working I usually put my definitions (.class files) in the classes directory at first and set type to the definition name, e.g.

Re: LogoutAction

2002-05-14 Thread Adam Hardy
how do you know it´s not closing the session? What is happening instead? Adam Villegas, Courtney wrote: I am having troubles with the logout action that I have written. It directs me to the correct page, but does not actually log the user out and close the session. I have attached my action

Re: LogoutAction

2002-05-14 Thread Adam Hardy
Whoops. I see I´m behind everyone else. Villegas, Courtney wrote: ALl of my jsp pages check to see whether a user is logged on. After calling the logout action, I am still able to navigate to my other jsp pages. This does not happen every time. I am really tearing my hair out trying to

Re: is this the best way to display query resultsets on a page?

2002-05-14 Thread Adam Hardy
I put the data into beans like you do, but I use a bean declared in a tag on the jsp and then the iterate tag gets the bean-array direct from the databean via a getter function. Some things like options tags are done better like you do, by putting the bean-array into the request. There are

Re: changing locale from jsp

2002-05-14 Thread Adam Hardy
If you can do that: Locale locale = (Locale) getServletContext().getAttribute(Action.LOCALE_KEY); Then can't you also do: getServletContext().setAttribute(Action.LOCALE_KEY, new Locale(en)); Lisa van Gelder wrote: Actually, maybe the question should be how do I set the

Using onclick within iterate tag - Thanks

2002-05-14 Thread Doug Mclellan
Hi Les, Thanks for helping out with your example. It looks good, I will try it out later. Doug -Original Message- From: Wilson, Les J SI-FSIA [mailto:[EMAIL PROTECTED]] Sent: 14 May 2002 10:43 To: 'Struts Users Mailing List' Subject: RE: Using onclick within iterate tag -- To

RE: changing locale from jsp

2002-05-14 Thread Lisa van Gelder
You're right, you can. If you change the attribute in session, it changes the Locale for all pages just like doing setLocale in struts... thanks! Lisa -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED]] Sent: 14 May 2002 13:40 To: Struts Users Mailing List Subject: Re:

Re: Multiple sites using one struts application.

2002-05-14 Thread Kevin . Bedell
You're not reading this wrong. I'm advocating creating 50 webapps (and 50 war files) if you have 50 sites. But I've always felt that disk space and server memory are cheap compared to developer time. CPU requirements would likely be the same with either approach. Don't run from ghosts - that

option groups

2002-05-14 Thread Mike Dewhirst
Hello and thank you very much in advance for reading! A quick one first - been using Struts for over a year now - what a brilliant code base!! Saves time and forces elegance. Fantastic. Could somebody tell me, is the following possible to implement using sta? I want to use the Struts model

File Upload - MultipartRequest, Weblogic 6.1 and Servlet 2.3

2002-05-14 Thread @Basebeans.com
Subject: File Upload - MultipartRequest, Weblogic 6.1 and Servlet 2.3 From: Andrej [EMAIL PROTECTED] === Hello All, I'm having big problems uploading files in the following environment: Struts 1.1b1, Weblogic 6.1 sp2 on Solaris 8. I keep getting a warning followed by an exception (both are

RE: File Upload - MultipartRequest, Weblogic 6.1 and Servlet 2.3

2002-05-14 Thread Galbreath, Mark
Check this out: http://www.fawcette.com/javapro/2002_01/magazine/features/acalsavara/ Mark -Original Message- From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 9:10 AM Subject: File Upload - MultipartRequest, Weblogic 6.1 and Servlet 2.3 From: Andrej [EMAIL

RE: javascript and struts1.0.2

2002-05-14 Thread Mannem, Taati
Joseph, Thanks alot for your help... Regards, Taati -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Problem w/ ActionForm Value Object mapper by Andrej Consulting

2002-05-14 Thread @Basebeans.com
Subject: Re: Problem w/ ActionForm Value Object mapper by Andrej Consulting From: Andrej [EMAIL PROTECTED] === Roland, sorry for replying late... I had to unsubscribe to the list (though I replied to your Hotmail account :) ). I'm not aware of any real problems with converting Integers using

Re: how to access the properties file from the action class

2002-05-14 Thread Kevin . Bedell
If I understand correctly: - Your error messages are defined in the ApplicationResources.properties file. - You have the property name (key) for the error message you want - You're in the Action class and want to access the error message. Given that: MessageResources messages =

input flds (text) within a logic:iterate

2002-05-14 Thread Tandon, Pankaj
Hello, I need to display an unknown number of input fields to the user within a logic:iterate tag. The field corresponds to a form property 'comment', say. So in the corresponding Struts form I will need to have a getter and setter that sets and gets a String AND a Collection like so: public

RE: xml-xslt v jsp

2002-05-14 Thread Greg.Reddin
isn't teaching a designer XSLT to modify a schema into HTML easier than teaching them to not break your java code inside of a jsp? No, it's not. XSLT *is* a programming language and you have to know XPath to really do anything practical with XSLT. I would never try to teach designers XSLT

RE: xml-xslt v jsp

2002-05-14 Thread Tandon, Pankaj
Can you please explain WHY server side XSL transforms shd be more of a performance (resource) hog than client side? Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 10:36 AM To: [EMAIL PROTECTED] Subject: RE: xml-xslt v jsp

DynaActionForms

2002-05-14 Thread Christopher Book
Hello, I've used struts 1.0 with forms before but I'm having problems using DynaActionForms instead. I've setup my struts-config properly (I beleive), and I'm using the following code in my action to set my form bean: DynaActionForm myForm = new DynaActionForm(); myForm.set(name,this is my

new tag request html:xslt - was : xml-xslt v jsp

2002-05-14 Thread Kevin . Bedell
A more fundamental issue here is that this only really addresses the view of the MVC architecture. That is, XSL/XSLT/XPATH are really only useful once you have the data you are prepared to present (in the xml record) and want to render it into html (using XSL/XSLT). Given that, I believe

Re: html:options with a Map collection

2002-05-14 Thread Sriram Nookala
I've been trying to find documentation on how to use a Map collection in html:options with the Map key as the label name and the Map value as the label property. thanks, sriram -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: xml-xslt v jsp

2002-05-14 Thread Kevin . Bedell
Client-side is non-portable and leads to tailoring the app to a particular browser-implementation. In addition, bugs are virtually impossible to recreate since you have no control over the client environment. Keep it server-side. Tandon, Pankaj [EMAIL PROTECTED] on 05/14/2002 10:42:41 AM

Re: input flds (text) within a logic:iterateyou

2002-05-14 Thread Arron Bates
You'll have to set the indexed property to true in all child tags within the iterator... html:text name=someBean property=comment indexed=true Or... you can use nested tags and it's all done for you, no matter what child tags your using, and you can also forget having to set a bean with the

Re: new tag request html:xslt - was : xml-xslt v jsp

2002-05-14 Thread Kevin . Bedell
Now that I look at this - I like this 3rd use case even better: 3. allow xml to be specified in-line. Tag then transforms against xsl specified by xsl attribute html:xslt xsl=path_or_url/to/stylesheet.xsl // XML document then created dynamically based on //

RE: xml-xslt v jsp

2002-05-14 Thread Greg.Reddin
Someone else could probably do a better job than me, but... 1) If transforms are done on the client, processing is distributed. The server does not have to process transformations for all of the concurrently connected clients. DOM processing takes a lot of memory and overall application

RE: html:options with a Map collection

2002-05-14 Thread Galbreath, Mark
A Map is not a Collection. Mark -Original Message- From: Sriram Nookala [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 10:48 AM To: Struts Users Mailing List Subject: Re: html:options with a Map collection I've been trying to find documentation on how to use a Map collection

RE: xml-xslt v jsp

2002-05-14 Thread Greg.Reddin
I aggree that it's very difficult to debug and is non-portable, but our experience was that we could never find a server environment with adequate performance. The performance issue outweighed the portability and support issues for us. Of course, we're talking about an intranet application

Questions regarding Nested Tutorial..[Repost]

2002-05-14 Thread Jeff_Mychasiw
Could someone please shed some light on this issue? I would like to move forward. At least tell me to go look for another career in small motor repair! :-) I have completed the nested tutorials part one and two (on the Arron's keyboardmonkey site), and actually have no questions about

One setter for multiple input fields?

2002-05-14 Thread Michael Marrotte
I have 3 properties (month, day, year) in the JSP. Is there a shortcut-way to get my form bean to set a date property based on these three fields without explicitly? Michael Marrotte -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: LogoutAction

2002-05-14 Thread Trieu, Danny
aha... if you are using Weblogic 5-6 then I know exactly what going on :) the problem is when you call session.invalidate() and then do a forward, your session is not invalidated. So if you invalidate your current session and do a redirect to where ever you want to go

RE: LogoutAction

2002-05-14 Thread Trieu, Danny
In addition to my earlier response. The problem is,. you actually do closed your session because if you try to invalidate the session again right after your first invalidate you will get an invalidStateException (or something). but if you do a forward to the next resource ... for some

Re: html:options with a Map collection

2002-05-14 Thread Sriram Nookala
I got this to work using the following: html:optionsCollection property=reportTemplates label=key value=value/ where getReportTemplates returns the Map. - Original Message - From: Galbreath, Mark [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday,

RE: html:options with a Map collection

2002-05-14 Thread Galbreath, Mark
That's great! But a Map is still not a Collection. -Original Message- From: Sriram Nookala [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 11:32 AM To: Struts Users Mailing List Subject: Re: html:options with a Map collection I got this to work using the following:

Re: One setter for multiple input fields?

2002-05-14 Thread Kevin . Bedell
This code fragment creates a read-only date property. If you now define on your form a month, date and year properties then the date is automatically set. private String month; public String getMonth () { return this.month; } public void setMonth (String month) {

Re: new tag request html:xslt - was : xml-xslt v jsp

2002-05-14 Thread Kevin . Bedell
Hmm Thought I was sooo smart. The JSTL already provides this http://jakarta.apache.org/taglibs/doc/xsl-doc/xsl-1.0/index.html FWIW - Kevin [EMAIL PROTECTED] on 05/14/2002 10:46:19 AM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users

RE: html:options with a Map collection

2002-05-14 Thread Chappell, Simon P
Please take the hint! Mark is right and you wont like it if you force him to become sarcastic! Simon - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com

RE: changing locale from jsp

2002-05-14 Thread Raffy_Lata
Create a from in your jsp (I do this in my welcome page), something like (don't cut and paste this as I just quickly typed the following) html:form action = setLocale.do Choose Language :html:select name=locale html:option value=EnglishEnglish/html:option html:option

RE: new tag request html:xslt - was : xml-xslt v jsp

2002-05-14 Thread Lisa van Gelder
See also: xtags http://jakarta.apache.org/taglibs/doc/xtags-doc/intro.html and open symphony transform tags: http://www.opensymphony.com/transformtags/ for examples of taglibs that transform xml against a given xsl. Lisa -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: xml-xslt v jsp

2002-05-14 Thread Craig R. McClanahan
On Tue, 14 May 2002 [EMAIL PROTECTED] wrote: Date: Tue, 14 May 2002 10:13:00 -0500 From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: xml-xslt v jsp I aggree that it's very difficult to debug and is non-portable, but our

RE: html:options with a Map collection

2002-05-14 Thread James Mitchell
I should know..I'm still cleaning my wounds! ;) JM -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 12:04 PM To: Struts Users Mailing List Subject: RE: html:options with a Map collection Please take the hint! Mark is right

html:text issue

2002-05-14 Thread Galbreath, Mark
Is there a way to suppress the default value for html:text when the property of the bean is an int? I don't want a 0 showing in the textbox when the property has not been set - it's screwing up validation. Thanks, Mark

Re: VAJ 4 Struts Error 503

2002-05-14 Thread Raffy_Lata
I didn't use the struts examples to test out my setup. Instead I just provided my own little application, but it works. Just make sure the package names are consistent as I made changes to the sample codes below before I sending this out. Installation and configuration 1. In VAJ, you will

Re: html:text issue

2002-05-14 Thread SUPRIYA MISRA
how about scriptlet? if getProperty==0 call Javascript function. Javascript funcion form.element.value=; From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts (E-mail) [EMAIL PROTECTED] Subject: html:text issue Date: Tue, 14 May 2002 12:12:51

RE: html:text issue

2002-05-14 Thread Galbreath, Mark
Nah...want to avoid all client scripting except JavaScript validation. -Original Message- From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 12:22 PM To: [EMAIL PROTECTED] Subject: Re: html:text issue how about scriptlet? if getProperty==0 call Javascript

RE: html:text issue

2002-05-14 Thread James Mitchell
Can you get by with a wrapper? JM -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 12:24 PM To: 'Struts Users Mailing List' Subject: RE: html:text issue Nah...want to avoid all client scripting except JavaScript validation.

Re: Multiple sites using one struts application.

2002-05-14 Thread Mike Karl
I wanted to do something where a just created the properties for each club based on the URL and pass resources and a directory to the jsp pages. I think in my case it would be best on the server to have just one set of pages running even if there is a bit more overhead processing the pages.

Re: html:text issue

2002-05-14 Thread @Basebeans.com
Subject: Re: html:text issue From: Vic C [EMAIL PROTECTED] === JavaScript validation? Struts validator is great! Re-consider for future. Galbreath, Mark wrote: Nah...want to avoid all client scripting except JavaScript validation. -Original Message- From: SUPRIYA MISRA

option groups

2002-05-14 Thread Mike Dewhirst
Could somebody tell me, is the following possible to implement using sta? I want to use the Struts model correctly to implement a page that has this layout: form name= action=.. input type=radio name=a.ac.own value=na input type=radio name=a.ac.own value=ro input type=radio name=a.ac.own

Action forward - external site

2002-05-14 Thread Villegas, Courtney
Is it possible to have an action forward to an external site? In other words, can I set my success path to a http reference? See example below. actionpath=/triNet type=org.trimet.security.actions.TriNet scope=request forward

Re: html:text issue

2002-05-14 Thread Kevin . Bedell
Shouldn't this be taken care of in the bean? Why fix it in the jsp? That is, the bean should provide valid display values. If it shows 0, when the property has not been set then can the bean have the appropriate values initialized? This approach simplifies the jsp's and makes it less

Re: Multiple sites using one struts application.

2002-05-14 Thread Kevin . Bedell
I also need to integrate this with some parts from an existing PHP site which I'm sure is going to add some complexity to the site. And I don't want to have to erase and rebuild 50 sites everytime I need to fix a little problem. Which with my client happens several times a day. Using Ant

Struts throws ServletException when parsing in Borland Enterprise Server 5.0 - works great in Tomcat

2002-05-14 Thread Karim D. Saloojee
Hi This is the exception that is written out when I migrate my app from Tomcat 4 to BES 5. The struts-config.xml file is ok cause I test my app in standalone Tomcat and it works. Only the controller servlet will not come up in BES, which btw also uses Tomcat. TIA, Karim [Mon May 13 16:36:35

Re: VAJ 4 Struts Error 503

2002-05-14 Thread Raffy_Lata
I forgot to include this. You will need to make some revisions to the Struts source code or you will get the following error Cannot remove Attribute from request scope in your browser. I think this problem only occurs in WebSphere. In VAJ, go to the

Help : Dropdown List

2002-05-14 Thread Damien VIEL
Hi :) Could anyone pls tell me how to populate a dropdown list using struts tag libraries. I've heard that I need to put a Collection (Arraylist) in the request. This Collection is build from a Database. For Example I have 3 files : - UserForm.java - UserAction.java - SelectUser.jsp I want to

RE: Help : Dropdown List

2002-05-14 Thread James Mitchell
Did you get the struts-example running??? JM -Original Message- From: Damien VIEL [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 12:54 PM To: Struts Users Mailing List Subject: Help : Dropdown List Hi :) Could anyone pls tell me how to populate a dropdown list

Re: Multiple sites using one struts application.

2002-05-14 Thread Mike Karl
Good to know, I have never actually used Ant. On Tue, 2002-05-14 at 10:34, [EMAIL PROTECTED] wrote: I also need to integrate this with some parts from an existing PHP site which I'm sure is going to add some complexity to the site. And I don't want to have to erase and rebuild 50

RE: html:text issue

2002-05-14 Thread James Mitchell
I guess the Integer is out of the question??? JM -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 12:57 PM To: 'Struts Users Mailing List' Subject: RE: html:text issue I do Struts validation on the server side html:errors as

RE: html:text issue

2002-05-14 Thread Wilson, Les J SI-FSIA
We do this by wrapping the int value in a getWhateverDisplay method that returns a string - we test if the int value is 0 then return an empty string - the form field then refers to the whateverDisplay attribute. The set method (setWhateverDisplay) then converts the entered value back to the

RE: Multiple sites using one struts application.

2002-05-14 Thread James Mitchell
There have been several examples of a default/generic file structure and build.xml file posted within the last few weeks. If you need additional help, just let us know. JM -Original Message- From: Mike Karl [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 12:57 PM To: Struts

Re: Help : Dropdown List

2002-05-14 Thread Damien VIEL
Sorry no, but I'm going to :) Dams - Original Message - From: James Mitchell [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, May 14, 2002 6:59 PM Subject: RE: Help : Dropdown List Did you get the struts-example running??? JM -Original

RE: html:text issue

2002-05-14 Thread Galbreath, Mark
Thanks, Les...I'll give it a shot. -Original Message- From: Wilson, Les J SI-FSIA [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 1:03 PM To: 'Struts Users Mailing List' Subject: RE: html:text issue We do this by wrapping the int value in a getWhateverDisplay method that returns

RE: Help : Dropdown List

2002-05-14 Thread James Mitchell
Well, if you look at the subscription.jsp. The example loads these in the jsp, but this could easily have been a call to your data manager/service or could even been pre-cached as an application scope list. %-- In real life, these would be loaded from a database --% % java.util.ArrayList

Re: option groups

2002-05-14 Thread Brian Holzer
Hey Mike, I think that you should look into the nested tags. I implemented a similar case with the following in my JSP but I found all I needed in the tutorials at http://www.keyboardmonkey.com/struts/index.html nested:iterate property=possibleProfiles

Re: Help : Dropdown List

2002-05-14 Thread Damien VIEL
Ok, no problem with this example. But I've read that it's not a good choice to create the ArrayList in the JSP but create it in another class and put this Arraylist in the request object. So you set a bean in the JSP. %jsp:UseBean.../% td align=left html:select property=type

RE: Help : Dropdown List

2002-05-14 Thread James Mitchell
Within your Action class. JM -Original Message- From: Damien VIEL [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 1:39 PM To: Struts Users Mailing List Subject: Re: Help : Dropdown List Ok, no problem with this example. But I've read that it's not a good choice to

RE: Help : Dropdown List

2002-05-14 Thread James Mitchell
sorry I did not clarify. I was not advocating to do this in the jsp. This should be done within the action. I guess I take this for granted.hmmm. JM -Original Message- From: Damien VIEL [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 1:39 PM To: Struts Users Mailing

Re: html:text issue

2002-05-14 Thread Shane Bouslough
From: Galbreath, Mark Is there a way to suppress the default value for html:text when the property of the bean is an int? Yes. -Shane _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe,

RE: html:text issue

2002-05-14 Thread James Mitchell
LOL JM -Original Message- From: Shane Bouslough [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 1:49 PM To: [EMAIL PROTECTED] Subject: Re: html:text issue From: Galbreath, Mark Is there a way to suppress the default value for html:text when the property of the bean

Application State == View or Business Logic

2002-05-14 Thread Graham Lounder
Hi all, I'm starting to rethink my current code structure. One of the question I came up with is where the application state is supposed to be. Currently I have a bean which holds my state in the session. If I moved this application to a new client, the state bean could end up in the

Re: Struts throws ServletException when parsing in Borland EnterpriseServer 5.0 - works great in Tomcat

2002-05-14 Thread Kevin . Bedell
looks like the root issue is: Parsing error processing resource path /WEB-INF/struts-config.xml Which parser are is BES configured to use? Maybe that this is set to validate and the Tomcat is set to not validate. Given that you're validating againts struts-config_1_0.dtd (again, from

DAO open source?

2002-05-14 Thread Adolfo Miguelez
Hi All, probably a little out of Struts scope but, not a problem for many of you, since it plugs in struts. I need to code an DAO class that, via JDBC, accesses a database. Database is Oracle 8i. We intend to manage any kind of database data. My employer suggested my that class could have a

RE: html:text issue

2002-05-14 Thread Galbreath, Mark
touche. -Original Message- From: Shane Bouslough [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 1:49 PM From: Galbreath, Mark Is there a way to suppress the default value for html:text when the property of the bean is an int? Yes. -Shane

suspected bug configuring ActionServlet for BasicDataSource

2002-05-14 Thread Mark Johnson
I get a NullPointerException when attempting to configure ActionServlet as follows (struts nightly build 20020508, struts-config_1_1.dtd): data-sources data-source className=org.apache.struts.config.DataSourceConfig key=MyBasicDataSource

Re: Logic:Iterate:sort, what do you think?

2002-05-14 Thread @Basebeans.com
Subject: Re: Logic:Iterate:sort, what do you think? From: Andrej [EMAIL PROTECTED] === Michael, this may be a useless note, but if you want to sort a Collection, you can use the Comparable interface then the Collection.sort() method. IMHO, sorting is a process and should theoretically not be

RE: html:text issue

2002-05-14 Thread SUPRIYA MISRA
Nope. It is a struts problem . From: James Mitchell [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: html:text issue Date: Tue, 14 May 2002 13:53:44 -0400 LOL JM -Original Message- From: Shane

RE: Logic:Iterate:sort, what do you think?

2002-05-14 Thread Michael Marrotte
Andrej; I've seen this lightly debated, before - that is, whether or not sorting should be in the Model or the View. I haven't been completely persuaded one way or the other. I suppose there's good reason for both arguments. Does sorting create a different view of the same data or does

RE: Logic:Iterate:sort, what do you think?

2002-05-14 Thread Galbreath, Mark
I'd sort it in Flash. Mark -Original Message- From: Michael Marrotte [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 3:05 PM Andrej; I've seen this lightly debated, before - that is, whether or not sorting should be in the Model or the View. I haven't been completely persuaded

RE: Logic:Iterate:sort, what do you think?

2002-05-14 Thread Voytek . Jarnot
But how in the world would you call that from Struts??? -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 2:13 PM To: 'Struts Users Mailing List' Subject: RE: Logic:Iterate:sort, what do you think? I'd sort it in Flash. Mark -Original

RE: suspected bug configuring ActionServlet for BasicDataSource

2002-05-14 Thread James Mitchell
It's being thrown from ActionServlet.initApplicationDataSources() The log statement is coming from a resource file. @see apache\struts\action\ActionResources.properties line 10 dataSource.init=Initializing application data source {0} I'm still speculating as to which line of code is the culprit

Re: html:text issue

2002-05-14 Thread Craig R. McClanahan
On Tue, 14 May 2002, Galbreath, Mark wrote: Date: Tue, 14 May 2002 12:12:51 -0400 From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts (E-mail) [EMAIL PROTECTED] Subject: html:text issue Is there a way to suppress the default value for

RE: html:text issue

2002-05-14 Thread Galbreath, Mark
Thanks, Craig. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 3:43 PM To: Struts Users Mailing List Subject: Re: html:text issue On Tue, 14 May 2002, Galbreath, Mark wrote: Date: Tue, 14 May 2002 12:12:51 -0400 From: Galbreath,

How-to dynamically name properties?

2002-05-14 Thread Michael Marrotte
Can someone help me figure a way to do something like this? html:select property=x_bean:write name=y property=z filter=true/ What I wanted to do is dynamically name the html:select property, x_[some-dynamic-value]. Any idea on how I should really approach this? Thanks, --Michael Marrotte

RE: How-to dynamically name properties?

2002-05-14 Thread James Mitchell
Out of curiosity. Why do you need this done? You want to be able to tell Struts which get???() and set???() to call based on a value in a bean? Wouldn't the DynaActionFrom suit your needs? JM -Original Message- From: Michael Marrotte [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May

Re: File Upload - MultipartRequest, Weblogic 6.1 and Servlet 2.3

2002-05-14 Thread @Basebeans.com
Subject: Re: File Upload - MultipartRequest, Weblogic 6.1 and Servlet 2.3 From: Andrej Sobkowski [EMAIL PROTECTED] === Got it! Here is the solution: http://www.mail-archive.com/struts-dev@jakarta.apache.org/msg06077.html [CopyPaste] when you use struts in combination with a Weblogic servlet

Re: VAJ 4 Struts Error 503

2002-05-14 Thread @Basebeans.com
Subject: Re: VAJ 4 Struts Error 503 From: Marco [EMAIL PROTECTED] === Thanks Raffa this really helped a lot. I have your sample running. I still get an error message when I don't fill in both fields but I think I can fix that on my own, shouldn't be too much of a problem. Hopefully I can

RE: How-to dynamically name properties?

2002-05-14 Thread Steve Scheepmaker
What exactly is all this DynaActionForm stuff? I've seen references to it but have not been able to find any information on it... Steve. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 1:10 PM To: Struts Users Mailing List Subject: RE:

RE: How-to dynamically name properties?

2002-05-14 Thread Galbreath, Mark
I've found using bean:write as part of dynamic functions problematic, but have been able to do with JavaScript by wrapping the bean getter with a JavaScript type. For example, you may find some way to do something like: script type=text/javascript function getProperty() { var newProp =x_

  1   2   >