Kawai Wiki

Rev

Blame | Last modification | View Log | RSS feed

package org.kawai.tag.kcode;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.jsp.PageContext;

import org.mentawai.core.Action;
import org.mentawai.core.Forward;

public abstract class AbstractKCode implements KCode {
       
        protected Action getAction(PageContext pageContext) {
                return (Action) pageContext.getRequest().getAttribute(Forward.ACTION_REQUEST);
        }
       
        protected HttpServletRequest getRequest(PageContext pageContext) {
                return (HttpServletRequest) pageContext.getRequest();
        }
}