How to get data from JSP to Action class by id instead of property in Struts 2?

后端 未结 3 1711
臣服心动
臣服心动 2021-01-24 05:03

I am doing on Java Struts 2 framework.

Normally, I can get data from my JSP through the get set method in Form.java (action class). Below is my example :

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-24 05:36

    You can use and add struts tag to your jsp ( at the top ):

    <%@ taglib prefix="s" uri="/struts-tags"%>
    

提交回复
热议问题