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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:24:31+00:00 2026-05-20T11:24:31+00:00

I just got help with the following Struts2 form in my JSP. No values

  • 0

I just got help with the following Struts2 form in my JSP. No values are being displayed. Can anyone help?

<s:iterator value="bulletins">
    <s:if test="approved == false">
        <s:form action="ApproveBulletin" method="post">
            <table>
                <tr>
                    <td colspan="2"><b>From:</b> <s:property value="name" /></td>
                </tr>
                <tr>
                    <td colspan="2"><b>Subject:</b> <s:property value="subject" /></td>
                </tr>
                <tr>
                    <td colspan="2"><b>Date:</b> <s:property value="date" /> <br>
                    </td>
                </tr>
                <tr>
                    <td colspan="2"><s:property value="note" />
                        <s:hidden name="id" value="id" /></td>
                </tr>
                <tr>
                    <td><s:submit type="button" value="approve" label="Approve"
                        action="ApproveBuletin" /></td>
                    <td><s:submit type="button" value="deny" label="Deny"
                        action="DenyBulletin" /></td>
                </tr>
            </table>
            <br />
        </s:form>
    </s:if>
</s:iterator>

This is the code from my action class that passes my iterator to my JSP.

public String execute() {
    BulletinDAO bulletinDAOInstance = new BulletinDAO();

    List<Bulletin> bulletins = bulletinDAOInstance.getAllBulletins();
    if (bulletins != null) {
        HttpSession session = (HttpSession) request.getSession();
        session.setAttribute("bulletins", bulletins.iterator());
        return "success";
    }

    return "failure";
}
  • 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-20T11:24:31+00:00Added an answer on May 20, 2026 at 11:24 am

    Here is the code I used to finally get the id variable to render in the hidden tag. It didn’t need much.

    <s:hidden name="id" value="%{id}" /></td>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I doubt anyone can help with this question because of the following in Erlang's
I just got help in how to compile this script a few mintues ago
I got some code off the Internet and now I just need help to
I've got a problem and hope you can help me find a solution. Name
I just got done setting up my app to work with authlogic following this
Thanks to the help in a previous question , I've got the following code
i just got into game development and XNA and was following a tutorial and
i really need help with the simpliest things of WSDL. i got the following
I've got a problem with populating an edittext. Using the following code i can
I am trying to do the following, can you please guide/help me do it:

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.