Re: Novice in desperate need of HELP

2002-12-03 Thread Khalid K.
Hello Joseph, The things you need: a container or as it is called an Application Server: (Tomcat, WebLogic, JBoss, Websphere...etc) a webserver (apache) a database (depends on ur poject..if u need one..if u are presisting ejbs etc) Latest release of Struts, and a good book in MVC-2 (Model

Re: Help with Multiple Input!

2002-12-03 Thread Khalid K.
You can use a form tag to gather all that information. I dont understand why you need a loop Are you using Struts frame work ?? form name=myform action=your action class method=post input type=checkbox name=monday input type=select name=startTime . /form Please note that this is just

RE: Help with Multiple Input!

2002-12-03 Thread Wendy Smoak
I have a form in which I am collecting multiple input from the user, for example for each day of the week I am collecting opening hour and closing hour something in the format of day - checkbox - select/option - select/option , I want to do this in a loop for all 7 days of the week. I

Re: Help with Multiple Input!

2002-12-03 Thread Jana Navaneethan
Hi Khalid, Thanks for your reply, Yes I am using STRUTS frame work. I need a loop because I don't want to repeat the HTML code, it is going to be the same for all 7 days of the week, Also my select/options has tons of values. Any suggestions would be appreciated! Thanks in advance, Jana.

Re: [OT] caching drop-down lists

2002-12-03 Thread Michael Rimov
At 06:04 PM 12/2/2002 -0600, you wrote: In our application (and I'm sure most others) we've got a multitude of drop-down lists used for data entry. The Collections for the drop-downs are populated from the database. This doesn't seem very efficient - to hit the database for a read-only data

RE: SOLVED -- FW: Tomcat 4.1.16/Struts 1.1b2/Tiles == BLAM

2002-12-03 Thread James Mitchell
That's ok.I like 'BLAM' too!! James Mitchell -Original Message- From: Dave Hodson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 03, 2002 10:37 AM To: [EMAIL PROTECTED] Subject: SOLVED -- FW: Tomcat 4.1.16/Struts 1.1b2/Tiles == BLAM Pls disregard -- problem turned out to

Re: Help with Multiple Input!

2002-12-03 Thread Jana Navaneethan
Hi Wendy, All I am trying to do is to avoid repeating the HTML code. I am trying to do something like html:checkbox property=dayFlag%= i %/ where i is an integer 1 thru 7 and in my form bean I will have getter like getDayFlag1(), etc. Now the problem is with the static text ie

RE: Help with Multiple Input!

2002-12-03 Thread Sri Sankaran
-Original Message- From: Jana Navaneethan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 03, 2002 2:57 PM To: [EMAIL PROTECTED] Cc: Struts Users Mailing List Subject: Re: Help with Multiple Input! Hi Wendy, All I am trying to do is to avoid repeating

logic:iterate question

2002-12-03 Thread Andy Kriger
I have a JSP. I have some scriplet code that defines an object and then I want to iterate over that object, but I keep getting an error that the object is not defined in the page scope. Looking at the docs I don't understand what I'm doing wrong. --- % pageContext.setAttribute(myObj, myObj,

RE: logic:iterate question

2002-12-03 Thread Sri Sankaran
Dumb question: Is the object reference 'myObj' pointing at anything before set it to the name 'myObj'? That sounds confusing -- too many myObjs floating around. Suppose you had pageContext.setAttribute(myObj, foo, PageContext.PAGE_SCOPE); My question is whether 'foo' is set before this

RE: logic:iterate question

2002-12-03 Thread Andy Kriger
Yes - I store some data in it and then want to use that data later in the page. -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 03, 2002 15:32 To: Struts Users Mailing List Subject: RE: logic:iterate question Dumb question: Is the object

test - ignore

2002-12-03 Thread John Menke
please ignore -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

[ANN] Best and Worst Development Practices -- Training in NYC and DC

2002-12-03 Thread John Menke
Increase Your Struts Productivity - Attend the BaseBeans Public Struts Training We have a 11 hour public class in DC and in NYC in January. If you sign up soon the price is $145. The regular price is $275 and it goes up as we approach the date due to capacity planning. This class is taught

select box doesn't call set method in form bean when nothing is selected

2002-12-03 Thread glen_roberts
I have a multiple select box on my jsp (html:select). When the user selects an item from the list, our form bean picks up that fact just fine. However, if the user then un-selects that item (ctrl-click) so there is nothing selected in the box, the set method for that box doesn't get called

RE: select box doesn't call set method in form bean when nothing is selected

2002-12-03 Thread Wendy Smoak
GlenR wrote: So, the question: when a user de-selects everything from a multiple select box, how can struts know to clear the form bean variable since the html form is no longer sending data corresponding to that variable? Only successful form elements will be present in the request.

Re: select box doesn't call set method in form bean when nothing is selected

2002-12-03 Thread Patrice
I think you can clear the value of the property in the reset() method of your form bean. Best regards Patrice - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 03, 2002 10:00 PM Subject: select box doesn't call set method in form bean

Loosing form data when chaining actions

2002-12-03 Thread Etienne Labont
Hi, I defined 2 actions in session scope referring the same form. The first action sets some properties in the form and then forwards the request to the second action. The second action sets some more properties and then forwards to a JSP page which contains the html form. The problem is only the

Review of Struts in Action and JSTL in Action

2002-12-03 Thread micael
Woo Hoo -- my review of both Struts in Action and JSTL in Action is on Amazon with pfeiffers, etc. Micael --- This electronic mail transmission and any accompanying documents contain information belonging to the sender which may be

RE: Loosing form data when chaining actions

2002-12-03 Thread VEDRE, RANAPRATAP REDDY
1. make sure u are not creating a new instance of the form bean in the second action and you have name attribute for both the action mappings(they should be same, since u are using same form in both actions). 2. if you are going from the first action to the second action directly(ie., first

Validator question

2002-12-03 Thread Michelle Harris
Hello, I am new to using Struts' Validator framework and am trying to write a sample application based on the example distributed with Validator download from D. Winterfeldt's site. In the file jsRegistration.jsp, there are the following lines: html:form action=registration onsubmit=return

Emails

2002-12-03 Thread Wendy Cameron
How do you send an email from inside a servlet using the struts framework? Does anyone know of some sample code etc? or a good tutorial? Regards Wendy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Emails

2002-12-03 Thread Karr, David
Use the standard JavaMail package. Look at http://java.sun.com/products/javamail/. -Original Message- From: Wendy Cameron [mailto:[EMAIL PROTECTED]] How do you send an email from inside a servlet using the struts framework? Does anyone know of some sample code etc? or a good

RE: logic:iterate question

2002-12-03 Thread Susan Bradeen
Just a guess, but perhaps try using the type attribute? Like ... logic:iterate id=ele name=myObj property=records scope=page type=your.java.class.for.myObj Susan Bradeen On 12/03/2002 03:40:04 PM Andy Kriger wrote: Yes - I store some data in it and then want to use that data later in the

RE: Emails

2002-12-03 Thread VEDRE, RANAPRATAP REDDY
sending a mail from struts action is no different from sending a mail from any HttpServlet. u can use JSTL mail library if u want to do it in jpp , but the best option would be to use JavaMail API as u want inside a servlet. -rana. -Original Message- From: Wendy Cameron [mailto:[EMAIL

RE: Emails

2002-12-03 Thread Wendy Cameron
Do then need to insta JAF and JavaMail in webapp or is this likely to be in the Tomcat 4.1.12 install and struts? Regards Wendy -Original Message- From: VEDRE, RANAPRATAP REDDY [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 7:46 AM To: 'Struts Users Mailing List'

[Tags]Sending multiple parameters to a window

2002-12-03 Thread Sri Sankaran
Using Struts 1.0.2 The gist of the problem is being able to send a variable number of parameters to a URL while using Javascript. Background: I have a list of hyperlinks on a page. When the user selects any link I would like to present the URL in another window. I can get this to work as

Re: Emails

2002-12-03 Thread V. Cekvenich
One thing to consider. if you like MVC. What I do is save e-mail to an e-mail table in DB. Then I have a console async process in a cron job select all e-mail that was not flaged as sent. (I also do RSS same way). It just works better form me this way. .V VEDRE, RANAPRATAP REDDY wrote:

RE: Looking for Struts powerpoint slides

2002-12-03 Thread Chappell, Simon P
Thanks Jacob for your kind words. I also like the way that you described my commentary as witty, given that sarcastic is the more often used word! ;-) It would have been fun to record and release as an MP3, but that'll have to wait for another time. Simon -Original Message- From:

html:errors and logic:greaterThan w/out having to use scriptlets

2002-12-03 Thread Dennis Muhlestein
In addition to displaying errors by a specific field, i'd like to display some additional information. ie: html:errors property=someField /br % if errors.size( someField ) 0 { % Some Additional Info .. % } % Problem is, I can't see a way to do that with any of the logic tags

RE: Emails

2002-12-03 Thread David Bolsover
Nice idea I have a similar async job that does a series of searches of the internet before sending results as an email. Jobs are posted to a db and dealt with in sequence - this means that the action can complete quickly while the lengthy task of compiling the email works in the background. db

RE: Security roles with Struts

2002-12-03 Thread David Bolsover
Make sure you look at the logic taglib logic:present role=level3 very useful :-) db -Original Message- From: Michael Lee [mailto:[EMAIL PROTECTED]] Sent: 03 December 2002 17:54 To: Struts Users Mailing List Subject: Re: Security roles with Struts for container managed roles

RE: [ANN] Best and Worst Development Practices -- Training in NYC and DC

2002-12-03 Thread David Bolsover
I thought this was meant to be a forum for peer to peer help not for commercial adverts. db -Original Message- From: John Menke [mailto:[EMAIL PROTECTED]] Sent: 03 December 2002 20:56 To: struts-user Subject: [ANN] Best and Worst Development Practices -- Training in NYC and DC

RE: Emails

2002-12-03 Thread Joe Germuska
At 7:48 AM +1000 2002/12/04, Wendy Cameron wrote: Do then need to insta JAF and JavaMail in webapp or is this likely to be in the Tomcat 4.1.12 install and struts? Neither is likely to be installed by default. You may be interested to check out the commons-email package, which attempts to

question about findForward()

2002-12-03 Thread Kevin HaleBoyes
I'm having trouble explaining what I want but I'll have a go of it anyway... I'm in a Save action as a result of the POSTing of a form via a html:cancel button. I do the test: if (isCancelled(request)) {} and detect the cancel. I'd like to go to another Action but I don't want to

RE: Emails

2002-12-03 Thread Joe Barefoot
You can also use a JMS-enabled utility or a message-driven bean (if you use EJB 2.0) to send 'em asynchronously. You can send the email that way and only store the header information for your email in the DB (assuming you need to preserve a record of it). There are many different ways to do

RE: question about findForward()

2002-12-03 Thread Karr, David
Do you just mean you want to do a redirect? If so, you can do this without changing your code, just change the forward definition (in your action, or global) to have 'redirect=true'. -Original Message- From: Kevin HaleBoyes [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 03, 2002

Re: question about findForward()

2002-12-03 Thread Emmanuel Boudrant
You need a redirection. In a redirection, the request (who containt the form) is not propagate. Just put in forward declaration : forward name=toto path=/path_to_toto.jsp redirect=true/ If your form is stored in session scope, you need to call reset(); -emmanuel Kevin HaleBoyes lt;[EMAIL

implement else part of the logical with logic:notEqual

2002-12-03 Thread Vijay Balakrishnan
Hi, I am trying to implement the else part of the logical relation. Can somebody help me with this ? %-- logic:equal name=sectionName value=M logic:notEqual name=questionFieldAnswer value=Y td colspan=3input type='text'

test jsp pages developed by tag developers to test the tags

2002-12-03 Thread Vijay Balakrishnan
Hi, Could somebody point me to the right place to look at the unit test examples used by the developers to test the tags(HTML Logic) they have created.I accidentally came across one sometime back when doing a google search but can't seem to get the pages back again. Thanx, Vijay -- To

Re: Code Generator

2002-12-03 Thread Foong Tzer
On Tue, 3 Dec 2002 09:43:09 + (GMT), [EMAIL PROTECTED] said: Not sure what you mean by generate, but you could look into teh xDoclet project on SourceForge.net from:Juan [EMAIL PROTECTED] date:Tue, 03 Dec 2002 09:31:09 to: [EMAIL PROTECTED] subject: Re: Code

Select options with non string property targets

2002-12-03 Thread Chris Burnley
Is it possible for me to have something like this: html:select property=userType html:options property=userTypes/ /html:select where on my ActionForm, I have something like this: public UserType getUserType() public Collection getUserTypes() public void setUserType(UserType

Re: html:errors and logic:greaterThan w/out having to use scriptlets

2002-12-03 Thread Dennis Muhlestein
ok, I found the messagesPresent tag in the logic tags. I still have a problem though: What if I need the logic to display for two specific properties: It would be nice if I could do something like this: logic:messagesPresent property=field1,field2Some Logic Here/logic:messagesPresent Any

DynaBeans tutorial/help?

2002-12-03 Thread Jeff Barrett
Do they exist? There doesn't seem to be anything in the official documentation yet. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: intermitten missing field value when submit to a Struts actio n????

2002-12-03 Thread Joel Rees
May look funny but pls check the spelling of method=post. We had this problem and later found that methd=post. method Wow. It took me looking twice to figure out you weren't talking about the spelling of post. Great possibility of overlooking this. Apparently

Re: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-12-03 Thread Peter A. J. Pilgrim
Chuck Cavaness wrote: I'm sorry the copy hasn't been shipped by bookpool yet. I noticed they are still saying not yet published yesterday. If it's any consolation, I haven't got my copies yet either. I haven't even seen the finished product yet :( chuck BTW: I got my copy of Programming Struts

Re: test jsp pages developed by tag developers to test the tags

2002-12-03 Thread David M. Karr
Vijay == Vijay Balakrishnan [EMAIL PROTECTED] writes: Vijay Hi, Vijay Could somebody point me to the right place to look at the unit test examples Vijay used by the developers to test the tags(HTML Logic) they have created.I Vijay accidentally came across one sometime back when

Nested Tag

2002-12-03 Thread Shryock, Chad
Hello, I am using WebSphere Enterprise Developer 5.0. I don't know the version of Struts it has build into it. A) How do I tell what version of Struts I am using. B) I need to use the nested tag, but it isn't in my WEB-INF directory. Can someone point me in the right direction of where I can

RE: DynaBeans tutorial/help?

2002-12-03 Thread Alireza Fattahi
See www.theserverside.com -Original Message- From: Jeff Barrett [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 5:21 AM To: [EMAIL PROTECTED] Subject: DynaBeans tutorial/help? Do they exist? There doesn't seem to be anything in the official documentation yet. -- To

Re: DynaBeans tutorial/help?

2002-12-03 Thread Craig R. McClanahan
On Tue, 3 Dec 2002, Jeff Barrett wrote: Date: Tue, 3 Dec 2002 17:51:07 -0800 From: Jeff Barrett [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: DynaBeans tutorial/help? Do they exist? There doesn't seem to be anything in the

RE: [FRIDAY] laser

2002-12-03 Thread Andrew Hill
Arrrgh! Finally finished it. Levels 7 and 14 really had me stumped for hours. Luckily brute force guesswork saved the day... ;-) Heres a list of passwords for anyone who is stuck and wants to skip a level: (Alas, there are but 14 levels) 02: BARKY 03: WOODIE 04: MURBRUK 05: WARPZ 06: BEAMER 07:

Struts In Action on Slashdot

2002-12-03 Thread Craig R. McClanahan
Woo hoo! A Struts In Action book review on Slashdot! http://books.slashdot.org/books/02/11/25/1731249.shtml?tid=156 Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Simple Doubt

2002-12-03 Thread Daniel Tamborelli Alvarenga
Hi everyone, First I wanna say that i'm new in Struts and my problem is above... i have a Talk to us section at my website, so i wanna know wich is the best way to show a confirmation to the user saying that the message was sent ok... I thought in two possibilities: 1) I could have one

Re: Simple Doubt

2002-12-03 Thread David Graham
I'm a fan of a separate success page because it makes the jsps easier to understand and maintain. Combining functions into one page causes it to end up like a perl script. I typically use my index.jsp as the destination after an action that displays the success message before listing the menu

Submitting the entire list contents.

2002-12-03 Thread sudhakar
I have an application in which the user selects the products list, which are there in the list boxes, as the user adds the products I've to populate one another list(cart list) which is there in the same html page. Finally when he submits the html page, he has to submit the contents of the

Detecting value in a template

2002-12-03 Thread Míguel Ángel Mulero Martínez
Hi all, I'm using templates from Struts 1.0.2 and I can't use tiles. Mi problem is that I would like to pass a value with template:put and in the target JSP change the behaviour attending this value (with something like logic:equal or logic:present. Anybody knows how to verify if exists or the

<    1   2