Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-02-2008, 12:15 PM
Member
 
Join Date: Jul 2008
Posts: 2
saqib is on a distinguished road
Struts2 :File upload and div on same form
Hi,

I am trying to use ajax div and file control in same form. But div is not loading properly instead it shows [object HTMLDocument] on firefox and [object] on IE. But if I try to use them separately then both are working fine. Anyone has has any idea what is happening ??? Here is the code
/************************************************** ************************************************** *********


Code:
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="s" uri="/struts-tags" %> <html> <head> <s:head theme="ajax" /> <link href="<s:url value="/css/campaign.css"/>" rel="stylesheet" type="text/css"/> <title>upload and ajax test</title> </head> <script> function changeApplication() { dojo.event.topic.publish("change_Application"); } </script> <body> <s:url id="updateSecondList" action="updateSecondList" /> <s:actionerror /> <s:fielderror /> <s:form id="test_form" name="test_form" action="FileAction" method="POST" theme="ajax" enctype="multipart/form-data"> <s:select label="First List" list="firstList" name="selectedItem" onchange="javascript:changeApplication();return false;"> </s:select> <tr> <td class="tdLabel"><label class="label">Second List</label></td> <td> <s:div showLoadingText="false" id="details" href="%{updateSecondList}" theme="ajax" listenTopics="change_Application" formId="test_form"> </s:div> </td> </tr> <s:file name="upload" label="File"/> <s:submit /> </s:form> </body> </html>
/************************************************** ************************************************** *****/
Regards
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-19-2008, 01:33 PM
Member
 
Join Date: Aug 2008
Posts: 1
aRZee is on a distinguished road
Helllo,

I was wondering if you ever found a solution to your problem or a workaround maybe?

I'm having the same problem and cant seem to get it too workk .

Thanx in advance,

aRZee
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 08-19-2008, 01:41 PM
Member
 
Join Date: Jul 2008
Posts: 2
saqib is on a distinguished road
No dear I could not find any solution so drop the idea of using AJAX on that page
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to upload a file? tommy JavaServer Pages (JSP) and JSTL 4 06-30-2008 04:50 PM
file upload sundarjothi JavaServer Pages (JSP) and JSTL 1 06-27-2008 01:52 PM
upload file validations call_sreenu Java Servlet 0 06-10-2008 12:05 PM
File Upload ShoeNinja JavaServer Pages (JSP) and JSTL 0 11-10-2007 12:09 AM
how to upload a file along with html form data pranith Java Servlet 3 07-30-2007 04:33 AM


All times are GMT +3. The time now is 05:38 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org