FileDocCategorySizeDatePackage
URLTag.javaAPI DocExample3728Mon Jul 23 13:26:50 BST 2007org.apache.struts2.views.jsp

URLTag

public class URLTag extends ComponentTagSupport
see
URL

Fields Summary
private static final long
serialVersionUID
protected String
includeParams
protected String
scheme
protected String
value
protected String
action
protected String
namespace
protected String
method
protected String
encode
protected String
includeContext
protected String
portletMode
protected String
windowState
protected String
portletUrlType
protected String
anchor
Constructors Summary
Methods Summary
public org.apache.struts2.components.ComponentgetBean(com.opensymphony.xwork2.util.ValueStack stack, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)


            
        return new URL(stack, req, res);
    
protected voidpopulateParams()

        super.populateParams();

        URL url = (URL) component;
        url.setIncludeParams(includeParams);
        url.setScheme(scheme);
        url.setValue(value);
        url.setMethod(method);
        url.setNamespace(namespace);
        url.setAction(action);
        url.setPortletMode(portletMode);
        url.setPortletUrlType(portletUrlType);
        url.setWindowState(windowState);
        url.setAnchor(anchor);

        if (encode != null) {
            url.setEncode(Boolean.valueOf(encode).booleanValue());
        }
        if (includeContext != null) {
            url.setIncludeContext(Boolean.valueOf(includeContext).booleanValue());
        }
    
public voidsetAction(java.lang.String action)

        this.action = action;
    
public voidsetAnchor(java.lang.String anchor)

        this.anchor = anchor;
    
public voidsetEncode(java.lang.String encode)

        this.encode = encode;
    
public voidsetIncludeContext(java.lang.String includeContext)

        this.includeContext = includeContext;
    
public voidsetIncludeParams(java.lang.String name)

        includeParams = name;
    
public voidsetMethod(java.lang.String method)

        this.method = method;
    
public voidsetNamespace(java.lang.String namespace)

        this.namespace = namespace;
    
public voidsetPortletMode(java.lang.String portletMode)

        this.portletMode = portletMode;
    
public voidsetPortletUrlType(java.lang.String portletUrlType)

        this.portletUrlType = portletUrlType;
    
public voidsetScheme(java.lang.String scheme)

        this.scheme = scheme;
    
public voidsetValue(java.lang.String value)

        this.value = value;
    
public voidsetWindowState(java.lang.String windowState)

        this.windowState = windowState;