Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2006

Tip: Looking for answers? Try searching our database.

Struts File Upload / Dojo issue

Thread view: 
SB - 20 Nov 2006 20:41 GMT
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
Manish Pandit - 21 Nov 2006 00:48 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.