Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6042781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:49:40+00:00 2026-05-23T06:49:40+00:00

How do I pass a hidden field value from one application(html) page to GWT

  • 0

How do I pass a hidden field value from one application(html) page to GWT page? Access them in destination i.e. GWT PAGE , both pages in different application

My html page contains a hidden field value. I want to transfer that hidden field value in to another page(GWT page) which is located in http://localhost:8080/gwtApp so that GWT page can access that hidden field .

Description: Hidden fields present in html page, in that page when I click button “send” then page redirected to different app (GWT app : http://localhost:8080/gwtApp). Call made to GWT app. Now I want to access that hidden fields present in 1st html page.

I tried DOM.getElementById("myID")).getValue() and got Unable to get hidden field

I am stuck in this issue.

  • Any servlet needed in between these pages to access hidden fields ?

  • Is there any way to access hidden field in child page(GWT page) from parent page (html) ?

  • Is there any relation between both pages html and GWT page(basically html) ? parent-child ?

Any help or guidance in this matter would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:49:41+00:00Added an answer on May 23, 2026 at 6:49 am

    Using Iframe we can solve this problem

    1] Add destination html file in source html file using iframe.

    <FORM name='formName' method='post' action='YourServlet'>    
    <input id="hiddenId" type=hidden    name="hiddenId" value="">
    <IFRAME  id="iframeId" name="desthtml"  src="http://localhost:8080/gwtApp/GWTRedirect.html" 
     width="100%" height="100%" style="padding-top: 10px" 
     frameborder="0" scrolling="no">                     
    </IFRAME>
    <FORM >
    

    2] In Your servlet read your html using

    org.enhydra.xml.xmlc.XMLObjectImpl doc = getXmlcPage(String htmlFileName);
    Element hiddenElement = doc.getElementById("hiddenId");
            hiddenElement.setAttribute("value",1234));
    

    3] access hidden fields on GWTRedirect.html using

    <INPUT TYPE='hidden' value='' id='hiddenId' name='hiddenId'> 
    <SCRIPT type="text/javascript" language="javascript">
    document.getElementById("hiddenId").value =  window.parent.document.getElementById("hiddenId");
    </SCRIPT>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to pass a chunk of html content to a hidden field
I'm trying to pass post data from one page to the next but PreviousPage
I have the below code in my .aspx page. <input type=hidden id=fbinfo name=fbinfo value=
If you wanted to change the value of the hidden field to something not
Is it possible to pass parameter from a JSP page to a JSF page's
I have a repeater which has a hidden field of Parking_ID <asp:HiddenField Value='<%# Eval(Parking_ID)
I'm trying to pass some POST variables from hidden inputs (using JQuery to change
What is the best way to pass a value from C# code to javascript?
I'd like to have some hidden inputs on View A.aspx and pass the values
Goal Pass images generated by one process efficiently and at very high speed to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.