How to fill in a text input box with a specified value?

Hi folks,

Suppose I have the following in my JSP page.

    <form action="myform.jsp" method="post">
    Type Your Value:
      <input type="text" name="yourval" size=35
       <font color=red>${fn:escapeXml(yourvalError)}</font>


The above will give me a text box where I can type some value.
But it will be a blank text box.

I want the text box to have an initial value that shows inside the text box, like "123".
How can I do this?

Also, I want to call <jsp:getProperty name="mybean" property="yourVal" />
and put the value returned by this call, inside the text box as the initial value.

How can I do this?

Thank you.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

<input type="text" name="yourval" size=35  value="123" />

<input type="text" name="yourval" size=35  value="<%=<jsp:getProperty name="mybean" property="yourVal" />>" />

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.