Jakarta Datagrid Taglibs and Servlet 2.4

Dear All,
Please help me with this situation
we would require to have this Jakarta Datagrid taglib (with the servlet 2.2 support) in my web application, but my web-applications uses servlet 2.4 version.
If we change my servlet version to 2.2 for the benefit of Datagrid, we lose JSTL, Expression Language support.
we got struck here and we are not familiar with struts and jsf, where we came to know the availability of datagrid using these.
Kindly requesting you to help us to solve this issue or guide us to a datagrid control works servlet 2.4 version.
I am not a programmer, i am writing this message on behalf of my programmers (freshers). Please do guide us.
thanking you,
S. Sithi Vinayagam

dear all,
why i am not getting any response from you all,
Is this a common question, that will not be anwered any more
or
is there is a better way to ask this type of help from all the developers over there.
Kindly i am requesting you once again to suggest me a better solution (not any commercial soultions) with this type of Data Grid solution for my web application

Similar Messages

  • Deploying a WAR file containing .jsp and servlets (also uses JNI)

    Deploying a WAR file containing .jsp and servlets (also uses JNI) on Windows 2000
    We had problems making it initially work on Sun ONE Web Server 6.0 Service Pack 1 because of lack of good iPlanet Web
    Server documentation on deploying such files.
    This is how we went about it:
    1) Make one of the servlet and JSP (must call another Java Class) web application (.war) examples work with iPlanet Web
    Server.
    C:\iPlanet\Servers\plugins\servlets\examples\web-apps\HelloWorld\HelloWorld.war
    and
    C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
    a) Go to your Web Server Administration to deploy the application using GUI Web Application Deploy.
    (We usually use command line, we experienced some issues with the GUI version, but maybe it is fixed in the new Web Server
    service packs)
    From browser, open http://yourserver:8888/
    Click on Select a Server:Manage
    Click on Virtual Server Class
    Click on https-yourserver
    Click on the Web Applications Tab
    Then, click on Deploy Web Application
    Enter the following -
    WAR File On: Local
    WAR File Path: C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
    Application URI: /jakarta
    Installation Directory: c:\iPlanet\examples\jakarta-examples
    By clicking on OK it deployed the application.
    I can verify that it is deployed by selecting "Edit Web Applications" and I see the following entry:
    Edit     /jakarta     c:/iPlanet/examples/jakarta-examples
    Also, c:/iPlanet/examples/jakarta-examples should have the similar following directory structure ..
    - [images]
    - [jsp]
    - index.html
    - [servlets]
    - [META-INF]
    - [WEB-INF]
    - [classes]
    - [tlds]
    - web.xml
    - index.html
    I restarted the server and accessed it using the following URL from my IE browser:
    http://yourserver/jakarta/index.html
    Then I clicked on the JSP Examples and tried some JSP examples.
    b) Alternatively, you can also deploy the same example from the command-line.
    Make sure C:\iPlanet\Servers\bin\https\httpadmin\bin\ is in your path
    wdeploy deploy      -u /jakarta
              -i yourserver
              -v https-yourserver
              -d c:\iplanet\examples\jakarta-examples
              C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
    Restart the web server (I don't think you have to restart, but .. might as well).
    2)Deploy your web-application
    My Foo.war has the following structure.
    You can use jar tf Foo.war to look at the file contents from command line (assuming you have JDK installed and the bin is
    in your PATH)
    Foo.war
    - [META-INF]
    - [WEB-INF]
    - web.xml
    - [classes]
    - Bar.class
    - MoServlet.class
    - [lib]
    - ThirdParty.jar
    - [natlib]
    - extlib.dll
    - foo.jsp
    Here is our application scenario:
    foo.jsp uses a class call Bar (it is not in any package). The Bar java class uses classes from ThirdParty.jar. The
    ThirdParty.jar in turn uses JNI to load library extlib.dll. foo.jsp also calls /servlet/Mo as well.
    Now to deploy it, do the following:
    (a) Make sure that within foo.jsp, you import the Bar class ( I don't know why you have to do it, but if you don't you get
    JSP compile error).
    <%@page language="java" import="Bar" contentType="text/html"%>
    (b) Check web.xml (for Servlets)
    Within web.xml, make sure you have the following mappings:
    <servlet>
    <servlet-name> MoLink </servlet-name>
    <servlet-class> MoServlet </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name> MoLink </servlet-name>
    <url-pattern> /servlet/Mo </url-pattern>
    </servlet-mapping>
    (c) Deploy the application
    Using command line:
    wdeploy deploy      -u /foo
              -i yourserver
              -v https-yourserver
              -d c:\iplanet\examples\foo-dir
              Foo.war
    (d) Change web-apps.xml file (for picking up ThirdParty.jar)
    It is located in
    C:\iPlanet\Servers\https-yourserver\config
    You should see something similar to following after successful deployment.
    <web-app uri="/foo" dir="C:\iPlanet\examples\foo-dir" enable="true"/>
    Change it to look like following to pick up the ThirdParty.jar
    <web-app uri="/foo" dir="C:\iPlanet\examples\foo-dir" enable="true">
    <class-loader reload-interval="300"
              classpath="C:/iPlanet/examples/foo-dir/WEB-INF/lib/ThirdParty.jar"
              delegate="false"/>
    </web-app>
    (e) Change jvm12.conf file (for JNI)
    It is located in
    C:\iPlanet\Servers\https-yourserver\config
    Add or uncomment the following lines:
    #optional - just helps with instrumenting the jsp and servlet code
    jvm.include.CLASSPATH=1
    jvm.enableDebug=1
    nes.jsp.enabledebug=1
    jvm.trace=7
    jvm.verboseMode=1
    #required for JNI
    java.compiler=NONE
    jvm.classpath=.;C:\JDK1.3.1\lib\tools.jar;C:/iPlanet/Servers/plugins/servlets/examples/legacy/beans.10/SDKBeans10.jar;
    jvm.option=-Xrs
    jvm.option=-Xnoagent
    # not sure if this is needed for iPlanet web server
    jvm.option=-Djava.library.path=C:/iPlanet/examples/foo-dir/natlib/ -Djava.compiler=NONE
    (f) Change magnus.conf file (for JNI)
    We HAD to change this file in order for ThirdParty.jar file to pick up the native C++ code using JNI. Apparently, the
    iPlanet Web Server doesn't pick the Environment Variable Path. Because when we had the directory containing the DLL just
    in Path, it didn't work.
    Change Extrapath directive:
    ExtraPath C:/iPlanet/Servers/bin/https/bin;${NSES_JRE_RUNTIME_LIBPATH}
    to
    ExtraPath c:/iPlanet/examples/foo-dir/natlib;C:/iPlanet/Servers/bin/https/bin;${NSES_JRE_RUNTIME_LIBPATH}
    (g) Apply changes from the Web Server Administration Console and Restart the web server.
    You should be able to see the behaviour that you want from your application.
    http://yourserver/foo/foo.jsp
    Hope this was helpful!!!
    Sonu

    Deploying a WAR file containing .jsp and servlets (also uses JNI) on Windows 2000
    We had problems making it initially work on Sun ONE Web Server 6.0 Service Pack 1 because of lack of good iPlanet Web
    Server documentation on deploying such files.
    This is how we went about it:
    1) Make one of the servlet and JSP (must call another Java Class) web application (.war) examples work with iPlanet Web
    Server.
    C:\iPlanet\Servers\plugins\servlets\examples\web-apps\HelloWorld\HelloWorld.war
    and
    C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
    a) Go to your Web Server Administration to deploy the application using GUI Web Application Deploy.
    (We usually use command line, we experienced some issues with the GUI version, but maybe it is fixed in the new Web Server
    service packs)
    From browser, open http://yourserver:8888/
    Click on Select a Server:Manage
    Click on Virtual Server Class
    Click on https-yourserver
    Click on the Web Applications Tab
    Then, click on Deploy Web Application
    Enter the following -
    WAR File On: Local
    WAR File Path: C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
    Application URI: /jakarta
    Installation Directory: c:\iPlanet\examples\jakarta-examples
    By clicking on OK it deployed the application.
    I can verify that it is deployed by selecting "Edit Web Applications" and I see the following entry:
    Edit     /jakarta     c:/iPlanet/examples/jakarta-examples
    Also, c:/iPlanet/examples/jakarta-examples should have the similar following directory structure ..
    - [images]
    - [jsp]
    - index.html
    - [servlets]
    - [META-INF]
    - [WEB-INF]
    - [classes]
    - [tlds]
    - web.xml
    - index.html
    I restarted the server and accessed it using the following URL from my IE browser:
    http://yourserver/jakarta/index.html
    Then I clicked on the JSP Examples and tried some JSP examples.
    b) Alternatively, you can also deploy the same example from the command-line.
    Make sure C:\iPlanet\Servers\bin\https\httpadmin\bin\ is in your path
    wdeploy deploy      -u /jakarta
              -i yourserver
              -v https-yourserver
              -d c:\iplanet\examples\jakarta-examples
              C:\iPlanet\Servers\plugins\servlets\examples\web-apps\jakarta-examples\jarkarta-examples.war
    Restart the web server (I don't think you have to restart, but .. might as well).
    2)Deploy your web-application
    My Foo.war has the following structure.
    You can use jar tf Foo.war to look at the file contents from command line (assuming you have JDK installed and the bin is
    in your PATH)
    Foo.war
    - [META-INF]
    - [WEB-INF]
    - web.xml
    - [classes]
    - Bar.class
    - MoServlet.class
    - [lib]
    - ThirdParty.jar
    - [natlib]
    - extlib.dll
    - foo.jsp
    Here is our application scenario:
    foo.jsp uses a class call Bar (it is not in any package). The Bar java class uses classes from ThirdParty.jar. The
    ThirdParty.jar in turn uses JNI to load library extlib.dll. foo.jsp also calls /servlet/Mo as well.
    Now to deploy it, do the following:
    (a) Make sure that within foo.jsp, you import the Bar class ( I don't know why you have to do it, but if you don't you get
    JSP compile error).
    <%@page language="java" import="Bar" contentType="text/html"%>
    (b) Check web.xml (for Servlets)
    Within web.xml, make sure you have the following mappings:
    <servlet>
    <servlet-name> MoLink </servlet-name>
    <servlet-class> MoServlet </servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name> MoLink </servlet-name>
    <url-pattern> /servlet/Mo </url-pattern>
    </servlet-mapping>
    (c) Deploy the application
    Using command line:
    wdeploy deploy      -u /foo
              -i yourserver
              -v https-yourserver
              -d c:\iplanet\examples\foo-dir
              Foo.war
    (d) Change web-apps.xml file (for picking up ThirdParty.jar)
    It is located in
    C:\iPlanet\Servers\https-yourserver\config
    You should see something similar to following after successful deployment.
    <web-app uri="/foo" dir="C:\iPlanet\examples\foo-dir" enable="true"/>
    Change it to look like following to pick up the ThirdParty.jar
    <web-app uri="/foo" dir="C:\iPlanet\examples\foo-dir" enable="true">
    <class-loader reload-interval="300"
              classpath="C:/iPlanet/examples/foo-dir/WEB-INF/lib/ThirdParty.jar"
              delegate="false"/>
    </web-app>
    (e) Change jvm12.conf file (for JNI)
    It is located in
    C:\iPlanet\Servers\https-yourserver\config
    Add or uncomment the following lines:
    #optional - just helps with instrumenting the jsp and servlet code
    jvm.include.CLASSPATH=1
    jvm.enableDebug=1
    nes.jsp.enabledebug=1
    jvm.trace=7
    jvm.verboseMode=1
    #required for JNI
    java.compiler=NONE
    jvm.classpath=.;C:\JDK1.3.1\lib\tools.jar;C:/iPlanet/Servers/plugins/servlets/examples/legacy/beans.10/SDKBeans10.jar;
    jvm.option=-Xrs
    jvm.option=-Xnoagent
    # not sure if this is needed for iPlanet web server
    jvm.option=-Djava.library.path=C:/iPlanet/examples/foo-dir/natlib/ -Djava.compiler=NONE
    (f) Change magnus.conf file (for JNI)
    We HAD to change this file in order for ThirdParty.jar file to pick up the native C++ code using JNI. Apparently, the
    iPlanet Web Server doesn't pick the Environment Variable Path. Because when we had the directory containing the DLL just
    in Path, it didn't work.
    Change Extrapath directive:
    ExtraPath C:/iPlanet/Servers/bin/https/bin;${NSES_JRE_RUNTIME_LIBPATH}
    to
    ExtraPath c:/iPlanet/examples/foo-dir/natlib;C:/iPlanet/Servers/bin/https/bin;${NSES_JRE_RUNTIME_LIBPATH}
    (g) Apply changes from the Web Server Administration Console and Restart the web server.
    You should be able to see the behaviour that you want from your application.
    http://yourserver/foo/foo.jsp
    Hope this was helpful!!!
    Sonu

  • Using variable names in the jakarta img taglib

    I am using the jakarta image taglib for manipulating images, it is working fine with static names like this
    <img:image src="xyz.jpg"..etc
    but once I replaced the image name with this scriplet
    <img:image src="<%= book.img %>
    I got noting although I am sure that my scriplet has value but the image didn't show up, any idea
    thank you

    the problem was solved I've used the EL notation instead of scriplet and it worked
    <img:image src="${book.img}..etc
    thank you

  • Jakarta-xsl-taglib

    Hi
              i'm trying to convert a xml-file into html using a xsl-file. to do this
              i'm using the jakarta-xsl-taglib. it's working fine with tomcat. now i
              want to run it on weblogic 5.1 but the only thing i achieve is this
              error message:
              Input XSL; Line 1; Column 1;
              XSL Error: Could not parse Imput XML document!
              XSL Error: SAX Exception
              ...<ServletContext-General> Root cause of ServletException
              javax.servlet.jsp.JspException:
              org.apache.xalan.xslt.XSLProcessorException: The root element is
              required in a well-formed document.
              can somebody help me please?
              Philipp
              

    the files i'm using are in the attachment.
              it would be great if someone could find somehing.
              bye
              philipp
              [test.zip]
              

  • LDAP protection for JSP and Servlets

    Environment: WL 5.1 sp 8 on Solaris 7
    Question: I want to use LDAP Security on my site. Does Weblogic only utilze LDAP
    for servlets. What about my JSP files? And no, I can't protect just a directory
    with iPlanet Web Server because my JSP files are all over my directories and my
    servlets are in my /servlets directory. I need security on some of the jsp files.
    how would I accomplish this?

    Hello
    What do I install in order to create and use .jsp's
    and servlets and jdbc connectivity as well? Is it
    J2SE or J2EE. The answer is "Yes."
    In order to use J2EE, you need J2SE. If you do not feel comfortable with J2SE and programming Java in general (as is suggested by not being able to differentiate between J2SE and J2EE and how to download one/both), J2EE may be a bit complex to get started with.
    My suggestion:
    1) Start Here: http://java.sun.com/learning/new2java/index.html
    2) Download J2SE: http://java.sun.com/j2se/1.5.0/download.jsp choose the JDK 5.0 Update 3
    3) Do a beginners Java Tutorial: http://java.sun.com/docs/books/tutorial/index.html
    4) Read a book, try a lot, get comfortable doing it.
    Then Choose the JDBC:
    http://java.sun.com/docs/books/tutorial/jdbc/index.html
    Then, only after being compfortable in how Java and JDBC work, move to J2EE
    1) Download a Server (examples):
    Full J2EE implementation: J2EE Software Development Kits (SDK)
    Servlet/JSP Engine (Tomcat): http://jakarta.apache.org/site/downloads/downloads_tomcat-5.cgi
    There are others, Tomcat is fairly popular.
    2) Read the server's documentation thoroughly
    3) Read a J2EE tutorial: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
    Note: depending on your server, the above tutorial may only be partially relevant.
    The download section is overwhelming
    and confusing to me :(
    Thanks for any guidance.

  • Difference between web server and servlet container

    I can't able to figure out the techincal difference between web server(such as java web server) and servlet containers(such as jakarta-tomcat).If you please let me know then I will be very thankful to you.

    The web server serves html pages to browsers that request pages. It can also send images, javascript, flash content, and a few other things. When a request comes into the web server for a servlet or jsp, the web server calls on the Servlet container to do THOSE jobs.
    The Servlet container is the execution environment for a jsp or servlet (they are both servlets) to run Java code on the server and do logic.
    So you see, the web server spits out static content, where either no logic is involved, or the client's web browser does the logic. The Servlet container is used for applications that execute code, perform logic, connect to databases, etc.
    So they work together, but are completely separate logically.

  • How is html page outputed when using taglib and xml ?

    Dear all,
              I am a newbie for taglib and xml. Today, when I read some source code of a
              website, I found that there is a entry like
              "%@ taglib uri="/tlds/taglib.tld" prefix="myprefix" %>",
              and some other entries like
              "<myprefix:Content area="<%=contentArea%>" />"
              I opened the specifized file taglib.tld and saw a tag entry named "Content",
              its tagclass is com.mycom.presentation.taglib.ContentTag. Again I opend a
              java class file "ContentTag.java" and saw some setXXX methods and doXXX
              methods. I donot know how is the webpage outputed. Can someone give me a
              detailed description about that? I will greatly appreciate your help.
              Some source code segments are listed as follows:
              test.jsp:
              <%@ taglib uri="/tlds/taglib.tld" prefix="myprefix" %>
              <td>
              <myprefix:Content body="<%=body%>" area="<%=contentArea%>"
              pageName="<%=pageName%>" />
              </td>
              taglib.tld:
              <?xml version="1.0" encoding="ISO-8859-1" ?>
              <!DOCTYPE taglib
              PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
              "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
              <tag>
              <name>Content</name>
              <tagclass>com.myprefix.presentation.taglib.ContentTag</tagclass>
              <bodycontent>JSP</bodycontent>
              <info>An tag which given the screen and element does the right content
              thing!</info>
              <attribute>
              <name>id</name>
              <required>false</required>
              <rtexprvalue>true</rtexprvalue>
              <!--type>String</type-->
              </attribute>
              <attribute>
              <name>pageName</name>
              <required>false</required>
              <rtexprvalue>true</rtexprvalue>
              <!--type>String</type-->
              </attribute>
              <attribute>
              <name>area</name>
              <required>false</required>
              <rtexprvalue>true</rtexprvalue>
              <!--type>String</type-->
              </attribute>
              <attribute>
              <name>body</name>
              <required>false</required>
              <rtexprvalue>true</rtexprvalue>
              <!--type>long</type-->
              </attribute>
              </tag>
              ContentTag.java
              package com.mycom.presentation.taglib;
              import javax.servlet.*;
              import javax.servlet.http.*;
              import javax.servlet.jsp.JspTagException;
              import javax.servlet.jsp.tagext.BodyTagSupport;
              public class ContentTag extends BodyTagSupport {
              private String ......;
              public String ......;
              public ContentTag() {
              super();
              public void setPageName(String pageName) {
              this.pageName = pageName;
              public void setArea(String area) {
              this.area = area;
              public void setSegment(String segment) {
              this.segment = segment;
              if (segment!=null) // && !segment.equals("null")
              this.segment_set = true;
              public void setAdmin(String admin) {
              try{
              this.admin = Boolean.getBoolean(admin);
              } catch (Exception _) {
              debugCategory.debug("Setting admin err " + admin);
              public void setBody(String body)
              try {
              this.body = Long.parseLong(body);
              } catch (NumberFormatException ne) {
              debugCategory.debug("Setting body format err");
              public int doStartTag() {
              if (contentMap == null)
              HttpSession session = pageContext.getSession();
              if (segment==null)
              segment =
              (String)session.getAttribute(Parameters.segment_id);
              if (currentScreen==null)
              currentScreen =
              (String)session.getAttribute(Parameters.currentScreen);
              try{
              StateEngineProxy sep =
              (StateEngineProxy)session.getAttribute("stateMachine");
              ModelManager mm =
              (ModelManager)session.getAttribute("modelManager");
              if (sep == null||mm==null)
              sep = new StateEngineProxy();
              session.setAttribute("stateMachine", sep);
              mm = new ModelManager();
              mm.init(session, sep);
              session.setAttribute("modelManager", mm);
              if (body !=0)
              //content = (ContentAI)
              contentMap.get(Parameters.content_id+Long.toString(body));
              if (content==null)
              debugCategory.debug("Get by Body");
              mm.getContent(body);
              content =
              (ContentAI)session.getAttribute(Parameters.content);
              //contentMap.put(Parameters.content_id +
              Long.toString(body), content);
              file:// pageContext.setAttribute(CONTENT_MAP,
              contentMap, myScope);
              if (pageName!=null&&area!=null &&
              segment!=null&&segment!=""&&area!=""&&pageName!="")
              contentList = (Collection)
              mm.getContentBySegmentPageNameAndArea(segment,
              pageName, area);
              if(contentList!=null){
              Iterator it = contentList.iterator();
              if (it.hasNext()) {
              content = (ContentAI)it.next();
              session.setAttribute(Parameters.content,
              content);
              return EVAL_BODY_TAG;
              return EVAL_BODY_TAG;
              public int doEndTag() throws JspTagException {
              current = SUPPLIERSINFORMATION;
              pageContext.getOut().flush();
              if ( content != null
              && !currentScreen.equals(ScreenNames.CONTENT_LIST_URL)
              && !currentScreen.equals(ScreenNames.CONTENT_EDIT_URL))
              if ( !admin ){
              // include body?
              if
              rentScreen.equals(ScreenNames.CONTENT_NEWS_URL)){ 
              pageContext.getOut().println("<h3>" + content.getSubject() + "<br></h3>");
              pageContext.getOut().println("<!-- Subject[" + content.getSubject() + "]");
              pageContext.getOut().println("OrgID[" + content.getOrgId() + "]");
              pageContext.getOut().println("LogoPath[" + content.getLogoPath() + "]");
              pageContext.getOut().println("PageName[" + content.getPageName() + "]");
              pageContext.getOut().println("Area[" + content.getArea() + "]");
              pageContext.getOut().println("Segment[" + content.getSegment() + "]");
              pageContext.getOut().println("<!--Body[-->" + "<br>" + content.getBody() + "<!--]-->");
              return EVAL_PAGE;
              public int doAfterBody() throws JspTagException {
              return SKIP_BODY;
              public static String shortenLink(String link)
              

    Hi Andy,
              The sequence of operations that happen when a JSP page encounters a Custome Tag are
              1. Find the class associated with the custom tag from the tld.
              2. The set and get methods that u find are for passing  the values for the tag attributes that u may need
              to pass.
              3. The Tag Lib class performs the operation specified and flushes the output to the jsp.
              For further understanding ..u can refer to these sites !!!
              http://java.sun.com/products/jsp/tutorial/TagLibrariesTOC.html
              http://www.weblogic.com/docs51/classdocs/API_taglib.html#intro
              Regards,
              Sundhar Subramanian
              Andy Ping wrote:
              > Dear all,
              >
              > I am a newbie for taglib and xml.  Today, when I read some source code of a
              > website, I found that there is a entry like
              >     "%@ taglib uri="/tlds/taglib.tld" prefix="myprefix" %>",
              > and some other entries like
              >     "<myprefix:Content  area="<%=contentArea%>"  />"
              > I opened the specifized file taglib.tld and saw a tag entry named "Content",
              > its tagclass is com.mycom.presentation.taglib.ContentTag.  Again I opend a
              > java class file "ContentTag.java" and saw some setXXX methods and doXXX
              > methods.  I donot know how is the webpage outputed.  Can someone give me a
              > detailed description about that?   I will greatly appreciate your help.
              > Some source code segments are listed as follows:
              >
              > ----------------
              > test.jsp:
              > ----------------
              > ...
              > <%@ taglib uri="/tlds/taglib.tld" prefix="myprefix" %>
              > ...
              > <td>
              >     <myprefix:Content body="<%=body%>" area="<%=contentArea%>"
              > pageName="<%=pageName%>" />
              > </td>
              > ...
              >
              > ----------------
              > taglib.tld:
              > ----------------
              > <?xml version="1.0" encoding="ISO-8859-1" ?>
              > <!DOCTYPE taglib
              >         PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"
              >  "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
              > ......
              >   <tag>
              >     <name>Content</name>
              >     <tagclass>com.myprefix.presentation.taglib.ContentTag</tagclass>
              >     <bodycontent>JSP</bodycontent>
              >     <info>An tag which given the screen and element does the right content
              > thing!</info>
              >     <attribute>
              >       <name>id</name>
              >       <required>false</required>
              >       <rtexprvalue>true</rtexprvalue>
              >       <!--type>String</type-->
              >     </attribute>
              >     <attribute>
              >       <name>pageName</name>
              >       <required>false</required>
              >       <rtexprvalue>true</rtexprvalue>
              >       <!--type>String</type-->
              >     </attribute>
              >     <attribute>
              >       <name>area</name>
              >       <required>false</required>
              >       <rtexprvalue>true</rtexprvalue>
              >       <!--type>String</type-->
              >     </attribute>
              >     <attribute>
              >       <name>body</name>
              >    <required>false</required>
              >    <rtexprvalue>true</rtexprvalue>
              >       <!--type>long</type-->
              >     </attribute>
              >   </tag>
              > ......
              >
              > ----------------
              > ContentTag.java
              > ----------------
              > package com.mycom.presentation.taglib;
              >
              > import javax.servlet.*;
              > import javax.servlet.http.*;
              > import javax.servlet.jsp.JspTagException;
              > import javax.servlet.jsp.tagext.BodyTagSupport;
              > ...
              >
              > public class ContentTag extends  BodyTagSupport {
              >     private String ......;
              >     public String ......;
              >     ......
              >
              >     public ContentTag() {
              >         super();
              >     }
              >
              >     public void setPageName(String pageName) {
              >         this.pageName = pageName;
              >     }
              >
              >     public void setArea(String area) {
              >         this.area = area;
              >     }
              >
              >     public void setSegment(String segment) {
              >         this.segment = segment;
              >         if (segment!=null) // && !segment.equals("null")
              >         {
              >             this.segment_set = true;
              >         }
              >     }
              >
              >     public void setAdmin(String admin) {
              >         try{
              >             this.admin = Boolean.getBoolean(admin);
              >         } catch (Exception _) {
              >             debugCategory.debug("Setting admin err " + admin);
              >         }
              >
              >     }
              >     public void setBody(String body)
              >     {
              >         try {
              >          this.body = Long.parseLong(body);
              >         } catch (NumberFormatException ne) {
              >             debugCategory.debug("Setting body format err");
              >         }
              >     }
              >
              >     public int doStartTag() {
              >             if (contentMap == null)
              >             {
              >             }
              >    HttpSession session = pageContext.getSession();
              >             if (segment==null)
              >             {
              >                 segment =
              > (String)session.getAttribute(Parameters.segment_id);
              >             }
              >             if (currentScreen==null)
              >             {
              >                 currentScreen =
              > (String)session.getAttribute(Parameters.currentScreen);
              >             }
              >             try{
              >                 StateEngineProxy sep =
              >                     (StateEngineProxy)session.getAttribute("stateMachine");
              >                 ModelManager mm =
              > (ModelManager)session.getAttribute("modelManager");
              >                 if (sep == null||mm==null)
              >                 {
              >                     sep = new StateEngineProxy();
              >                     session.setAttribute("stateMachine", sep);
              >                     mm = new ModelManager();
              >                     mm.init(session, sep);
              >
              >                     session.setAttribute("modelManager", mm);
              >                 }
              >                 if (body !=0)
              >                 {
              >                     //content = (ContentAI)
              >                     //
              > contentMap.get(Parameters.content_id+Long.toString(body));
              >                     if (content==null)
              >                     {
              >                     debugCategory.debug("Get by Body");
              >                     mm.getContent(body);
              >                     content =
              > (ContentAI)session.getAttribute(Parameters.content);
              >
              >                     //contentMap.put(Parameters.content_id +
              > Long.toString(body), content);
              >                     file:// pageContext.setAttribute(CONTENT_MAP,
              > contentMap, myScope);
              >                     }
              >                 }
              >                 if (pageName!=null&&area!=null &&
              >                     segment!=null&&segment!=""&&area!=""&&pageName!="")
              >                 {
              >                      contentList = (Collection)
              >                          mm.getContentBySegmentPageNameAndArea(segment,
              > pageName, area);
              >                      if(contentList!=null){
              >                         Iterator it = contentList.iterator();
              >                         if (it.hasNext()) {
              >                             content = (ContentAI)it.next();
              >                             session.setAttribute(Parameters.content,
              > content);
              >                             return EVAL_BODY_TAG;
              >                         }
              >                      }
              >                 }
              >                 ...
              >            }
              >   return EVAL_BODY_TAG;
              >     }
              >
              >     public int doEndTag() throws JspTagException {
              >         current = SUPPLIERSINFORMATION;
              >         pageContext.getOut().flush();
              >         if ( content != null
              >             && !currentScreen.equals(ScreenNames.CONTENT_LIST_URL)
              >             && !currentScreen.equals(ScreenNames.CONTENT_EDIT_URL))
              >         {
              >             if ( !admin  ){
              >             // include body?
              >                 if
              > rentScreen.equals(ScreenNames.CONTENT_NEWS_URL)){
              >                     pageContext.getOut().println("<h3>" + content.getSubject() + "<br></h3>");
              >                 }
              >                 pageContext.getOut().println("<!-- Subject[" + content.getSubject() + "]");
              >                 pageContext.getOut().println("OrgID[" + content.getOrgId() + "]");
              >                 pageContext.getOut().println("LogoPath[" + content.getLogoPath() + "]");
              >                 pageContext.getOut().println("PageName[" + content.getPageName() + "]");
              >                 pageContext.getOut().println("Area[" + content.getArea() + "]");
              >                 pageContext.getOut().println("Segment[" + content.getSegment() + "]");
              >                 pageContext.getOut().println("<!--Body[-->" + "<br>" + content.getBody() + "<!--]-->");
              >             }
              >         }
              >  return EVAL_PAGE;
              >     }
              >
              >     public int doAfterBody() throws JspTagException {
              >         return SKIP_BODY;
              >     }
              >
              >     public static String shortenLink(String link)
              >     {
              >        ...
              >     }
              > }
              

  • Need some help with Slow Downs in Java3D and Servlets

    Hi,
    I realize that there is a separate forum for Java 3D, but I posted there, and did not get any response. This is kinda the crux of my program, so I would like to invite anybody on this forum with knowledge of Java 3D and servlets to give it a stab. Between this post and that one, there are TWENTY duke dollars up for grabs.
    Thanks.
    http://forum.java.sun.com/thread.jspa?threadID=603198

    Let me have an educated guess.
    You calculated the time elapsed before sending in a server request - and at that point you have you updated timeLastStateChange yet, which means by the time of the next calculation of time elapsed this apparent delay is not counted in, hence the slow down in animation rate.
    Hope this helps~
    Alex Lam S.L.

  • Web service and servlets in the same project...web.xml?

    Hello, I have a problem with my web service.
    I have a server, which displays a web service. I programmed this service with JAXRPC.
    I have a client, in another directory. I succeded in compiling, deploying and running the web service.
    The problem is that after I tried to integrate this service in an existing project. This project contains servlets. In these servlets, I'm using sessions.
    These servlets are on the same side as the server of the web service. Because of the implementation of my code, I'd like to use in the class that represents the server of the service, the same session as the one I'm using in the servlets.
    But of course, it's not working by itself. I know there's something to do with the web.xml files.
    The thing is that I created a web.xml file for the service, and another for the servlets.
    I was thinking of joining both of them in one xml file, but everything crashes then...
    Could someone tell me how to create a project with a web service and servlets, and mostly how to configure the xml file??
    Thanks for any help
    Philippe

    Hello, I have a problem with my web service.
    I have a server, which displays a web service. I programmed this service with JAXRPC.
    I have a client, in another directory. I succeded in compiling, deploying and running the web service.
    The problem is that after I tried to integrate this service in an existing project. This project contains servlets. In these servlets, I'm using sessions.
    These servlets are on the same side as the server of the web service. Because of the implementation of my code, I'd like to use in the class that represents the server of the service, the same session as the one I'm using in the servlets.
    But of course, it's not working by itself. I know there's something to do with the web.xml files.
    The thing is that I created a web.xml file for the service, and another for the servlets.
    I was thinking of joining both of them in one xml file, but everything crashes then...
    Could someone tell me how to create a project with a web service and servlets, and mostly how to configure the xml file??
    Thanks for any help
    Philippe

  • Need help in JSP and Servlets

    Hi friends,
    [please forgive me if i am posting this in the wrong forum, all seems same to a fresher]
    Now, to my problem..i need a suggestion, a way or a method to implement the following!
    I am supposed to create a servlet that reads data from oracle database. Once i retrive the data (for example: 6 rows of a table having 4 attributes), i am supposed to pass this data to a JSP page where the data has to be formatted and displayed properly. If i call the same servlet from a different JSP, i should be able to access the data in that JSP and format it in a different way. How do i pass the data to JSP? what method i can use to achieve this task?
    Note: I already know about PrintWriter pw = response.getWriter(); and then printing the formated HTML page..but i want to keep the formatting to JSP part and send only the data part that i can access in JSP
    Thanks in adavance

    arun_ramachandran wrote:
    [please forgive me if i am posting this in the wrong forum, all seems same to a fresher]Then you should learn to be more observant - after all, we have JSP and Servlet fora, further down the list. :)
    I am supposed to create a servlet that reads data from oracle database. Once i retrive the data (for example: 6 rows of a table having 4 attributes), i am supposed to pass this data to a JSP page where the data has to be formatted and displayed properly. If i call the same servlet from a different JSP, i should be able to access the data in that JSP and format it in a different way. How do i pass the data to JSP? what method i can use to achieve this task? You can store the data in your session object. You can even use JavaBeans and the jsp:usebean tag.
    [http://java.sun.com/products/jsp/tags/11/syntaxref11.fm14.html]
    Note: I already know about PrintWriter pw = response.getWriter(); and then printing the formated HTML page..but i want to keep the formatting to JSP part and send only the data part that i can access in JSPA wise approach - I wish more prople woiuld be as thoughtful.

  • How to upload a file into server using j2ee jsp and servlet with bean?

    How to upload a file into server using j2ee jsp and servlet with bean? Please give me the reference or url about how to do that. If related to struts is more suitable.
    Anyone help me please!

    u don't need j2ee and struts to do file uploading. An example is as such
    in JSP. u use the <input> file tag like
    <input type="file"....>You need a bean to capture the file contents like
    class FileUploadObj {
        private FormFile srcFile;
        private byte[] fileContent;
        // all the getter and setter methods
    }Then in the servlet, you process the file for uploading
        * The following loads the uploaded binary data into a byte Array.
        FileUploadObj form = new FileUploadObj();
        byte[] byteArr = null;
        if (form.signFile != null) {
            int filesize = form.srcFile.getFileSize();
            byteArr = new byte[filesize];
            ByteArrayInputStream bytein = new ByteArrayInputStream (form.srcFile.getFileData());
            bytein.read(byteArr);
            bytein.close();
            form.setFileContent(byteArr);
        // Write file content using Writer class into the destination file in the server.
        ...

  • Implement SSL in JSP and servlets

    hi there,
    i needed some help in implementing ssl in JSPs and servlets. My idea was to have a login page and also use it where sensitive data is being sent. I have used the basic socket programming (socket.class and serverSocket.class) in GUI applications using threads to listen and send simultaniously and understand how it works but how do I implement it in JSP and servlets and where do i store the certificate?
    i do know that using SSL sockets is very much the same as using the normal sockets.
    can anyone tell me any useful links or give me a step by step guide how to implement it and which classes to use
    your help would be very much appreciated.
    mani

    hi,
    soory for late reply.
    i think you need to use keytool program in your JDK to generate a certificate signature file and you need to configure the server.xml to open and use the HTTPS port. I have not had any additional info on this but i would assume that you simply enter https:// on the file you wish to load in your form and it should use the HTTPS port provided it can find the certificate which must be stored somewhere in your tomcat web server. i would recommend you see tomcat website or search on google for "ssl support in tomcat".i hav not had time to look into this but i will as soon as i am free from my work load.
    mani

  • How to set classpath to EJB and Servlets

    Hi all,
    How can I add a classpath to EJB and Servlets in Weblogic 6.1, so that that classpath
    can be achieved by both EJB jar and war file? I have deployed a .ear file having
    the jar and war files. Now the EJBs inside the jar file are not reaching the class
    files of the war file and the class files in the war file are not reaching to
    the EJBs. Please let me know at the earliest.
    Atanu

    Hi.
    You might try looking at the petstore example which combines webapps (war files) with
    ejbs in an ear file to see how to do this. It may be a simple config problem.
    Regards,
    Michael
    Atanu Dey wrote:
    Hi all,
    How can I add a classpath to EJB and Servlets in Weblogic 6.1, so that that classpath
    can be achieved by both EJB jar and war file? I have deployed a .ear file having
    the jar and war files. Now the EJBs inside the jar file are not reaching the class
    files of the war file and the class files in the war file are not reaching to
    the EJBs. Please let me know at the earliest.
    Atanu--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • How to setup my computer to run JSP and Servlets

    I want to setup my computer to run JSP and Servlets.
    What kind of Servers and other tool i need to install to run JSP and Servlets.
    Plz, Help me to start my work on JSP.
    Regards,
    Usman Ali

    hello
    JSP and servlet is web programming, may be little bit different to development local application.
    1st, you should have two computers: one is server and the other is local workstation. This server should have a static IP address, that other people can go into your server. Workstation is any computer normal you use it.
    2nd, you need to setup your server in: OS(linux or windows 2000), web server (jrun, apach or Tomcat etc. ), as well as install JDK, servlet.
    3rd, your local workstation just use as programming editor and open a browser to testing, anytime you write your code, then ftp to server to test.
    Reality, you have many technical thing to solve, eg setup web server etc. However, you can write your source code and test it, then open to outside people.
    hope to helpness, if anything don't uderstand, you can post again or send email to me [email protected] Since I just have setup this configuration in my university for my project.

  • Load balancing for JSPs and servlets

    Hi:
              I am using IIS as the proxy server, with the WLS plug-in, to a WLS
              cluster. This provides round robin load balancing just fine. Will it
              provide weight based load balancing if I set 'weblogic.system.weight'
              differently on each server, or is that not relevant for clustering JSPs
              and servlets?
              Sincerely,
              Ashish
              

    Currently the plugins ( for NES, IIS and Apache) just use the round robin
              algorithm. the property
              weblogic.system.weight is used only be weblogic's replica aware clusterable
              RMI/EJB stubs.
              To use this property for your JSP/Servlet load balancing you have to use
              weblogic server as proxy fron-ending your weblogic cluster.
              --Viresh Garg
              Ashish Vimal wrote:
              > Hi:
              > I am using IIS as the proxy server, with the WLS plug-in, to a WLS
              > cluster. This provides round robin load balancing just fine. Will it
              > provide weight based load balancing if I set 'weblogic.system.weight'
              > differently on each server, or is that not relevant for clustering JSPs
              > and servlets?
              > Sincerely,
              > Ashish
              

Maybe you are looking for

  • Issue in Production Core Schema of ATG 10.0.3

    Hi All, I tried to create a schema in Production Core from CIM. The schema created successfully and when I tried to import data , it finished up saying that "No Data to Import". In the table listing, none of the DCS tables are found. I am using ATG 1

  • Many times my iphone 3 closing suddenly while tle battery is 60 or 80%

    Many times my iphone 3 closing suddenly while tle battery is 60 or 80%

  • WAR deployed on 10.3.1.0 throws NoClassDefFoundError

    Hello, I made a little web application using NetBeans that contains a web service. Now I try to deploy this app on a Weblogic 10 server. The app is configured as JEE 5 app with JDK 5. On a Windows and Linux machine running version 10.3.3.0 it works f

  • No Setup assistant?

    I have just opened my new MacBook Pro laptop and when I turned it on for the first time there was no setup assistant. A program called Phoenix CE loaded and started running some technical diagnostics. The OS was 10.5.7 not 10.6 Snow Leopard as I was

  • PS Elements 10 and Aperture 3

    When I try to open a new photos in PS Elements that is located in Aperture, I get a programing error "Could not complete your request because of program error" Any idead? I think it is more fo a PS issue but not sure. I can open a folder outside of P