karthik suresh

Greenhorn
+ Follow
since Jul 01, 2001
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 karthik suresh

hi,
check this link
http://jakarta.apache.org/velocity/casestudy1.html
it is a case study comparing jsp with velocity.
But i still agree with Jeroen it is better to use an existing technology,
just think of the time and effort spent to learn and implement a new technology .Furthermore there will be a lot of developers who use the existing and mature technology so u can expect a lot of people to help u if u are stuck at some point in ur project.
regards,
karthik
19 years ago
JSP
You can use tomcat for Jsp and servlets,but for EJBs u need a J2ee application server.
Weblogic,Websphere and Jboss are good examples.
It is better to use Jboss which is open source and free.
try it out if u want to learn EJB.
url is www.jboss.org
What is the difference between template engines like Velocity,WebMacro,FreeMarker etc., and JSP.
which technology is superior?
Please enlighten.
Thank You...
21 years ago
JSP
Hi people,
There is a problem with servlet reading images in database.
Database used :Ms-Access
Exception is:[ Microsoft ][ODBC Driver Manager]Invalid cursor state
Code:
************************************************
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Dbreader extends HttpServlet
{
Connection con;
public void init(ServletConfig config) throws ServletException
{
super.init(config);
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc dbc:jspdata");
}
catch(Exception e)
{System.out.println("Exception is!"+e);
}
}
public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
{
try{
res.setContentType("image/gif");
ServletOutputStream out=res.getOutputStream();
Statement st=con.createStatement();
ResultSet rs=st.executeQuery("select * from ImageTable where imageid=1");
BufferedInputStream gifData=new BufferedInputStream(rs.getBinaryStream("Image"));
System.out.println("value of gif"+gifData.toString());
byte buf[]=new byte[4*1024];
int len;
while((len=gifData.read(buf,0,buf.length))!=-1)
{out.write(buf,0,len);
}
}
catch(Exception e)
{System.out.println("Exception !"+e);}
}
}
Please help me!
Thanx in advance...
21 years ago
hi,
first learn ejb using j2eesdk 1.3. learn to develop and deploy ejb's
using it.
Then move to an application server.
if u are working in an office then u can use weblogic to learn,
since the office might have a licensed copy.
Weblogic has a 30 days evaluation period and expires after that.
On the other hand,if u are learning from home,
then go for either Jboss,Orion or Allaire Jrun Developer version.
These are not evaluation versions so no problem.
Of these 3,i think Jrun has the best documentation.
hi ,
i am doing a simple ejb program which has to print hello on console.
i have compiled the home interface,remote interface and the bean successfully.
i have added the classes to make the jar file and set up the JNDI name.
but when i am deploying ,i am getting the following error:
"There was a deployment error.java.rmi.ServerException: RemoteException occured in sever thread; nested exception is: java.rmi.RemoteException: Error saving/opening" This error pops up as a message box during the "Deployment Progress Screen". The main window states: "Deployment Error: Bad mapping of key {0} to class {1}; not found: com.sun.enterprise.deployment.xml.ApplicationNode"
i am using jdk1.2 and
j2eesdk 1.2 version.
please help, i'm not able to make heads or tails of it.
this is the output of the results.txt file
***********************************************************
No Test Run. Fix error before continuing.
Error: ** Error trying to process file: Hello.ear
Check the Hello.ear and META-INF/application.xml for matching content validity: Bad mapping of key {0} to class {1}, not found: com.sun.enterprise.deployment.xml.ApplicationNode.
***********************************************************
thanks in advance .