hi, i deployed a webapplication(wapp1) having input.html and a servlet(Servlet1) in tomcat web server. The form input.html just accepts a text and when u click on the button click the request is sent to servlet in wapp1. The request is redirected to a servlet(Servlet2) which is in a webapplication(wapp2) deployed on weblogic application server...the response is given to the browser using servlet in wapp2 deployed in weblogic server...but when i try to do this i get java.lang.NullPointerException... The code is here...[CODE] import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class Servlet1 extends HttpServlet{ public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException{ String s1=req.getParameter("uname"); …

Member Avatar
Member Avatar
-1 forum 2

Which is the most efficient way of creating a string object in java? [icode]String s="helo";[/icode] or [icode]String s=new String("helo");[/icode] in terms of memory usage? Thanks in advance...

Member Avatar
Member Avatar
+0 forum 4

Why java doesn't support multiple inheritance?thank you....

Member Avatar
Member Avatar
-3 forum 10

If a class doesnt override toString() method and tries to print out the object like this: //some class [code] public class SomeClass1{ int x=4; } //another class class DemoOftoString { public static void main(String[] args) { SomeClass1 o=new SomeClass1(); System.out.println(o); } } [/code] output:SomeClass1@hex version of object's hash code ------------------------------------------ But when a collection object is called with collectionobject.toString() it returns the values...but it doesnt return classname@hex value of objects hash code..instead it return values..... Can anyone help with this....thanks regards, Fardoon.

Member Avatar
Member Avatar
+0 forum 3

can anyone explain what is a lightweight application?....Thanks

Member Avatar
Member Avatar
+0 forum 1

Hi, I have a doubt here, plz go thru the code snippet here: Statement st=con.createStatement(); ResultSet rs=st.executeQuery("select * from emp"); Statement and ResultSet are interfaces. executeQuery() method of Statement interface returns a ResultSet object here. That means defnitely Statement should implement ResultSet interface methods to return a ResultSet object, but Statement is an interface, it cldnt implement another interface. Can anyone please clarify this.....thanks

Member Avatar
Member Avatar
+0 forum 1

The End.