?
Solved

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

Posted on 2005-03-10
1
Medium Priority
?
314 Views
Last Modified: 2010-04-01
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
            value="${fn:escapeXml(param.yourval)}">
       <font color=red>${fn:escapeXml(yourvalError)}</font>

    </form>


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.
0
Comment
Question by:posh020
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 11

Accepted Solution

by:
raj3060 earned 500 total points
ID: 13513244
<input type="text" name="yourval" size=35  value="123" />

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The well known Cerber ransomware continues to spread this summer through spear phishing email campaigns targeting enterprises. Learn how it easily bypasses traditional defenses - and what you can do to protect your data.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question