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 4380556
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T12:32:55+00:00 2026-05-21T12:32:55+00:00

I am working on a Struts 2 application .I have a JSP page in

  • 0

I am working on a Struts 2 application .I have a JSP page in which there is a normal html table. In one of the columns , I have a link called ‘update‘ . When I click on the ‘update‘ , a new popup window will open and the pop up will have many other details of the current row (which means it has to pass through some action and fetch data from database).

There is a Submit button in popup , which when clicked , must submit the edited data .

How do I create this popup in struts 2?

Should it be the same form as the parent window or a different one ?

It would be of great help , if you can give links to some tutorial . I am not able to find it in google search .

  • 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-21T12:32:56+00:00Added an answer on May 21, 2026 at 12:32 pm

    Its a problem related to javascript not struts2.I guess you must be using this syntax in the table definition for link update
    .

    <tr><a href="javascript:update('<s:proerty value="anyValueYouwantToSend"/>')">Update</a></tr>
    

    where anyValueYouwantToSendmay be some identifier value you want to send to identify the particular row
    Then in Javascript

    function update(value){
      var url="myAction?someVariable=value";
      window.open(url,"_blank","directories=no, status=no,width=1400, height=870,top=0,left=0");
    }
    

    where myAction will be the action in which you are going to do your database stuff.In the action mapping of this action you need to give result to a jsp which is going to be your pop-up window.And of course popup window will have a different form to submit, however the update you perform here will be reflected in the parent window only when you refresh it.If you want to reflect these changes without refreshing the parent window you need to write some parent child javascript, which i can help you to do if you want

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working in a struts-hibernate application. I have seen a error on 3rd
I have a Websphere Portal application containing several portlets for which I'm currently working
we are working on a web application which is developed using Struts 2 Framework.
I have a struts2 application which uses the struts2-rest-plugin v.2.2.3. Everything is working great
I have a struts2 application with a single page that may show one of
I am working on struts 2 web application which uses struts2-jquery-plugin-3.1.0.jar for UI. The
I am working on struts 2 web application which uses struts2-jquery-plugin-3.1.0.jar for UI. The
I'm working in struts-config 1.2 application. In my struts-config, I have declaration entry for
I have a simple struct which contains GUI controls in an application I'm working
I am working on a Java EE web application, which consists of Struts, Spring

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.