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

  • Home
  • SEARCH
  • 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'm working on a J2EE application which uses Struts (v1) and I would like
I am working on a basic Struts based application that is experience major spikes
I have been working with Struts for some time, but for a project I
I am working on Struts project using the Spring Source Toolsuite IDE. When there
Ho there, can someone explain how to make this code working?? <%@taglib uri=/struts-tags prefix=s%>
I have a working Action and JSP form that I'm using for creating new
This question has spawned out of this one. Working with lists of structs in
Working on a project at the moment and we have to implement soft deletion
Working on a somewhat complex page for configuring customers at work. The setup is
Working with python interactively, it's sometimes necessary to display a result which is some

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.