Spring Framework RequestContextAwareTag - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework RequestContextAwareTag class.

This code example shows how to use the following methods:
import org.springframework.web.servlet.tags.RequestContextAwareTag; 
 
/** 
 * @author Johan Lindquist 
 */ 
public class FullTrackTag extends RequestContextAwareTag 
{ 
    private String _var; 
    private String _link; 
 
    public void setVar(String var) 
    { 
        _var = var; 
    } 
 
    public void setLink(final String link) 
    { 
        _link = link; 
    } 
 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
import org.springframework.web.servlet.tags.RequestContextAwareTag; 
 
/** 
 * @author 
 */ 
public class ImageTag extends RequestContextAwareTag 
{ 
    private String _link; 
    private String _baseurl; 
    private String _context; 
 
    public void setLink(final String link) 
    { 
        _link = link; 
    } 
 
    public void setBaseurl(final String baseurl) 
    { 
        _baseurl = baseurl; 
    } 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
import org.springframework.web.servlet.tags.RequestContextAwareTag; 
 
/** 
 * @author Johan Lindquist 
 */ 
public class TrackStatisticsTag extends RequestContextAwareTag 
{ 
    private String _var; 
    private String _link; 
 
    public void setVar(String var) 
    { 
        _var = var; 
    } 
 
    public void setLink(final String link) 
    { 
        _link = link; 
    } 
 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
import com.salesmanager.core.business.merchant.model.MerchantStore; 
import com.salesmanager.core.business.reference.currency.model.Currency; 
import com.salesmanager.core.utils.ProductPriceUtils; 
import com.salesmanager.web.constants.Constants; 
 
public class ShopProductPriceFormatTag extends RequestContextAwareTag  {
	 
	 
 
	/** 
	 *  
	 */ 
	private static final long serialVersionUID = 1L;
 
	private static final Logger LOGGER = LoggerFactory.getLogger(ShopProductPriceFormatTag.class); 
 
	@Autowired 
	private PricingService pricingService;
	 
	@Autowired 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
import com.salesmanager.core.business.content.service.ContentService; 
import com.salesmanager.core.business.merchant.model.MerchantStore; 
import com.salesmanager.core.business.reference.language.model.Language; 
import com.salesmanager.web.constants.Constants; 
 
public class PageContentTag extends RequestContextAwareTag  {
	 
	 
 
	/** 
	 *  
	 */ 
	private static final long serialVersionUID = 1L;
 
	private static final Logger LOGGER = LoggerFactory.getLogger(PageContentTag.class); 
 
 
	@Autowired 
	private ContentService contentService;
	 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
 */ 
 
public class BeanAnnotationValidateTag extends RequestContextAwareTag implements BodyTag { 
 
    public BeanAnnotationValidateTag() { 
        super(); 
 
    } 
 
    public static final String DEFAULT_COMMAND_NAME = "command"; 
 
    private String commandName = DEFAULT_COMMAND_NAME; 
 
    private String globalVar = null; 
 
    private boolean validateOnSubmit = true; 
 
    private Object commandObj = null; 
 
    private CommandObjectToValangConverter cotvc = null; 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
 *  
 * @author Rick Reumann 
 * @author Craig Walls 
 */ 
@SuppressWarnings("serial") 
public abstract class BaseSocialConnectedTag extends RequestContextAwareTag {
 
	protected String provider;
 
	protected int evaluateBodyIfConnected(boolean evaluateIfConnected) {
		if (getConnectionRepository().findConnections(provider).size() > 0) {
			return evaluateIfConnected ? EVAL_BODY_INCLUDE : SKIP_BODY;
		} 
		return evaluateIfConnected ? SKIP_BODY : EVAL_BODY_INCLUDE;
	} 
 
	private ConnectionRepository getConnectionRepository() { 
		WebApplicationContext applicationContext = getRequestContext().getWebApplicationContext();
		return applicationContext.getBean(ConnectionRepository.class);
	} 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
 * <{@code}/constructPreset> 
 * </pre> 
 * 
 * @author David Draper 
 */ 
public class ConstructPreset extends RequestContextAwareTag 
{ 
    private static final long serialVersionUID = -8480734697163462239L; 
 
    /** 
     * <p>A <code>PresetsManager</code> is in order to actually instantiate presets. This is retrieved from the 
     * Spring application context the first time the JSP is used and all subsequent requests use the same instance.</p> 
     */ 
    private PresetsManager presetManager; 
 
    /** 
     * <p>This will be set to the id of the preset to construct. It is specified as a required field in the 
     * surf.tld file.</p> 
     */ 
    private String preset; 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
import org.springframework.web.servlet.tags.RequestContextAwareTag; 
 
import javax.servlet.jsp.JspException; 
import javax.servlet.jsp.JspWriter; 
 
public class JSONTag extends RequestContextAwareTag { 
 
    private Object val; 
 
    @Override 
    protected int doStartTagInternal() throws Exception { 
        try { 
            JspWriter out = pageContext.getOut(); 
            ObjectMapper mapper = getRequestContext().getWebApplicationContext().getBean("objectMapper", ObjectMapper.class); 
            out.write(mapper.writeValueAsString(val)); 
        } catch (Exception ex) { 
            throw new JspException(ex); 
        } 
        return EVAL_PAGE; 
    } 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
 * When using this tag or the HTML above you must make sure that the codebase is included before any 
 * {@link ValangValidateTag}s in you JSP file. 
 *  
 * @author Oliver Hutchison 
 */ 
public class ValangCodebaseTag extends RequestContextAwareTag { 
 
    private boolean includeScriptTags; 
 
    private String logId; 
 
    private String globalErrorsId; 
 
    private String fieldErrorIdSuffix; 
 
    /** 
     * Sets the HTML ID of the log parent node. 
     */ 
    public void setLogId(String logId) { 
        this.logId = logId; 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java