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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:27:06+00:00 2026-06-10T10:27:06+00:00

I have a one main jsp (file upload jsp screen) which has form elements.

  • 0

I have a one main jsp (file upload jsp screen) which has form elements.
User will select the file to upload, also set some other elements (such as checkboxes, radios, etc.) as per the requirement and then finally submit the form.

After uploading the result of the process is formulated into a table of a different JSP (say result.jsp). Right now the result.jsp is displayed independently on the screen.

What I want is to display the result.jsp in the same parent.jsp (having form elements) and not on a separate independent page.

Can anyone help me with this?

struts.xml:

<action name="commonDataImportAction_*" class="commonDataImportAction">
        <result name="VIEW">
            /jsp/CommonDataImportLog.jsp (result.jsp)
        </result>
        <result name="input">/jsp/CommonDataImport.jsp (parent.jsp)
        </result>
</action>

Update:

Screenshot of the screen, how I want it:

http://img802.imageshack.us/img802/7141/screenzgk.jpg

  • 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-06-10T10:27:08+00:00Added an answer on June 10, 2026 at 10:27 am

    If you are submitting the page in simple manner the way Struts2 submit button works than one simple solution is to create only a single page which also contains the layout of your result.jsp, but you can hide that part initially (before the page submit).

    On successful page submission you can set a value (say a Boolean) in your action class and based on this can show that section,since your are already done with file upload so you can set those values in your action class which are needed to show the values in result.jsp.

    For me that is a simple yet efficient approach.

    Alternatively if you are going with the Ajax based file upload than there are many ways to do this like

    1. Send back HTML section from the Action.
    2. You can even send the name of JSP file and can include it in to the current JSP at runt time.
    3. Send JSON data from action and parse the JSON using Jquery to build view
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have WPF Application where I have One main form and other user controls
I have one main flash file (swf) which loads in all it's sub pages
I have one single MainViewController which has of course it's one main UIView. I
I have two jsps. One is login_first.jsp , another one is main.jsp . After
I have one main project and another project which is added as a subprojects.
I have one main array which is the returned data from a MySQL query
We are installing out program via inno setup. We have one main exe file,
I have two jsp(one is main page, another one is new window) and single
I have one main form, and i want to dynamically change it's content, via
we have one main application, which executes up to 5 different exes. These exes

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.