Links within ActionErrors

2004-03-17 Thread Julio . Font
I know this probably violates some basic guidlines but...
I am trying to display an html link rendered by the message in the
ActionErrors section of a JSP.
My problem is that the '' and '' symbols are being replaced by ' l t;'
and ' # 034;'  (their equivelent)
How can I prevent this translation from happening?

Example:
In the applicationresources file we have something like the following:
error.save.dup.link=a href={0}click for details/a
The action class creates the actual link address and adds an actionError as
follows:
tActionErrors.add(ActionErrors.GLOBAL_ERROR,
new ActionError(error.save.dup.link, 

iRequest.getRequestURL().substring(0,iRequest.getRequestURL().lastIndexOf(/
)) +
/blah blah blah ));
  saveErrors(iRequest, tActionErrors);

In the JSP we have tags to dislay the errors:
logic:messagesPresent
  tabletrtd
bspan id=errorsHeaderbean:message
key=errors.validation.header//span/b
html:messages id=error
  c:out value=${error}/
/html:messages
  /td/tr/table
/logic:messagesPresent

When the error is displayed because the '' and '' signs have been replaced
it just show the text as follows:
a href=http://localhost:8080/blah blah blah click to see /a




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Html:File tag questions

2003-09-09 Thread Julio . Font

I have 2 questions regarding the html:file tag:
Is there a way around getting the Warning: Page has Expired The page you
requested was created using information ... page when the user clicks the
browser back button on a form that has a html:file tag? I believe this tag
is the cause of this behavior - or is it. The page has a form defined as
follows:
html:form action=myJsp  enctype=multipart/form-data
blah
 html:file property=fileName/
blah
/html:form

None of my other pages have this behavior and they define a form in the same
manner.
Is there anyway to redisplay the select file after validation fails on this
page? When validation fails for any reason on this page and the page is
redisplayed showing the error the selected file is ALWAYS blank. The user
has to re-select the file which is annoying.
I  read threads on both these question but didn't see a solution to either. 
Any help would be appreciated
Thanks,
Julio


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to display an active GIF image after page submit

2003-09-04 Thread Julio . Font

This is a newbee question, sorry. I searched the archives but couldn't find
an answer.

Use case
User enters data on a form, selects a file to upload to the server and
clicks the Submit button.
While the file is uploading and the data is stored to the database display
an image (gif) until the submission is completed and the 'File uploaded
successfully page' is displayed.

How using struts can I display an active GIF on the browser while the file
is uploading?
The gif can be on the same page or on a new window as long as I can close
the new window when the submission completes.

Any help would be appreciated.

Thanks,
Julio


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]