Hibernate struts spring displays data when the showgoods. jsp page is opened for the first time
Source: Internet
Author: User
Specifically, the showgoods. jsp page reads Data Library Content, now when the first time you enter this page, there is no data, only after clicking the "query" button to pass
< Html : Form Action = "/showgoods" onsubmit = "oncheck ();">
And
<Action
Attribute = "showgoodsfrom"
Name = "showgoodsfrom"
Input = "/showgoods. jsp"
Path = "/showgoods"
Scope = "request"
Type = "org. springframework. Web. Struts. delegatingactionproxy"
Validate = "false">
<Forward name = "showgoods" Path = "/showgoods. jsp"/>
</Action>
In the action class;
Public actionforward execute (
Actionmapping mapping,
Actionform form,
Httpservletrequest request,
Httpservletresponse response)
This function can be used in showgoods. Do. Display Output data.
What I want now is that when the showgoods. jsp page is opened, the data can be directly read from the database and displayed. You do not need to press the "query" button to submit and then display the data.
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.