Tabnine Logo
JspWriter.append
Code IndexAdd Tabnine to your IDE (free)

How to use
append
method
in
javax.servlet.jsp.JspWriter

Best Java code snippets using javax.servlet.jsp.JspWriter.append (Showing top 20 results out of 315)

origin: spring-projects/spring-social-facebook

@Override
public int doEndTag() throws JspException {
  try {
    if (pageContext.getRequest().isSecure()) {
      pageContext.getOut().append("<script src='https://connect.facebook.net/en_US/all.js'></script>");
    } else {
      pageContext.getOut().append("<script src='http://connect.facebook.net/en_US/all.js'></script>");
    }
    pageContext.getOut().append("<div id='fb-root'></div>");
    pageContext.getOut().append("<script type='text/javascript'>");
    pageContext.getOut().append("FB.init({appId: '" + appId + "', status: true, cookie: true, xfbml: true});");
    pageContext.getOut().append("</script>");
  } catch (IOException e) {
    throw new JspException(e);
  }
  return EVAL_PAGE;
}
origin: org.springframework.social/spring-social-facebook-web

@Override
public int doEndTag() throws JspException {
  try {
    if (pageContext.getRequest().isSecure()) {
      pageContext.getOut().append("<script src='https://connect.facebook.net/en_US/all.js'></script>");
    } else {
      pageContext.getOut().append("<script src='http://connect.facebook.net/en_US/all.js'></script>");
    }
    pageContext.getOut().append("<div id='fb-root'></div>");
    pageContext.getOut().append("<script type='text/javascript'>");
    pageContext.getOut().append("FB.init({appId: '" + appId + "', status: true, cookie: true, xfbml: true});");
    pageContext.getOut().append("</script>");
  } catch (IOException e) {
    throw new JspException(e);
  }
  return EVAL_PAGE;
}
origin: org.apache.tiles/com.springsource.org.apache.tiles.jsp

/** {@inheritDoc} */
@Override
public PrintWriter append(char c) {
  try {
    writer.append(c);
  } catch (IOException e) {
    log.error("Error when writing in JspWriter", e);
    setError();
  }
  return this;
}
origin: org.apache.tiles/com.springsource.org.apache.tiles.jsp

/** {@inheritDoc} */
@Override
public PrintWriter append(CharSequence csq) {
  try {
    writer.append(csq);
  } catch (IOException e) {
    log.error("Error when writing in JspWriter", e);
    setError();
  }
  return this;
}
origin: org.apache.tiles/com.springsource.org.apache.tiles.jsp

/** {@inheritDoc} */
@Override
public PrintWriter append(CharSequence csq, int start, int end) {
  try {
    writer.append(csq, start, end);
  } catch (IOException e) {
    log.error("Error when writing in JspWriter", e);
    setError();
  }
  return this;
}
origin: org.apache.tiles/tiles-request-jsp

/** {@inheritDoc} */
@Override
public PrintWriter append(CharSequence csq) {
  try {
    writer.append(csq);
  } catch (IOException e) {
    log.error("Error when writing in JspWriter", e);
    setError();
  }
  return this;
}
origin: pebbleblog/pebble

@Override
public int doStartTag() throws JspException {
 JspWriter out = pageContext.getOut();
 String token = (String) pageContext.getRequest().getAttribute(SecurityTokenValidatorImpl.PEBBLE_SECURITY_TOKEN_PARAMETER);
 if (token != null) {
  try {
   if (query) {
    out.append(SecurityTokenValidatorImpl.PEBBLE_SECURITY_TOKEN_PARAMETER).append("=").append(token);
   } else {
    out.append("<input type=\"hidden\" name=\"").append(SecurityTokenValidatorImpl.PEBBLE_SECURITY_TOKEN_PARAMETER);
    out.append("\" value=\"").append(token).append("\"/>");
   }
  } catch (IOException ioe) {
   throw new JspException(ioe);
  }
 }
 return SKIP_BODY;
}
origin: org.apache.tiles/tiles-request-jsp

/** {@inheritDoc} */
@Override
public PrintWriter append(char c) {
  try {
    writer.append(c);
  } catch (IOException e) {
    log.error("Error when writing in JspWriter", e);
    setError();
  }
  return this;
}
origin: org.apache.tiles/tiles-request-jsp

/** {@inheritDoc} */
@Override
public PrintWriter append(CharSequence csq, int start, int end) {
  try {
    writer.append(csq, start, end);
  } catch (IOException e) {
    log.error("Error when writing in JspWriter", e);
    setError();
  }
  return this;
}
origin: liferay/liferay-faces

@Override
public Writer append(char c) throws IOException {
  return getWrapped().append(c);
}
origin: com.liferay.faces/liferay-faces-util

@Override
public Writer append(char c) throws IOException {
  return getWrapped().append(c);
}
origin: liferay/liferay-faces

@Override
public Writer append(CharSequence csq, int start, int end) throws IOException {
  return getWrapped().append(csq, start, end);
}
origin: liferay/liferay-faces

@Override
public Writer append(CharSequence csq) throws IOException {
  return getWrapped().append(csq);
}
origin: com.liferay.faces/liferay-faces-util

@Override
public Writer append(CharSequence csq) throws IOException {
  return getWrapped().append(csq);
}
origin: com.liferay.faces/liferay-faces-util

@Override
public Writer append(CharSequence csq, int start, int end) throws IOException {
  return getWrapped().append(csq, start, end);
}
origin: pebbleblog/pebble

 public void decorateFooter(JspWriter out, PageDecoratorContext pageDecoratorContext) throws IOException {
  Boolean renderFacebookSupport = (Boolean) pageDecoratorContext.getRequest().getAttribute(RENDER_FACEBOOK_SUPPORT_KEY);
  if (renderFacebookSupport != null && renderFacebookSupport) {
   // Find out the app ID
   AbstractBlog abstractBlog = (AbstractBlog) pageDecoratorContext.getRequest().getAttribute(Constants.BLOG_KEY);
   if (abstractBlog instanceof Blog) {
    String appId = ((Blog) abstractBlog).getPluginProperties().getProperty(FACEBOOK_APP_ID_KEY);
    if (appId != null) {
     out.append("<div id=\"fb-root\"></div>\n" +
         "<script src=\"http://connect.facebook.net/en_US/all.js\"></script>\n" +
         "<script>\n" +
         "FB.init({appId: '").append(appId).append("', status: false, cookie: true, xfbml: true, channelUrl: '")
         .append(abstractBlog.getUrl()).append("facebook_channel.html'});\n" +
         "</script>");
    } else {
     // Probably should warn that you need an APP id....
    }
   }
  }
 }
}
origin: org.jboss.cdi.tck/cdi-tck-impl

  @Override
  public void doTag() throws JspException, IOException {
    if (sheep != null) {
      getJspContext().getOut().write(INJECTION_SUCCESS);
    }
    if (initializerCalled) {
      getJspContext().getOut().append(INITIALIZER_SUCCESS);
    }
  }
}
origin: org.jboss.jsr299.tck/jsr299-tck-impl

  @Override
  public void doTag() throws JspException, IOException
  {
   if (sheep != null)
   {
     getJspContext().getOut().write(INJECTION_SUCCESS);
   }
   if (initializerCalled) 
   {
     getJspContext().getOut().append(INITIALIZER_SUCCESS);
   }
  }
}
origin: net.sourceforge.mikha-web-utils/web-utils

public void doTag() throws JspException, IOException
{
  JspFragment body = getJspBody();
  if (body != null)
  {
    StringWriter sw = new StringWriter();
    body.invoke(sw);
    setValue(sw.toString());
  }
  
  Object ev = JspSupport.getParam((PageContext) getJspContext(), name, value);
  if (var != null)
  {
    getJspContext().setAttribute(var, JspSupport.getParam((PageContext) getJspContext(), name, value));
  }
  else {
    getJspContext().getOut().append(String.valueOf(ev));
  }
}
origin: net.sourceforge.mikha-web-utils/web-utils

public void doTag() throws JspException, IOException
{
  String err = null;
  if (JspSupport.hasError((PageContext) getJspContext(), name)) {
    err = JspSupport.getError((PageContext) getJspContext(), name);
    if (err == null) {
      err = defaultText;
    }
  }
  if (var != null)
  {
    getJspContext().setAttribute(var, err);
  }
  else
  {
    if (err != null)
    {
      getJspContext().getOut().append(Escape.toSafeHtml(err));
    }
  }
}
javax.servlet.jspJspWriterappend

Popular methods of JspWriter

  • print
    Print an array of characters. The characters are written to the JspWriter's buffer or, if no buffer
  • write
  • flush
    Flush the stream. If the stream has saved any characters from the various write() methods in a buffe
  • clearBuffer
  • println
    Print an array of characters and then terminate the line. This method behaves as though it invokes p
  • getBufferSize
  • clear
    Clear the contents of the buffer. If the buffer has been already been flushed then the clear operati
  • close
    Close the stream, flushing it first. This method needs not be invoked explicitly for the initial Jsp
  • getRemaining
    This method returns the number of unused bytes in the buffer.
  • newLine
    Write a line separator. The line separator string is defined by the system property line.separator,
  • isAutoFlush
    This method indicates whether the JspWriter is autoFlushing.
  • isAutoFlush

Popular in Java

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JPanel (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now