manishkumarlal cs

Greenhorn
+ Follow
since Oct 25, 2005
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 manishkumarlal cs

I am trying to execute this webflow



BUT GETTIN THIS ERROR WHICH I AM UNABLE TO FIGURE OUT

13 years ago
Thanks

I have deleted the line
responseOutputStream.close();

But still its giving the same error.
13 years ago
JSP
Hi,
I am trying this code to generate captcha and provide the user to enter the values in text field.
The Captcha is appearing,but the text input fields are not appearing.
I am getting this error java.lang.IllegalStateException: getOutputStream() has already been called for this response

Here is the JSP

And the error

equest.getSession().getId()C26FB56BC507153AE418591175866518
Apr 20, 2010 11:12:09 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:610)
at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)
at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)
at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:188)
at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:118)
at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:77)
at org.apache.jsp.TestR_jsp._jspService(TestR_jsp.java:158)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)

Can anyone help?
13 years ago
JSP
Hi,
I have created a web service, the xsd contains one element thats of type xs:ID. On the client side i am setting the request object, although all the attributes gets the value assigned, but the value corresponding to xs:ID is not set and giving NULL.

Can anyone help me in this regard.

Thanks
Manish
16 years ago
whats the different between
String s = "abc";
and
String s = new String("abc");
16 years ago
Hi,
I need to execute a batch/transaction having a set of statements.I need to commit those statements which are executed successfully and the rest should be rolled back,is there any way to do it in java?

Manish
Thank you,
Can you please elaborate on this.
17 years ago
Please check the following code

package Inheritance;

public class TestInheritance1 {
public static void main(String[] args)
{
A A1 = new A();
B B1 = new B();


A1 = B1;
A1.valueInt();
B1.valueInt();
System.out.println("........."+A1.i);
System.out.println("........."+B1.i);

}

}

class A
{
int i=0;

public void valueInt()
{

System.out.println("Value of i from class A:" + i);
}
}

class B extends A
{
int i = 5;
public void valueInt()
{

System.out.println("Value of i from class B :" + i);

}


}

Its giving the o/p as:

Value of i from class B :5
Value of i from class B :5
.........0
.........5

When we have assigned A1=B1, then why A1.i and A1.valueInt() are giving different values?
17 years ago
Can we implement multiple inheritance in java?
Suppose we have two classes A and B.
We want a new Class C, having some properties and behaviour from Class A and Class B.If we cant,then can we implement it if A,B,C are interfaces?
18 years ago
Hi,
I want to learn EJB,i have prior knowledge of core java only.
I dont know Servlets/JSP.Is it necessary to know servlets and JSP before going for EJB,if yes then to what extent.

Regards
Manish