Struts File Upload / Dojo issue

S

SB

Hello,

I am attempting to use the html:file tag within a Dojo dialog box.
The dojo part seems to work fine but I have a <html:submit> button that
when pressed does nothing. My page submits to a LookupDispatchAction
and the other <html:submit> buttons on the page submit to the action
correctly. The contained in the dialog div does not seem to submit the
form at all. Any help is appreciated.

Here is the div containing the <html:file> and <html:submit> buttons.


<div dojoType="dialog" id="DialogContent" bgColor="white"
bgOpacity="0.5" toggle="fade" toggleDuration="250">

<table>
<tr>
<td>Location:</td>
<td><html:file name="AdjustmentsForm" property="adjFile"
size="100px"></html:file></td>
</tr>
<tr>
<td align="center" colspan="2">
<html:submit property="submit1">
<bean:message key="button.addReplaceAdjustmentDoc" />
</html:submit>
<td>
<td colspan="1" align="right"><input type="button" id="hider"
value="Cancel"></td>
</tr>
</table>

</div>

Thanks

SB
 
M

Manish Pandit

Hi,

Given the div that you pasted, it doesnt seem to have a <html:form>
tag. Is this tag really missing, or its not just pasted, because I
believe <html:file> and <html:submit> will not work unless inside a
<html:form>.

-cheers,
Manish
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top