JavaServer Page

February 4, 2007

The Show tag public void setProperty(String property) {

Filed under: JSP Tag Libraries — webmaster @ 5:28 pm

The Show tag public void setProperty(String property) { this.property = property; } public void setIndex(String index) { this.index = index; } public int doStartTag() throws JspException { processObject(getPointed()); d return SKIP_BODY; } protected Object getPointed() throws JspException { Object value = (null == obj ? e getPointedObject(objName, objScope) : obj); if(null != property) { value = getPointedProperty(value); f } return value; } protected Object getPointedObject(String name, String scope) throws JspException { Object rc = null; if(null != scope) { rc = pageContext.getAttribute(name, translateScope(scope)); } else { rc = pageContext.findAttribute(name); } if(null == rc) { // Log and throw a JspTagException } return rc; } protected int translateScope(String scope) throws JspException { if(scope.equalsIgnoreCase(PAGE_ID)) { return PageContext.PAGE_SCOPE; } else if(scope.equalsIgnoreCase(REQUEST_ID)) {

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Java Web Hosting services

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by Java Web Hosting