ram shyam ravi

Greenhorn
+ Follow
since Sep 20, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by ram shyam ravi

JNI
hi
Can anyone give me complete steps in writing JNI program with example.
I have generated jni.h file but iam unable to include file and create shared library.
bye
Rgds
Ravi Vunnam.
21 years ago
JNI
hi
Can anyone give me complete steps in writing JNI program with example.
I have generated jni.h file but iam unable to include file and create shared library.
bye
Rgds
Ravi Vunnam.
FTP
hi
Can anyone pls send me code developed in servlets to do FTP upload and download.
bye
Rgds
Ravi.
21 years ago
Hi
What are .bat files and how to run our own .bat files and execute them.
bye
Rgds
Ravi.
21 years ago
JTA
Hi
When all the Application servers are multithreaded then why to use JavaTransation API
to uniquely identify each client transaction.
bye
Rgds
Ravi.Vunnam.
21 years ago
jsp
how to implement an interface in JSP file.
I mean where and how to use implements keyword in JSP file to implement 1,2 or more interfaces.
bye
Rgds
Ravi.Vunnam.
21 years ago
JSP
jsp
Why in @page attribute if we have extends attribute value thread its throwing error.
ex:
<%@ page language="java" extends="thread" import="java.util.*,java.net.*" %>
bye
Rgds
Ravi.Vunnam.
21 years ago
JSP
hi
Is there any editor that provides Drag and Drop facility in Swings.
bye
Rgds
Ravi Vunnam.
21 years ago
jsp
Hi
Pls go through the foll code.
Iam creating a custom defined tag and calling in my JSP.
The taglibclass
import javax.servlet.jsp.*;
import javax.servlet.*;
public class taglibclass extends javax.servlet.jsp.tagext.TagSupport
{
public int doStartTag() throws JspException
{
return 1;
}
}
The .tld file
<?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" >
<taglib>
<tlibversion>1.0</tlibversion>
<jspversion>1.1</jspversion>
<shortname>examples</shortname>
<uri>/Web-inf/classes</uri>
<info>An example tag library</info>
<tag>
<name>size</name>
<tagclass>taglibclass</tagclass>
<info>Works out how large a file, pointed to by a URI, is in bytes</info>
</tag>
</taglib>
And web.xml file
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 1.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>

<taglib>
<taglib-uri>
/Web-inf/classes
</taglib-uri>
<taglib-location>
/Web-inf/test.tld
</taglib-location>
</taglib>
</web-app>

The JSP file where iam calling custom tag
<html>
<%@ taglib uri="/Web-inf/classes" prefix="examples" %>
<body>
</body>
</html>
With out defining the tag itself its not recognising the uri.
I have set the docroot for weblogic as myserver/servletclasses and i have created this web-inf dir in that and kept taglib class file in classes dir of web-inf dir.And i kept web.xml,.tld files in web-inf dir.And JSP file in myserver/servletclasses dir.
Pls correct my code..
bye
Rgds
Ravi Vunnam.
21 years ago
JSP
ejb
hi
In weblogic 5.1 i want to know the diff between setting a class path and document root.
Whats the diff between setting a document root and classpath variable in weblogic.properties file.
bye
Rgds
Ravi.
21 years ago
jsp
hi
I want a sample example as how to use "extend" attribute of <%@page %> directive..And also pls explain me the scenario of extending a thread class in the extend attribute for a jsp file.
bye
Rgds
Ravi.
21 years ago
JSP
hi pls go through foll code and help me out in session tracking..
This is a ShoppingCart.java file
package test;
import java.util.*;
public class ShoppingCart
{
Hashtable ht;
public ShoppingCart()
{
ht=new Hashtable();
}
public void add(String item)
{
ht.put("item",item);
System.out.println("from shoppincart.java file");
System.out.println(ht.get("item"));

}
public void remove(String item)
{
ht.remove(item);
}
public void getItem()
{
System.out.println(ht.get("item"));
Enumeration e=ht.keys();
System.out.println(e.hasMoreElements());
while(e.hasMoreElements())
{
String s=(String)e.nextElement();
System.out.println(ht.get(s)+"getitems value" );
}
}
}
Here in this below JSP file iam adding a string ravi
<jsp:useBean id="shoppingcart" scope="session" class="test.ShoppingCart" />
<%
HttpSession cartsession=request.getSession(true);
ShoppingCart cart=new ShoppingCart();
cartsession.putValue(cartsession.getId(),cart);
shoppingcart.add("ravi");
System.out.println("after calling add method");
%>
Here in another JSP iam coding to get the value from session.
try
{
HttpSession cartsession = request.getSession(true);
out.println("before entering");
ShoppingCart cart=(ShoppingCart)(cartsession.getValue(cartsession.getId()));
out.println("after entering");
cart.getItem();
out.println("from viewcart.jsp");
}
catch(Exception e){out.println(e.getMessage()+"\n"+"error");}
Iam getting a null value from this.
Can u pls help me in this..
Rgds
RaviVunnam.
21 years ago
hi pls go through foll code and help me out in session tracking..
This is a ShoppingCart.java file
package test;
import java.util.*;
public class ShoppingCart
{
Hashtable ht;
public ShoppingCart()
{
ht=new Hashtable();
}
public void add(String item)
{
ht.put("item",item);
System.out.println("from shoppincart.java file");
System.out.println(ht.get("item"));

}
public void remove(String item)
{
ht.remove(item);
}
public void getItem()
{
System.out.println(ht.get("item"));
Enumeration e=ht.keys();
System.out.println(e.hasMoreElements());
while(e.hasMoreElements())
{
String s=(String)e.nextElement();
System.out.println(ht.get(s)+"getitems value" );
}
}
}
Here in this below JSP file iam adding a string ravi
<jsp:useBean id="shoppingcart" scope="session" class="test.ShoppingCart" />
<%
HttpSession cartsession=request.getSession(true);
ShoppingCart cart=new ShoppingCart();
cartsession.putValue(cartsession.getId(),cart);
shoppingcart.add("ravi");
System.out.println("after calling add method");
%>
Here in another JSP iam coding to get the value from session.
try
{
HttpSession cartsession = request.getSession(true);
out.println("before entering");
ShoppingCart cart=(ShoppingCart)(cartsession.getValue(cartsession.getId()));
out.println("after entering");
cart.getItem();
out.println("from viewcart.jsp");
}
catch(Exception e){out.println(e.getMessage()+"\n"+"error");}
Iam getting a null value from this.
Can u pls help me in this..
Rgds
RaviVunnam.
21 years ago
Whats the diff between Mailservice and Messaging service and give one server name each as example to me.
Bye
Rgds
Chow.
21 years ago