Example using html:select and html:options

2001-09-19 Thread Matthias Gries
Hi all, does any one have a good example of how to use html:select and html:options? We want to populate a select list dynamically via a database. How do I determine a default value? Thanks in advance Matthias -- _ Matthias Gries

html:checkbox

2001-09-19 Thread storck
Hi, I would like to achieve the following: I have a table and one of their columns has to be a checkbox. To create the table I use the iterate-Tag. For example something like that: logic:iterate id=blackBoard name=showAllBlackBoardsAndDeleteForm property=result tr

Question about Action...

2001-09-19 Thread emmanuel.boudrant
When I submit a Form, I display in the action:process all the request parameter. while ( e.hasMoreElements() ) { String tmp = (String) e.nextElement(); System.out.println(tmp + : + request.getParameter(tmp)); } Here the display: password:dqs from:1 y:4 x:8 username:dsq

RE: Question about Action...

2001-09-19 Thread Stefan Hamm
do you use gifs as submit buttons ?? if you use gifs the x and y is where you pressed the gifs (coordinates of the gif ) may be this will help you -Original Message- From: emmanuel.boudrant [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 19. September 2001 10:28 To: [EMAIL PROTECTED] Subject:

File upload : How do I access the uploaded file

2001-09-19 Thread dd ss
Hi, I want to have access to the actual file that gets uploaded and is saved on the server. i.e if a user uploads a file called test.txt and the server store this file as str345.tmp somewhere on server, how do I get access to the file str345.tmp with fully qualified path. Once I get this, I need

AW: File upload : How do I access the uploaded file

2001-09-19 Thread Wiechert, Holger
The FormFile interface doesn't give you that possebility. You can only get the InputStream to that file. If you need an access path to a file, you have to copy the stream to another tmp file, delete (destroy) the FormFile, and pass the new created tmp file to your business object. It's a matter

Re: ActionError display and re-populate problem

2001-09-19 Thread Ted Husted
It should work the same in either case, unless the request is being redirected along the way (in which case it becomes a new request). Are you using redirect=true any place? -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 --

Loosing context after local action forward

2001-09-19 Thread Hamelmann Stefan
Hi After executing the local forward of my action mapping, the called .jsp page loses the context and therefore the relative links don't work. I am also using the strust template tag library - is this the reason ? Does anyone know `how to avoid it ? With kind regards, Stefan

RE: The final word on struts and jboss 2.2.2 and tomcat 3.2.2

2001-09-19 Thread Jake Thompson
Probably a bit late here. However, I have been using Struts 1.0 on Jboss 2.2.2 and Tomcat 3.2.2 for a few months now and it works like a charm! I have migrated to Jboss 2.4.1 and Tomcat 3.2.3 with no effort at all, I simply dropped in the new servers and re-deployed my ear file. The only

RE: Unable to handle ActionForm class hierarchies?

2001-09-19 Thread Wiechert, Holger
I tried to use now all qualifications as I could (at least, that I know) -- still the same result: when using the sub class form, the hidden field could not get retrieved. I shifted the classes (Forms and Actions) to a package now (I think I read once something that tomcat has problems with

Struts Layout : Pb with the Dynamic Menu

2001-09-19 Thread Arnaud Héritier
Hi all !! Is there anybody who success to use the dynamic menu from the Struts Layout Library ??? I have a probleme with labels of the menu. In all my application, the ApplicationRessources are correctly loaded and used but in this library my menu labels are all null. Is there anybody who

Websphere Studio Struts

2001-09-19 Thread Partovi, Fari STASCO-OTO/72
I am trying to use Websphere Studio version 3.5.3 with Struts. But Studio is unable to recognize Struts tags. Is there anyway I can import these tags into Studio? Any help will be appreciated. Regards Fari

Re: Loosing context after local action forward

2001-09-19 Thread Ted Husted
The html:base/ tag may help. http://jakarta.apache.org/struts/struts-html.html#base -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/about/struts/ Hamelmann Stefan wrote: Hi After executing the local

RE: ActionError display and re-populate problem

2001-09-19 Thread Alexander Jesse
No, I just do not declare that boolean, therefor I think I use forward. This is the action-mapping element having the problem: !-- create user-project action -- actionpath=/saveNewProject type=com.csg.cs.jst.bugs.control.SaveNewProjectAction

Re: Unable to handle ActionForm class hierarchies?

2001-09-19 Thread Ted Husted
The preload action does not set anything for the subForm, and therefore the string is blank. SuperForm superForm = (SuperForm) form; String someValue = some Value; System.out.println(PreloadAction is setting myField to \ + someValue + \);

Re: ActionError display and re-populate problem

2001-09-19 Thread Ted Husted
Can you post the JSP and ActionForm source (or send it to me directly)? -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/about/struts/ Alexander Jesse wrote: No, I just do not declare that boolean,

Antigen found =*.vcf file

2001-09-19 Thread ANTIGEN_MG01
Antigen for Exchange found Matthias.Gries.vcf matching =*.vcf file filter. The file is currently Deleted. The message, Example using html:select and html:options, was sent from Matthias Gries and was discovered in IMC Queues\Inbound located at IBC/PA1/MG01.

Re: Multiple Submit Buttons per Form

2001-09-19 Thread Ted Husted
It's not a bug, it's the way the w3c decided it should work. ;-( http://www.w3.org/TR/html4/interact/forms.html#h-17.5 -- image Creates a graphical submit button. The value of the src attribute specifies the URI of the image that will decorate the button. For accessibility reasons, authors

AW: Loosing context after local action forward

2001-09-19 Thread Hamelmann Stefan
I am already using this tag in my struts template file. One thing I noticed is the difference between forwards and redirects based on the url rewrite which is implicitly performed (?). The structure of my site is webapps/site The first jsp call from site/web/xxx.jsp leads to the result that all

Solved: Unable to handle ActionForm class hierarchies?

2001-09-19 Thread Wiechert, Holger
Thanks, Ted! I just found out how to set it up. The following settings have proved to do it, basically: only use the sub class form. struts-config.xml: struts-config !-- == Form Bean Definitions == -- form-beans form-bean name=subForm type=SubForm/ /form-beans !--

RE: ActionError display and re-populate problem

2001-09-19 Thread Kilmer, Erich
You were right. Once I declared the error header and footer and rechecked the name value pairs for my errors, everything works great. Multiple errors are displayed and the re-populate works as well. This is great stuff! Erich Kilmer Bell+Howell -Original Message- From: Ted Husted

Re: ActionError display and re-populate problem

2001-09-19 Thread Andras Balogh
Hi, I would like you to ask to keep this thread on the list because i am experiencing the same problem: my action works only if is defined in scope=session not as scope=request. Thank You, Andras. Ted Husted wrote: Can you post the JSP and ActionForm source (or send it to me directly)?

Setting Struts in VAJ 3.53 ? Help

2001-09-19 Thread Jhaveri, Harshal
hi! all i am trying to set up Struts with VAj 3.53 .I got it working with WAS 3.54, but I am having problems gettting it to work with VAJ 3.53.Need Help. Thanks Harshal.

Re: Bug in WAS 3.5.4 or tomcat or..?

2001-09-19 Thread Daniel Jimenez
Ted: This is a websphere bug. See: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg13094.html archive@jab.org 9/18/01 1:36:55 PM It seems like this is a Websphere bug that people have come across before. You might check the list archives at mail-archive.com If you find it,

iterating over a collection

2001-09-19 Thread Anish Acharya
Hello everyone. Just wondering if anyone can spot the error in this code: % Vector allTheCoins = (Vector)(application.getAttribute(allCoins)); % logic:iterate collection=allTheCoins id=coinName TR TDbean:write name=coinName/ /TD /TR /logic:iterate I have

Re: Bug in WAS 3.5.4 or tomcat or..?

2001-09-19 Thread Daniel Jimenez
Ted: This is a websphere bug. See: http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg13094.html archive@jab.org 9/18/01 1:36:55 PM It seems like this is a Websphere bug that people have come across before. You might check the list archives at mail-archive.com If you find it,

RE: iterating over a collection

2001-09-19 Thread Princeton Lau
Anish, Try specifying the type property of the logic tag. From the Jakarta Struts site... Fully qualified Java class name of the element to be exposed through the JSP bean named from the id attribute. If not present, no type conversions will be performed. NOTE: The actual elements of the

RE: Setting Struts in VAJ 3.53 ? Help

2001-09-19 Thread Assenza, Chris
See: http://www7.software.ibm.com/vad.nsf/data/document2558?OpenDocumentp=1BCT Christopher Assenza Phone: 412.201.6026 Fax: 412.201.6060 Email: [EMAIL PROTECTED] ACCESSDATA Moving Your Business from Point A to Point e.SM http://www.accessdc.com/ -Original Message-From: Jhaveri,

RE: Struts Websphere 3.5.4 for Windows 2000

2001-09-19 Thread Assenza, Chris
Title: RE: Struts & Websphere 3.5.4 for Windows 2000 You *must* use Jaxp 1.0.1 - WebSphere implodes when you try to use 1.1.1 with Struts. Not sure what the actual reason is (ie. what classes or code is the problem) though, worth investigation I guess, but I'm too lazy. :) Chris

AW: iterating over a collection

2001-09-19 Thread Bernhard J. Hirschmann
Better store your collection in your form bean, instead of using application.getAttribute(allCoins) ... Then you can get rid of the % ... % in your jsp. Then, use something like: logic:iterate name=nameOfYourFormBean property=allTheCoins type=com.yourcompany.Coin id=coins tr td

setAttribute and ActionForward

2001-09-19 Thread Quentin Cope
I am struggling to get a parameter to a page in my Action class. My code looks like : BugUpdateForm bugForm = (BugUpdateForm) form; ActionForward forward=new ActionForward(); try { System.out.println(going to call updateBug); HttpSession

Multiple Struts App Support

2001-09-19 Thread Mitesh Mehta
Title: Multiple Struts App Support Craig, Have you decided anything about the multi-app support you talked about earlier for 1.1? Specifically, are you planning on using the framework available from Sukachevin, Stoehr [[EMAIL PROTECTED]] at

Re: ActionError display and re-populate problem

2001-09-19 Thread Bill Pfeiffer
I believe this is working as designed. If the jsp does not have an html:... element matching a property on your struts form AND you have the scope set to request there is no way for struts to maintain the data across requests. This situation can arise in multipage wizard type pages. You have

New message format help please.

2001-09-19 Thread Alex Colic
Hi, I am trying to use the new HTMl:Messages in the struts nightly build. I am updating some of my code to use the new format. Two quick questions: 1: I am saving my messages in the action class via: ActionMessages messages=new ActionMessages(); messages.add(ActionErrors.GLOBAL_MESSAGE, new

RE: setAttribute and ActionForward

2001-09-19 Thread Paradis, André
Quentin, The problem is that you forward to the desired page using a redirection. thus you loose everything placed inside the request object when the page is called by the browser. Workarounds includes putting the bean in the session scope, or use forward.setRedirect(false);

Forte CE v3, Tomcat 3.2, Struts and Tiles

2001-09-19 Thread Andy Noble
I've been successfully developing a Struts 1.0 based app using Forte CE v3 IDE with a built in Tomcat (anyone else using this?). I've now tried to include Tiles and I'm having trouble.I keep getting an exception when I run my Web App under the built in tomcat. The

html:select and remembering selection

2001-09-19 Thread Paradis, André
Hi guys, Here is a simple form: html:form action=/selectTest html:select property=currentSelection html:options collection=aList property=key labelProperty=label/ /html:select /html:form

Re: setAttribute and ActionForward

2001-09-19 Thread Ted Husted
Try it without forward.setRedirect(true); You should then be able to get to it using bean:write name=bugID/ -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/about/struts/Quentin Cope wrote: I am

Please help...

2001-09-19 Thread Fletcher, Ken
This is a test message. I haven't received any messages from the struts-user group since the 13th of this month. I tried re-subscribing Monday and still nothing. If this message makes onto the board, could someone please email me directly to let me know? Also, let me know if you have

RE: wrong behavior of checkboxes in forms?

2001-09-19 Thread Brad Reneer
I'm having the same problem. Did you ever get this to work? Thanks, Bradley Reneer -Original Message- From: Hartmut Bernecker [mailto:[EMAIL PROTECTED]] Sent: Mon, August 13, 2001 5:17 AM To: [EMAIL PROTECTED] Subject: Re: wrong behavior of checkboxes in forms? Gregor Rayman schrieb:

RE: Struts user list email

2001-09-19 Thread Fletcher, Ken
Thanks Chris (and Andre earlier). Craig, do you have any suggestions? -Original Message- From: Assenza, Chris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 12:21 PM To: '[EMAIL PROTECTED]' Subject: Struts user list email Got it, haven't had any problems. :( Sorry

RE: Please help...

2001-09-19 Thread Fletcher, Ken
Thanks. -Original Message- From: Afzal, Tanver [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2001 12:14 PM To: '[EMAIL PROTECTED]' Subject: RE: Please help... yes i got ur message... and believe every one is receiving ur massages. -Original Message- From:

RE: Bug in WAS 3.5.4 or tomcat or..?

2001-09-19 Thread devon . bowen
I was wondering if anyone has run into this problem and if they know what server this bug relates to. I find myself in the same position. In my case, I have found a work-around but I can imagine that I may not be able to do that in the future. So if you do find a solution, I'd like to hear

Question about action-mappings in struts-config.xml

2001-09-19 Thread Ricco Lee
I am a new user in Struts, and have a query about action mapping. Under the action-mappings in struts-config.xml, if there are more than one action definition with the same action path but with different input page, will the mapping depend on the actual input page? or only the first action

RE: wrong behavior of checkboxes in forms?

2001-09-19 Thread Greg Lehane
You should check the parameters in the HttpServletRequest object, from what I gather, the request object is only populated with checkbox names that are checked/true, when the form is submitted (not checkboxes that are un-checked/false). Therefore you need to compare values of checkboxes in your

RE: setAttribute and ActionForward

2001-09-19 Thread Quentin Cope
I wasn't happy with not being able to pass parameters around! The following now works for me: forward=mapping.findForward(success); forward.setRedirect(true); String path=forward.getPath(); path+=?bugID=+userBean.getBugIDAsString();

Re: setAttribute and ActionForward

2001-09-19 Thread martin . cooper
This can be error-prone, since the ActionForward returned by findForward is a shared instance. Any changes you make to it will be picked up the next time someone uses findForward() to get it. In the example you gave, each time you execute this code, you will append another parameter to the query

RE: Dynamic forward to jsps

2001-09-19 Thread Synovic, Michael
Hey Craig, Don't know how to implement dynamic forwarding, but based on your example, you might want to investigate how to build a single JSP to handle multiple languages, rather than using different JSPs for different languages. Check out the I18N (internationalization) features of Struts.

dealing with HashMaps instead of beans

2001-09-19 Thread Paul King
I've encountered 2 jsp apps recently that are passing data around in HashMaps instead of java classes with getters and setters. Without re-writing everything, I'm trying to use struts to re-write the display and controller code of these apps, but I haven't found a good way to deal with these

Forte CE v3, Tomcat 3.2, Struts and Templates

2001-09-19 Thread Andy Noble
Is anyone successfully running thecombination of Forte CE v3 with built in Tomcat 3.2 with Struts and Struts-templates? I only have a problem when I add Struts-templates. It intermittently throws an IncludeException. I had the same problem with Tiles. Any ideas?

logic:equal and dynamic value

2001-09-19 Thread Matt Raible
I am trying to compare a value in my bean with a value from the request, using the following strutslogic:equal name=optionWorkProfile property=workSchedule$WorkScheduleEid value=%=request.getParameter(wsId)% However, I am getting the following error: 2001-09-19 03:31:07 - error-the file

Re: dealing with HashMaps instead of beans

2001-09-19 Thread Erik Hatcher
It'd only be a few line custom Taglib to write a tag that does a HashMap key lookup. It's not possible with bean:write in its current form, although I believe the Commons BeanUtils code has recently been updated to include this kind of lookup, but its not necessary in order to write a simple

Re: logic:equal and dynamic value

2001-09-19 Thread martin . cooper
The compiler is probably getting confused by the two sets of double quotes in your value specification. Try using single quotes around the overall expression, like this: strutslogic:equal name=optionWorkProfile property=workSchedule$WorkScheduleEid value='%=request.getParameter(wsId)%' --

Websphere Studio Struts

2001-09-19 Thread Andrew Myers
Fari, Do you have the .tlds in the servlet directory of your project? You also need to make sure that the URI in the taglib directive at the top of your jsp matches the URI in the tld otherwise it doesn't seem to work eg. %@ taglib uri=http://jakarta.apache.org/struts/tags-html-1.0;

Re: html:select and remembering selection

2001-09-19 Thread Erik Hatcher
Do you have a getCurrentSelection() method in your form bean?and are you saving it with a setCurrentSelection? Have your Action class grab the selection from the session and call setCurrentSelection before returning from the perform method. That should do the trick. Erik -

Re: dealing with HashMaps instead of beans

2001-09-19 Thread Paul King
Thanks Erik. I'm looking for a general solution, so possible changes to the Commons code could give me some hope. This would be similar to behavior NeXT used to implement to allow generic data bearing objects like HashMaps to work interchangeably within their frameworks that managed bean-like

Re: dealing with HashMaps instead of beans

2001-09-19 Thread Erik Hatcher
Check out BeanUtils: http://cvs.apache.org/viewcvs/jakarta-commons/beanutils/src/java/org/apache/ commons/beanutils/BeanUtils.java?annotate=1.6 around line 330 I think this is what you'd need, and its something that the Struts tags would need to start using. It might even be sort of

Re: newbie question

2001-09-19 Thread Craig R. McClanahan
Sorry for the very late response. Struts is not an acronym - it was meant to remind us of the nearly invisible pieces that hold up buildings, houses, and bridges. Craig McClanahan On Mon, 3 Sep 2001, Jose Correia wrote: Date: Mon, 03 Sep 2001 15:16:33 +0200 From: Jose Correia [EMAIL