RE: passing a value using html:image tag

2004-01-20 Thread Barett McGavock
I don't believe this is possible exactly as you say. Here are my inputs ;) : The html:image DOES allow you to capture an x and y coordinate where the user clicked. These are returned in the form foo.x and foo.y where the parameter name for the image control is foo. More on this in Struts in

RE: [OT] Deploying a commercial product (including db and server)

2004-01-16 Thread Barett McGavock
Take a look at the Scarab web application - it builds a Tomcat sandbox as part of the install process. You might be able to steal some of their ideas when deploying your app. I think the install process is pretty simple once you find the right document. With Scarab, you do need to edit a

RE: using redirecting forwards after failed validation

2003-12-17 Thread Barett McGavock
I did the following to get around the drawback with RequestProcessor that you pointed out: 1) keep the ActionErrors as a request attribute 2) set the validate parameter to false for the ActionMapping 3) add code like the following to the search action itself: errs = form.validate(); if

RE: Checkboxes with session-scoped DynaActionForms

2003-12-17 Thread Barett McGavock
If your fields are currently Strings, just put field = new String[0]; in your reset() method. You don't need to change it to a [Bb]oolean. This advice should work for any type. B -Original Message- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 12:48

RE: using redirecting forwards after failed validation

2003-12-17 Thread Barett McGavock
You are correct. Your decision to put the errors in the session is necessary if you want the URL to read that way. My understanding is that all request attributes will vanish if you redirect. Most notably including the ActionErrors that the thread was all about! :) I have long since given up

RE: Please Help With This Error Message

2003-12-17 Thread Barett McGavock
C, You can't nest tags as you did in the value attribute. bean:define ... value=bean:write name=author/ / The rest of the list will croak when I recommend that you use %= author % instead of bean:write name=author/ Maybe they can tell you a fancy -el/JSTL way to do it. :) B -Original

RE: Best way to parse a String and replace line feeds with br f or html?

2003-12-17 Thread Barett McGavock
Thoughts: 1) Assuming that you have a separate value object to carry this item to the view, try replacing any \n with br in the action. 2) Have you also considered using the pre HTML tag? B -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17,

RE: url changing to localhost

2003-12-16 Thread Barett McGavock
This is a web server configuration problem. Are you using Tomcat? Try examining the web server configuration file for the local host name. A simple search for localhost should find some candidiates for change to isunit81. Send more information about your web server and perhaps I or someone else

RE: Accessing page variables in the property

2003-11-26 Thread Barett McGavock
Use indexId=count instead of idName=count. Count will then be a scripting variable containing the iteration index. B -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 26, 2003 3:20 PM To: [EMAIL PROTECTED] Subject: Accessing page variables in