Options tag

2001-10-18 Thread Kuehnberger
Hi, on my webpage a got a form linked to an 'orderForm' bean. In that bean a got an arraylist 'numbers' filled with values (with LabelValueBean). I thought I have to use the options tag in the following way: html:form action=/order html:select property=number html:options

Re: where should validation happen?

2001-10-18 Thread Antony
Nice discussion. I like validate() method because it can give access to ActionError objects, so one can easily produce internationalized error messages and forward back to input page, and IMHO that`s a useful feature. Just my 2 cents anyway;-) - Original Message - From: Robert Parker

AW: index for radio button in iterate

2001-10-18 Thread Bernhard J. Hirschmann
Hello Dave, thanx for the answer! The indexed radio button won't replace the value= with the index - instead it names the radio button as follows: udmForm[0].selectedLppVolume replacing the 0 with the iteration index each time through. Does that mean, that an 'array of FormBeans'

AW: index for radio button in iterate

2001-10-18 Thread Bernhard J. Hirschmann
I'm sorry... Outlook has send the unfinished mail by accidently hitting Ctrl-Enter :( The next try: = Hello Dave, thanx for the answer! The indexed radio button won't replace the value= with the index - instead it names the radio button as follows: udmForm[0].selectedLppVolume

Re: where should validation happen?

2001-10-18 Thread Paul Dillon
Heres my 2 cents on the whole validation thing. It's bit of ramble, so please don't hesitate to skip over it. :) I find the validation mechanism too restrictive. I do my business-level validation beyond the web-tier, so while I do use ActionErrors for ActionForm level validation, I have to

Re: Struts Reference Site

2001-10-18 Thread Alan . Owen
Am looking for a commercial site that uses struts I need to demonstrate that they are used in the real world Best Regards Alan

SV: Struts Reference Site

2001-10-18 Thread Mikkel Bruun
http://husted.com/struts/resources.htm#sites plus a few more ;-) :: Mikkel Bruun Senior IT Developer [EMAIL PROTECTED] Direct: +45 32 88 22 73 Valtech A/S Kanonbaadsvej 10 DK-1437 Copenhagen Tel +45 32 88 20 00 Fax +45 32 88 20 20 -Oprindelig meddelelse- Fra:

RE: how to get the position when iterating over a vector?

2001-10-18 Thread DUPRAT Alexandre
It looks like a good way. I can find concerned item for the list usind user parameter. I thank you for info. -Message d'origine- De: Brian Holzer [mailto:[EMAIL PROTECTED]] Date: mercredi 17 octobre 2001 17:46 À: [EMAIL PROTECTED] Objet: RE: how to get the position when iterating over a

Request problem

2001-10-18 Thread ALAMI Ahmed - BOR
Hello everybody My question is: Can i return the content of a origin's page of a request? Per example, I have a Multibox in witch i cheked some boxes before executing an action not from the submit button and i want to read in the result's page the bexes cheked

How to perform if statement in an iterator?

2001-10-18 Thread L. Yeung
Hi! I have a collection of ProductItemSummary from stored in a user bean which is in turn stored in an HTTP session. I want to perform an iteration and inside it, I have to perform an IF statement. Basically, I have this: logic:iterate name=user id=productItemSummary

request problem

2001-10-18 Thread ALAMI Ahmed - BOR
Hello everybody My question is: Can i return the content of a origin's page of a request? Per example, I have a Multibox in witch i cheked some boxes before executing an action not from the submit button and i want to read in the result's page the bexes cheked in

RE: How to perform if statement in an iterator?

2001-10-18 Thread Mark Schenk
Hi! I have a collection of ProductItemSummary from stored in a user bean which is in turn stored in an HTTP session. I want to perform an iteration and inside it, I have to perform an IF statement. Basically, I have this: logic:iterate name=user id=productItemSummary

Struts with XML/XSL for the View

2001-10-18 Thread Paul EYENI
Hi, I intend to use Struts framework for the controler facilities. The presentation layer will be done with XML/XSLT files parsed by the browser (IE 5.5 with MSXML3.0). We don't use any JSP. We want to implement MVC2 pattern. Do you think Struts is convenient with my need ? If not, do you know

Re: Struts with XML/XSL for the View

2001-10-18 Thread Scott Atwell
Why don't you use Cocoon, as this is designed to use XML/XSLT for the presentation layer. Regards, Scott - Original Message - From: Paul EYENI [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 18, 2001 11:08 AM Subject: Struts with XML/XSL for the View Hi, I intend to

Re: Struts with XML/XSL for the View

2001-10-18 Thread Martin Samm
i've done something possibly similar. I've implemented a stuts based site, and used taglibs for retrieve certain dynamic content from a database and transform into XML. I liked the struts architecture, but wanted to keep XML/XSL for some of the dynamic portions of the site On Thursday 18 Oct

Re: Struts 1.0 Tiles

2001-10-18 Thread Cedric Dumoulin
After check, it seems that tilesforstruts1-0.jar was wrong in latest distribution. I have corrected it, and tested it with Struts1.0 on tiles-docs.war (or struts-tiles.war) : all is ok now. So, you can download latest tiles version with corrected jar file for Struts1.0 Cedric Sandeep

Re: Tiles Question

2001-10-18 Thread Cedric Dumoulin
Hi, I have no ideas on an xml/xsl architecture using tiles. But, for dynamic portal, I have added such an example in the latest distribution (tiles/tutorial/dynPortal). This example allows to choose tiles to render in portal. You can choose in a list of available tiles, and move tiles

RE: Struts with XML/XSL for the View

2001-10-18 Thread Paul EYENI
Hi, So it seems possible. Can you explain or send to me an example? many thanks! -Message d'origine- De : Martin Samm [mailto:[EMAIL PROTECTED]] Envoyé : jeudi 18 octobre 2001 12:19 À : [EMAIL PROTECTED] Objet : Re: Struts with XML/XSL for the View i've done something possibly

Struts HTML pass

2001-10-18 Thread Ganendran Kumaraswamy
Hi All, I need somebody's help on this issue. -- In I.E 5.5 the facility to remember ( autocomplete ) the password vanishes when we use a form bean containing an Struts HTML tag for the user id text box and a Struts HTML tag for the password for the login page. --In the

Re: where should validation happen?

2001-10-18 Thread Jonathan M Crater
paul-- i don't know what version of struts you're running, but if you're running one of the later nightly builds (i don't know when exactly this feature became available), you have access to the ActionMessages class, which ActionErrors now extends. so you comment: html:errors/ActionErrors would

Re: Options tag

2001-10-18 Thread Will Jaynes
The collection attribute requires that the collection exists in some scope. It seems that there isn't a way to use a collection straight from the form bean. So, if my collection is in the local form I define it in a bean:define tag. Something like: sbean:define id=numbers name=orderForm

dual server error

2001-10-18 Thread Roumen Ganeff
Hi I've got the following setup: the web server IPlanet 4 runs on a machine called web the aplications server Jrun 3.1 runs on a machine called app when I displaj show.jsp with the URL http://web/show.jsp it displays the JSP but all html:links are displayed as http://app/list.jsp and the

bean:struts problem

2001-10-18 Thread ALAMI Ahmed - BOR
Hello everybody When i do bean:struts id=form formBean=suppressionForm/ that means that i copy a struts configuration object wich is fom the form bean suppression bean . When i want to return the value of a field in this form it returns an error like

ActionForm maintenance

2001-10-18 Thread Michael Baldwin
Has anyone run into a situation where it was desirable for users to execute an Action (a) and, while in the context of doing all of the lovely things associated with (a), the user gestures in a way that a second Action (a) process starts as a sort of child process -- in which case we have

Re: WHY EJB

2001-10-18 Thread Scott Atwell
Why are JSPs 'too powerful' - surely it is up to the developers/architects to ensure that the application has business logic in the relevant parts, the fact that you can write 'write full-fledge Java' in JSPs is useful in certain circumstances, e.g. rapid prototyping, debugging. And 'too

Using an action as the source of a frame - IE4 problem

2001-10-18 Thread Jaeda Goodman
Hello, I have a Struts action as the source of a frame - the action does some processing and puts the results on the HttpSession. The JSP which is subsequently called then picks up these results. So the code looks like this: script function load() { top.frames[0].location='navigation.do';

Re: Advice on bean:write (truncated Strings)

2001-10-18 Thread Keith Bacon
This is a simpletons view here! I don't know how to write my own tags don't really want to (yet). 1 - Add a method getVeryLongName27() to your form bean which truncates the long field. No scriplets or custom tags needed. Your web page writer will probably want to specify the length of the

AW: Struts Reference Site

2001-10-18 Thread Bernhard J. Hirschmann
Alan, I could show you some sites we created for DaimlerChrysler's internal use - but I'm not allowed to... Greetings, Bernhard -Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 18. Oktober 2001 10:18 An: [EMAIL PROTECTED] Betreff:

AW: Struts Reference Site

2001-10-18 Thread juraj Lenharcik
we do something in struts, too for daimler chrysler. greetings juraj -Ursprüngliche Nachricht- Von: Bernhard J. Hirschmann [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 18. Oktober 2001 16:02 An: [EMAIL PROTECTED] Betreff: AW: Struts Reference Site Alan, I could show you some

Re: Options tag

2001-10-18 Thread Eric Rizzo
Will Jaynes wrote: The collection attribute requires that the collection exists in some scope. It seems that there isn't a way to use a collection straight from the form bean. Actually, there is. From the HTML Tags documentation: [if no collection attribute is specified] The collection of

Re: Struts Reference Site

2001-10-18 Thread Scott Atwell
I have also been involved with a project using struts and recently completed an ordering site for BP, it is still internal but is due to be internet hosted in the next few weeks. Regards, Scott Atwell - Original Message - From: Bernhard J. Hirschmann [EMAIL PROTECTED] To: [EMAIL

bean:struts problem

2001-10-18 Thread ALAMI Ahmed - BOR
Hello everybody When i do bean:struts id=form formBean=suppressionForm/ that means that i copy a struts configuration object wich is fom the form bean suppression bean . When i want to return the value of a field in this form it returns an error like

Re: Options tag

2001-10-18 Thread Will Jaynes
This doesn't say what you think it is saying. The documentation is unfortunately vague here. There are three possible collections involved here. A collection that is just the values. A collection that is just the labels. A collection of beans that hold both the values and labels, like a

handy evaluation tag for nested tags

2001-10-18 Thread Craig_Reichenbach
I found the following advice in the struts archive regarding a tag within a tag problem: From: John Raley Subject: Re: nesting bean:write inside of html:link Date: Mon, 27 Aug 2001 13:22:41 -0700

Re: bean:struts problem

2001-10-18 Thread Christophe Marchand
It seems your mapping is not correct. It tries to look for an acteur property in class org.apache.struts.action.ActionFormBean. Check your struts-config.xml... Je savais pas qu'il y avait un Jasper qui sortait des messages d'erreur en français. T'as piqué ça où ? - Original Message -

Re: handy evaluation tag for nested tags

2001-10-18 Thread Jonathan M Crater
you can expose variables through tags by using a TagExtraInfo (TEI) class. check out the source code for the bean:define tag and its TEI class. [EMAIL PROTECTED] wrote: I found the following advice in the struts archive regarding a tag within a tag problem:

Need Iterator/Indexed help quick, please.

2001-10-18 Thread Alex Colic
Hi, I have gotten myself into a bit of a jam and I am wondering if someone could help me out. I got a web app that a customer wants to make some last minute changes to. From the looks of it, it looks simple but I can't figure it out. Hopefully someone has an idea on how I can do this. I have a

Tiles and Struts 1.0

2001-10-18 Thread Sandeep Takhar
Thanks for the previous reply Cedric ( I deleted it so I can't reply to it). I am still having a problem. I am using tiles-docs.war file. I downloaded the latest binary zip file and the tilesforstruts1-0.jar file does not seem to fix my problem -- i get the exact same error -- no classdeffound

property in html:submit

2001-10-18 Thread Fang, Frank
Title: property in html:submit Hi, if I want to have two submit button in struts form to do tow diffrent things, is it possible? Thanks Frank -Original Message- From: Jonathan M Crater [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 9:49 AM To: [EMAIL PROTECTED]

Re: Quick Iterator/indexed question, please.

2001-10-18 Thread dhay
Hi Alex, I believe your problem is that the CategoryList object is in the session, rather than in your form bean. I think that struts will be fine with this to *display* the information, but to update it, you need it in your form bean - as far as I can tell, struts only populates stuff in the

Tiles - Dynamic menu creation - logic problems

2001-10-18 Thread iT meDic
Hello all , i have a problem on which i have been stuck for 3 days, i have asked numerous developers and worked on this problem for days but to no avail, i would be extremely grateful if you could advise me on how to overcome this monstrous beast! I am using the struts framework components to

Form validation errors in different frame?

2001-10-18 Thread Rob Breeds
I'm writing my first Struts application and want to use one frame containing the input form and another frame to display the results. If I use validation in the ActionForm (or populate ActionErrors in the Action object), I know I can use html:errors/ to display errors in the input form. But do

Struts 1.0 and EAServer 3.6.1

2001-10-18 Thread John Regan
Title: Struts 1.0 and EAServer 3.6.1 has anyone gotten struts to work in easerver?

rtexprvalue not working in html:link tag!!!

2001-10-18 Thread Craig_Reichenbach
Anyone know why my scriptlet in the following html:link tag is not being evaluated? ** % String somepage= index.jsp; % html:link page=%=somepage%Click Here/html:link

RE: Struts 1.0 and EAServer 3.6.1

2001-10-18 Thread Zeltser, Mark
No, upgrade to 4.0 you may have a better luck there. Mark. -Original Message- From: John Regan [SMTP:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 2:05 PM To: [EMAIL PROTECTED] Subject: Struts 1.0 and EAServer 3.6.1 has anyone gotten struts to work in easerver?

suggestions on tracking user activity

2001-10-18 Thread Bill G
Hi, Given that each user in the application has a unique ID and each link, button, etc. on every page also has a uniques ID, what would be a good way to track all user activity with MANY simultaneous users in a Struts/EJB environment ? Bill G...

RE: suggestions on tracking user activity

2001-10-18 Thread Mikkel Bruun
You should probably look into the new servlet filters (spec2.3)..been toying with them for a months... using a filter should easily solve your problem... mikkel -Original Message- From: Bill G To: [EMAIL PROTECTED] Sent: 18-10-2001 21:01 Subject: suggestions on tracking user activity

Cancel in struts

2001-10-18 Thread Fang, Frank
Title: Cancel in struts Hi, I can't figure out why my cancel doesn't work when I click the cancel button, it works like submit. is there anyone happen to have same problem ? Thanks Frank -Original Message- From: Alex Colic [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18,

Extending Struts TagLibs

2001-10-18 Thread Bill Mariani
My first question is: Has anyone had any luck extending any of the tag libs provided with struts (html, bean..) Second, if so could some one post some example code. Thanks, Billy ___ http://inbox.excite.com

Re: rtexprvalue not working in html:link tag!!!

2001-10-18 Thread Sandeep Takhar
Not sure if this is right, but try using single quotes. - Sandeep --- [EMAIL PROTECTED] wrote: Anyone know why my scriptlet in the following html:link tag is not being evaluated? ** % String somepage= index.jsp; %

Tag in a Tag prob!?! bean write in a iterate tag

2001-10-18 Thread sbailey
I am having a problem with getting the bean:write to work with the logic:iterate tags. This is the cleanest way I could find to print a bunch of checkboxes with ids as the value to pass back to my action and labels of the checkboxes all being filled with data from a Array of customer

Tag in a Tag prob!?! bean write in a iterate tag

2001-10-18 Thread sbailey
I figured out the answer to my question I requested previously. I didn't use bean:write for the checkbox like everywhere else: logic:iterate id=customer name=unapprovedCustomers type=blah.blah.blah..CustomerBean tr td align=middlehtml:checkbox property=approvedCustomerIds value=%=

bean:message with bean

2001-10-18 Thread Fabien Modoux
Hello, I am using the bean:message and the logic:iterate tags to print a collection of messages (Vector of String): logic:iterate id=key name=keys bean:message name=key / /logic:iterate I get an exception at org.apache.jasper.compiler.TagBeginGenerator.validate(TagBeginGenerator.java :149)

Re: rtexprvalue not working in html:link tag!!!

2001-10-18 Thread Craig_Reichenbach
Tried that. That's not it. -Craig Sandeep Takhar

Re: bean:message with bean

2001-10-18 Thread David Winterfeldt
If they are message keys from the resource file, like msg.hello=Hello, then it should be key not name. logic:iterate id=key name=keys bean:message key=key / /logic:iterate The tag bean:write uses the name attribute (as do most other tags in one way or another). bean:write name=key/ David

RE: bean:message with bean

2001-10-18 Thread Fabien Modoux
David, Thanks for your help. I misinterpreted the docs and thought I could use either key or name to get resources from file. I'll try something else... -Fabien - Fabien Modoux, Voicemate - http://www.voicemate.com -Original Message- From:

How to stop form submit on javascript error?

2001-10-18 Thread Thinh Doan
How do you stop the form from being submitted if a javascript error, which was called from the html:form onsubmit..., occurs. I get an error and I say ok and the javascript tries to put focus on the field which is causing the error, but the form still submits to the action class. Here is some

Re: where should validation happen?

2001-10-18 Thread Robert Parker
Essentially correct. Thus javascript on the browser ensures that a date is a date, a number a number etc. I like this approach as I can hook the validation code into the onchange event of the form fields and hence the user gets immediate error feedback. In my action classes, they assemble the

ActionForm autogeneration and handling of complex documents

2001-10-18 Thread Stephen Hood
I have been working with Struts and am very impressed. But it seems to me that for Struts to be competitive with XML/XSL-based designs from a usability perspective, it eventually needs to do a few of their more popular tricks. I'm not sure if these are tooling or platform issues, but I would

Re: where should validation happen?

2001-10-18 Thread Francisco Hernandez
ActionErrors validate(ActionForm form,HttpServletRequest request) in perform(): ActionErrors errors = validate(addressForm,request); if(!errors.empty()) { saveErrors(request, errors); forward = editAddress; } else { //

Re: Need Iterator/Indexed help quick, please.

2001-10-18 Thread Arron Bates
There is no support for indexing outside of the nightly build. Find it and download it and it should get you going. Even though it's in the documentation, there is no support for it in the release version. There has to be a couple of improvements in these indexed/nested areas, but indexing is

RE: Struts Reference Site

2001-10-18 Thread Hollis, Nathan
Try: www.pizzahut.com.au Cheers Nathan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, 19 October 2001 12:25 AM To: [EMAIL PROTECTED] Subject: Re: Struts Reference Site I have also been involved with a project using struts and recently completed an

IBM VisualAge and struts

2001-10-18 Thread Hitesh Parashar
Hi: Did anybody try to setup VisualAge for struts? If anybody can give some pointers, it would be of great help. Thanks, Hitesh. __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com

Re: How to stop form submit on javascript error?

2001-10-18 Thread Matt Raible
Change your javascript code to the following: script function validate() { if (document.forms[0].username.value == ) { alert(User Name is a required field. Please fill in your User Name.); document.forms[0].focus();

Need some suggestion

2001-10-18 Thread Antony
Hello: I`d like any suggestion in applying DataSource strategy. Do you guys use struts` built-in database connection pool, or rely on calling JNDI resource definition?Or any other methods? Any suggestion/Discussion are welcome. Regards, Antony Chien

RE: bean:message with bean

2001-10-18 Thread David Winterfeldt
I made a mistake in what I sent. It should be. logic:iterate id=key name=keys bean:message key=%= key % / /logic:iterate David --- Fabien Modoux [EMAIL PROTECTED] wrote: David, Thanks for your help. I misinterpreted the docs and thought I could use either key or name to get resources

Re: where should validation happen?

2001-10-18 Thread David Winterfeldt
I wanted to mention that the Validator validation framework has some basic validations that tie Javascript to the server side validations together. So you don't have to worry about the Javascript being run because the server side validation will always happen. The validation framework is in the

Re: where should validation happen?

2001-10-18 Thread Paul Dillon
Ah, thanks Jonathan - I've been using the latest release build (which I unfortunately must stay with). - Original Message - From: Jonathan M Crater [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, October 18, 2001 9:22 PM Subject: Re: where should validation happen? paul-- i

IBM VisualAge WTE and struts

2001-10-18 Thread Hitesh Parashar
Hi: I am having tough time establishing peace between VAJ 4.0 WTE and struts. I am following the WebSphere Version 4 Application Development Handbook. WTE requires IBM XML Parser for Java and struts requires me to use Xerces. The following packages are conflicting between the two -

Tiles Information

2001-10-18 Thread Ho Chin Hwang
Hi, What are tiles? Can anyone provide some reference sites for me to know more about tiles? Thanks. Regards, Dave

Invalid attribute Prefix error

2001-10-18 Thread Hitesh Parashar
Hi: I am trying to run a struts sample with VisualAge 4.0 WTE. I get an error as follows: Message: Directive: Invalid attribute, prefix My JSP file is: %@taglib uri=/WEB-INF/struts-html.tld prefix=html% html:html locale=false html:errors/ html:form action=processNewEmployee.do *First Name:

RE: How to stop form submit on javascript error?

2001-10-18 Thread Thinh Doan
Thank you very much Matt. Yes I'd like to get the trim fct or anything else in your arsenal that we'd be willing to share :-). Best regards, Thinh -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 8:05 PM To: [EMAIL PROTECTED]; [EMAIL

RE: How to stop form submit on javascript error?

2001-10-18 Thread Matt Raible
Here's my version of a trim function as well as a few others ;) I would put the trimSpaces function in an includes .js file and call it in your pages using: function validate() { // strips leading and trailing spaces for (i=0; i document.form.elements.length; i++) {

RE:CORRECTION Options population from a Database

2001-10-18 Thread Brandon Goodin
It does however reflect the additional records that have been that have been written to the table when I restart tomcat. instead of I does however reflect the additional tables that have been written to the database when I restart tomcat. -Original Message- From: Brandon Goodin

html:options collection of beans in FormBean

2001-10-18 Thread David M. Karr
I have an ActionForm that has a property which is a collection of beans. I obtained this collection in my Action.perform() method. In my JSP page, I want to display an html:options list where the label is one property of each of those beans, and the value is another property. It appears, from

Re: Options population from a Database

2001-10-18 Thread Robert Parker
Is your connection pool cacheing results - for example Poolman can cache results - Original Message - From: Brandon Goodin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 19, 2001 2:22 PM Subject: Options population from a Database I am running into a bit of a problem

RE: Options population from a Database

2001-10-18 Thread Brandon Goodin
YES!! IT WAS POOLMAN. cacheEnabled was true. Is now false God Bless You and prosper you. I spent too much time on that one. Thanks Brandon Goodin -Original Message- From: Robert Parker [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 18, 2001 11:09 PM To: [EMAIL PROTECTED]; [EMAIL

Re: Options population from a Database

2001-10-18 Thread Robert Parker
Note - Poolman cacheing of lookup type results can be great - but you need to set the time-out appropriately... Consider a busy site. Even cacheing for 3 minutes can save a lot of lookups. If you do update the table, after 3 mins it should refresh... - Original Message - From: Brandon

Re: rtexprvalue not working in html:link tag!!!

2001-10-18 Thread Kuehnberger
Do you have a space between and like html:link page=_space_%=somepage% ? Delete the space and try it again Jens [EMAIL PROTECTED] schrieb: Tried that. That's not it. -Craig Sandeep Takhar sandeep_takhar@ To: [EMAIL PROTECTED]