For example, from the Blazix server's logo library in your system environment can not be used, so do not use the logo library to achieve similar functions? This tutorial is proposed for this issue. This problem can be solved, but the code should be a little longer. Basically, you have to edit the HTML logo yourself, and then set it to the default value. From the example below we can learn how to modify getname.jsp to provide features similar to Blx:getproperty, but we can only edit HTML flags manually:
What ' s your name? <input Type=text Name=username
Size=20 value= "<%= user.getusername ()%>" ><BR>
What ' s your e-mail address? <input Type=text
Name=email size=20
Value= "<%= user.getemail ()%>" ><BR>
What ' s your age? <input Type=text Name=age
Size=4 value=<%= user.getage ()%>>
<p><input type=submit>
</FORM>
</BODY>
</HTML>
As the preceding code shows, it simply adds a "VALUE" area to the input flag and initializes the area with an expression.
To handle the exception error in the input process, we can use the "String" area in the bean and convert it to the target data type. So you can also handle exception errors.
As a after-school exercise, we can change the example in the previous tutorial to a Blazix logo library.
At this point, this "JSP from the Light" series of tutorials to the end, I hope to help you.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.