I was looking in the wrong place. Using jquery.

-----Original Message-----
From: Arjuna Bandara [mailto:arjunab...@gmail.com]
Sent: Friday, June 22, 2018 9:35 AM
To: Struts Users Mailing List <user@struts.apache.org>
Subject: Re: Struts 2

Hi,

If you using dojo, you need to include dojo tag headers.

Also keep in mind that dojo was depreciated from struts 2. So they advise to 
use jQuery.

When you sending post request, its url should end with ".json" suffix.

Regards
Arjuna



On Fri, Jun 22, 2018, 9:53 PM Deborah White <deborah.wh...@doj.ca.gov>
wrote:

> It appears we are using dojo plugin.
>
> I need to upload an excel file and then be able to hit the add button
> that sends to my action that imports the data into the database.  I
> can send additional code and some screenshots if that would help.  Is
> it better to take it outside of this email thread?
>
> -----Original Message-----
> From: Arjuna Bandara [mailto:arjunab...@gmail.com]
> Sent: Thursday, June 21, 2018 6:28 PM
> To: Struts Users Mailing List <user@struts.apache.org>
> Subject: Re: Struts 2
>
> Hi,
>
> What's your expected output. And the falt?
>
> Do you use dojo plugin?
>
>
>
> On Fri, Jun 22, 2018, 3:25 AM Deborah White <deborah.wh...@doj.ca.gov>
> wrote:
>
> > Hello, I'm hoping someone with more experience can help me with this.
> > When I do the file upload, it uploads the file and returns to the
> > page (but it looks like it breaks out of the view it was in) but
> > then the Add button does not work.  I believe I need to be able to
> > post data to my action class that is handling the file upload?
> > Please see my jsp
> code:
> >
> > <%@taglib uri="/struts-tags" prefix="s" %>
> >
> >
> > <script type="text/javascript">
> >
> > function addBulkSellerAgent() {
> >        var registrationId = '<s:property value="registrationId"/>';
> >             var sellerId = '<s:property value="sellerId"/>';
> >             var fileFileName = '<s:property value="fileFileName"/>';
> >             var fromPage = 'sellerAgent';
> >             var postData = "registrationId="+registrationId+
> >                                   "&sellerAgentData.sellerId=" +
> sellerId+
> >                                   "&fromPage=" + fromPage +
> >                                   "&fileFileName=" + fileFileName;
> >             processRegistrationDetails('<s:url
> > value="addBulkSellerAgents.action" encode="true"/>', postData);
> >             return false;
> > }
> > </script>
> >
> > <h3>Select File to Upload</h3>
> > <s:form action="UploadFile" method="post"
> > enctype="multipart/form-data"> <s:file label="File"
> > name="file"></s:file> <s:submit value="Upload"></s:submit> </s:form>
> >
> > <form name="sellerAgentForm" id="sellerAgentForm"
> > ENCTYPE="multipart/form-data" action="" method="post">
> >        <div id="PageContainer">
> >               <div id="container" style="margin: 0 0 0 137px;">
> >
> >                      <h1 class="page-title">
> >                            &nbsp;
> >                      </h1>
> >                      <div class="clientSideError"
> > id="clientSideError"></div>
> >
> >               <fieldset style="width:670px;">
> >                      <legend>Add Seller Agents</legend>
> >                      <body>
> >
> > </fieldset>
> >
> >                      <br>
> >                      <table border="0" cellpadding="0" cellspacing="0"
> > width="642" style="margin:5px">
> >                            <tr>
> >                                   <td align="center">
> >                                          <input id="button_save"
> > class="button" type="button" value="Add" name="button_save"
> > onclick="return addBulkSellerAgent();" />
> >                                          <%--<input id="button_reset1"
> > class="button" type="button" value="Reset" name="button_reset1"
> > onclick="return doSellerAgentFormClear();"/>--%>
> >                                          <input id="button_exit"
> > class="button" type="button" value="Cancel" name="button_exit"
> > onclick="displayRegistrationDetails('<s:url
> value="registrationView.action"
> > encode="true"><s:param name="registrationId"
> > value="%{registrationId}"/><s:param name="fromPage"
> > value="%{fromPage}"/></s:url>');" />
> >                                          &#160;&#160;
> >                                          <span id="StatusMessage"
> > class="statusMessage"></span>
> >                                   </td>
> >                            </tr>
> >                      </table>
> >                      <br>
> >               </div>
> >        </div>
> > </form>
> >
> > CONFIDENTIALITY NOTICE: This communication with its contents may
> > contain confidential and/or legally privileged information. It is
> > solely for the use of the intended recipient(s). Unauthorized
> > interception, review, use or disclosure is prohibited and may
> > violate applicable laws including the Electronic Communications Privacy Act.
> > If you are not the intended recipient, please contact the sender and
> > destroy all copies of the communication.
> >
>
> CONFIDENTIALITY NOTICE: This communication with its contents may
> contain confidential and/or legally privileged information. It is
> solely for the use of the intended recipient(s). Unauthorized
> interception, review, use or disclosure is prohibited and may violate
> applicable laws including the Electronic Communications Privacy Act.
> If you are not the intended recipient, please contact the sender and
> destroy all copies of the communication.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>

CONFIDENTIALITY NOTICE: This communication with its contents may contain 
confidential and/or legally privileged information. It is solely for the use of 
the intended recipient(s). Unauthorized interception, review, use or disclosure 
is prohibited and may violate applicable laws including the Electronic 
Communications Privacy Act. If you are not the intended recipient, please 
contact the sender and destroy all copies of the communication.

Reply via email to