Skip to Content
avatar image
Former Member

JSP/JSTL and SAP Functionality

Hello Friends,

while going through the artical "Java Server Page Tag Libraries and SAP" the author Jeff Marin has made the following statements


Web Application Server 6.2 will allow Web Developers to access SAP functionality through JSP Tags. SAP will supply libraries of JSP Tags to access BAPIs and RFCs. Web Developers will use these tags to bring the power of SAP to the Internet without needing a formal education in Java.


I am not aware of such TAG LIBs which are offered by SAP inorder to do JSP programming, ??

If some one know about this , pls point out the electronic resource or Libs!

Many thanks!

Haider Syed

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Feb 19, 2005 at 10:42 AM

    hi syed,

    Steps to create a Tag Libraries in WAS

    1) First Create a Web Module Project

    a) Next a java class (

    import javax.servlet.jsp.JspTagException;

    import javax.servlet.jsp.PageContext;

    import javax.servlet.jsp.tagext.Tag;


    public class HelloWorldTag implements Tag{

    private PageContext pageContext;

    private Tag parent;

    public HelloWorldTag(){



    public void setPageContext(PageContext pageContext) {

    this.pageContext = pageContext;


    public void setParent(Tag parent) {

    this.parent = parent;


    public Tag getParent() {

    return parent;


    public int doStartTag() throws JspTagException {

    return SKIP_BODY;


    public int doEndTag() throws JspTagException {

    try {

    pageContext.getOut().write("Hello World!");

    } catch(IOException e) {

    throw new JspTagException("IO Error: " + e.getMessage());


    return EVAL_PAGE;


    public void release() {



    b)Next create a HelloWorldTag.tld file


    <tlibversion> 1.0 </tlibversion>

    <jspversion> 1.2 </jspversion>

    <shortname> hello </shortname>


    Some info here.



    <name> HelloWorld </name>

    <tagclass> HelloWorldTag </tagclass>

    <bodycontent> empty </bodycontent>

    <info> A Hello World tag </info>



    c) Now modify the Web.xml file





    d) Next create a Tg.jsp file

    <%@ taglib uri="HelloWorldTag" prefix="hello" %>


    e) create a warfile

    2) Now create Enterprise module project

    a) Add the above web module project

    b) modify the context root of the Appilication.xml file

    c) create a ear file

    d) Deploy

    e) Run the J2ee Application

    Add comment
    10|10000 characters needed characters exceeded