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}
精彩评论