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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:40:06+00:00 2026-05-26T15:40:06+00:00

I have webpage with a form like this: <html> <head> … </head> <body> <form

  • 0

I have webpage with a form like this:

<html>
<head>
    ...
</head>
<body>
<form id="form4" name="form4" method="post" action="Receive.jsp">
    <input name="inputField1" type="text"/>
    ...
    <input type="submit" value="Send"/>
</form>
</body>

</html>

Then in my Receive.jsp I use:

<jsp:useBean id="form4" class="control.FormBean4" scope="session"/>
<jsp:setProperty name="form4" property="*"/>

To get all the input data from the form into a Bean, then I do some stuff with it. Now, what I want to do is to redirect the data from the Bean into another JSP with another form in it and fill out the input fields of that form with the properties from my Bean. My question is if there is some way to automatically fill the form like <jsp:setProperty name="form4" property="*"/> but backwards?

I already tried <jsp:getProperty name="form4" property="*"/>, but it obviously didn’t work (I read somewhere in the JSP reference that this is not valid), so I’m wondering if you know some way to do this, because I have more than just one form each one with a bunch of fields and I’d like to save all the work of setting the values one by one.

I’m still a newbie in JSP and don’t really know much about the JSTL or any frameworks like Struts, any help would be greatly appreciated.

  • 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-26T15:40:06+00:00Added an answer on May 26, 2026 at 3:40 pm

    My question is if there is some way to automatically fill the form like <jsp:setProperty name="form4" property="*"/> but backwards?

    No. You’d need to either do it yourself, or to head to a JSP/Servlet based MVC framework like JSF, Struts, Spring-MVC, etc.

    To do it yourself:

    <input type="text" name="textName" value="${fn:escapeXml(bean.textName)}" />
    <select name="dropdownName">
      <c:forEach items="${bean.dropdownOptions}" var="dropdownOption">
        <option value="${dropdownOption.key}" ${bean.dropdownName == dropdownOption.key ? 'selected' : ''}>${dropdownOption.value}</option>
      </c:forEach>
    </select>
    <c:forEach items="${bean.checkboxOptions}" var="checkboxOption">
      <c:forEach items="${bean.checkboxName}" var="checkboxName">
        <c:if test="${checkboxName == checkboxOption.key}">
          <c:set var="checked" value="true" />
        </c:if>
      </c:forEach>
      <input type="checkbox" name="checkboxName" value="${checkboxOption.key}" ${checked ? 'checked' : ''}>${checkboxoption.value}<br/>
    </c:forEach>
    

    To do it with for example JSF:

    <h:inputText value="#{bean.textName}" />
    <h:selectOneMenu value="#{bean.dropdownName}">
      <f:selectItems value="#{bean.dropdownOptions}" />
    </h:selectOneMenu>
    <h:selectManyCheckbox value="#{bean.checkboxName}">
      <f:selectItems value="#{bean.checkboxOptions}" />
    </h:selectManyCheckbox>
    

    (which in turn also immediately minimizes the <jsp:useBean> and all Servlet code boilerplate)

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

Sidebar

Related Questions

I have a webpage that looks like: <html> <head> <title>Hi</title> </head> <body> <form name=mainForm
We have some html that looks like this: <form id=MyUserControl runat=server method=post> <script language=javascript
this is what an html structure of the webpage looks like: <body> <form> <input
<form id=login_frm method=post action = /login/user_auth/> <fieldset> <legend>Login:</legend> <label for=id_email>Email</label> <input type=text name=email id=id_email
i have a webpage that looks like this: http://yoursdproperty.com/index2.php?option=com_jumi&fileid=3&Itemid=11 i want the page to
I have made a simple webpage to check for regular expressions. <html> <head> <script
I have a webpage with a form element and a popup window (opened by
I'm using django, and have a static webpage with a GET form, and about
I have a few asp:textbox controls in a form on a webpage, below is
I have a webpage (say www.example.com/a.asp) .. I am having an iframe in this

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.