soven rout

Greenhorn
+ Follow
since Feb 19, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by soven rout

hii,

Actually I am new in java, as far as I know the daemon thread is the thread that is killed by the JVM.I think we should not worry about the termination of the thread scheduler as all the operations are managed by the JVM itself. Please let me know whether Thread Scheduler is a daemon thread or not and another question is can we get the instance of the thread scheduler so that using the method isDaemon() we can confirm about its Daemon.Thanks in advance.Kindly make the correction in the above statement if find anything bugged .
web.xml

<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>



In the struts application even if I have user correct servlet class still it is showing the error as
"INFO: Servlet action is currently unavailable" and not getting Forwarded as per my requirement.

struts-config.xml

still it is not forwarded nor to the userConsole.jsp page neither to the adminConsol.jsp page just showing the error as:

HTTP Status 404 - Servlet action is not available


Please help me out.
12 years ago

A servlet is not a "program". It is a component of a deployed Web Application that presents a service method, which (usually) routes an incoming URL request to a secondary method such as doGet() or doPost().

The servlet operates when the container obtains a thread from the container's Thread Pool and runs it with a request to invoke the servlet's service() method. So, yes, servlets must be thread-safe as must any code that they invoke.

Being "thread-safe", however, does not give one license to lock the servlet for long periods of time, nor may the servlet spawn secondary threads for long-running tasks. There are tricks to managing such things, but explaining them is for another time.


thanks Tim Holloway for your concern .I'm a greenhorn and these things helped me a lot.
12 years ago
Even if I had set the class path for servlet API still while compiling it is showing the error that showing that

AdditionServlet.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
AdditionServlet.java:3: cannot find symbol
symbol: class GenericServlet
public class AdditionServlet extends GenericServlet
^
AdditionServlet.java:5: cannot find symbol
symbol : class ServletRequest
location: class AdditionServlet
public void service(ServletRequest request,ServletResponse response)throws IOException{
^
AdditionServlet.java:5: cannot find symbol
symbol : class ServletResponse
location: class AdditionServlet
public void service(ServletRequest request,ServletResponse response)throws IOException{
^
4 errors
Hey guys I'm correct as far I know but can't find out the cause.Please give the reason for the Error.
Thanks in adv.
12 years ago
How to implement singleton concept in servlet?
12 years ago
Can any one guide me about the voucher and the test sponsor in India,and any help if you know can possibly help a new com-mer in this certification process.
Please help me out
Can any one help me to know how much does it cost to appear SCJP/OCJP exam.
I am preparing for the certification ,any suggestion regarding this is most welcome.
sorry even if after implementing the servlet class ,the 404 error is coming and no change in the error and I don't get the "Hello Web World " in the tomcat console .
12 years ago
I think every thing is ok abt deployment descriptor and there is no need of the lib files ,only the folder lib is enough.
12 years ago


the xml page is:-


the following web-component is not getting executed and shoeing error 404
as follows
HTTP Status 404 - /helloworldapplication/hello

type Status report

message /helloworldapplication/hello

description The requested resource (/helloworldapplication/hello) is not available

and the folder hierarchy is absolutely correct.
can anyone help me out
thanks
12 years ago
Thanks for the reply ,it is really helpful for preparing for OCJP Certified exam.
Can any one help to provide the syllabus for the ocjp exam for javaSE1.6