开发者

mailto: struts2

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜