开发者

mailto: struts2

开发者 https://www.devze.com 2023-02-19 03:38 出处:网络
I am using s开发者_运维百科truts2 and i have propertyand want to make it a mailto link. Can anybody help me how to get it.

I am using s开发者_运维百科truts2 and i have property and want to make it a mailto link.

Can anybody help me how to get it.

thanks


Assuming an action such as:

class SomeAction {
    private String email;
    // ...
    public String getEmail() {
        return email;
    }
}

You can access it in the JSP using the following:

Struts 2 Tag: <s:property value="email"/>

JSP EL: ${action.email}

0

精彩评论

暂无评论...
验证码 换一张
取 消