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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:51:23+00:00 2026-06-01T05:51:23+00:00

i have done some learning on struts based on one project that i got.Now

  • 0

i have done some learning on struts based on one project that i got.Now i have to build 2 to 3 struts jsp pages.

I have following scenario..

<action name="BackAction" class="ClassnamePath">
<result name="user_validated" type="redirectAction">
                <param name="actionName">welcome</param>
            </result>
<result name="user_profile_found_in_database">/resources/userprofile.jsp</result>

what does param will tell..what is the significance of param(i do not know about this)

my scenario is like this In the class(ClassnamePath) i have done one java program which bring the data from the database and put the values in the userprofile.java(for example the userprofile has variable members like name,email,phone,pin)
that values are come from database and stored in the object of the class userprofile.

i have a task that whenever the result “user_profile_found_in_database” has been done those values should be presented in the jsp as result of the “user_profile_found_in_database”

Is the result “user_profile_found_in_database” that i mentioned in the action tag correct?

the jsp page should be having userprofile with labels as the fields of the userprofile and values should be in the text boxes.

i do not know anything about jsp pages…even web programming..but i am learning on my own..(i am having one doubt how jsp pages are different from struts jsp pages)
with the above tasks i can learn lot in struts and jsp..

Please give some knowledge on this to build further.

  • 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-01T05:51:25+00:00Added an answer on June 1, 2026 at 5:51 am

    JSP pages are not way different than simple JSP pages and in short Struts2 will provides a set of tags which will help we as an end developer to build application fast as these tags provides a easy to access functionality about various features S2 providing, few of them are

    1. Accessing Value Stack using OGNL
    2. Data conversion from server to client and other way around
    3. Features to access other things like request/response/session in most easy and flexible way.

    In end when you browser will render the jsp page it will be simple HTML and S2 tags one using in there application will be converted to the HTML as browser will understand HTML.

    regarding second part accessing user profile in your jsp do the following gin your Action class

    1. Create an instance of UserProfile in you action class
    2. Create getter and setter for the UserProfile instance
    3. Fill the value in the user-profile (you will fetch that from your DB call)

    when your action will send back the response, S2 will place the user-profile instance on top of Value stack and we can access its properties using S2 tags like

    <s:textfield name="user_name" value="%{name}"/>
    <s:textfield name="user_age" value="%{age}"/>
    

    here name and age are the properties of your user-profile.param in your redirectAction configuration is being used to provide parameters to the result, for more information about what parameters do please read official document.

    • redirect-action-result

    .

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

Sidebar

Related Questions

Ok I am still learning this... I have Googled and done some research but
Have done some research and found some stuff that may be helpful. I would
I have done some research on the above and found that I am able
I am starting a new project for a client today. I have done some
Now there is a new requirement. I have got some adhoc work at hand.
I have done some searches looking for information about how to do logging with
I have done some work with Ruby on Rails but am still not comfortable
I have done some research, and majority of the examples I have found use
i have done some code in jquery but where i commented in this bellow
I am researching UDID alternatives, and OpenUDID seems interesting. I have done some testing

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.