Srinivasan Madhavan

Greenhorn
+ Follow
since Sep 21, 2004
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 Srinivasan Madhavan

Ensure that the lib directory under WEB-INF has the following jars:
commons-beanutils
commons-digester
commons-fileupload
commons-logging
commons-validator
jakarta-oro
struts

Refer:
http://struts.apache.org/userGuide/installation.html

Regards,
Srini
14 years ago
Hi,

I have a controller associated with a jsp page. I understand that on any event( submit) from the jsp page, the controller is called. Will the controller come into play before the page loads also?

Thanks in advance,
Srini
Hi,

Can anyone help on the difference between URL Encoding and URL Encrypting? Also I am unable to difference between URI and URL.

Thanks,
Srini
Hi,

Can you please guide me as to which exam I must take 310-081 or 310-082 ? I have already completed SCJP.

Thanks,
Srini
Hey I am sorry , the default implementation for doGet() method is :

protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException
{
String protocol = req.getProtocol();
String msg = lStrings.getString("http.method_get_not_supported");
if(protocol.endsWith("1.1"))
resp.sendError(405, msg);
else
resp.sendError(400, msg);
}

So I guess if you donot override this method a 400 error message should appear.

Regards,
Srini
Hi,

You would have a better idea if you have a look at the HttpServlet Class. Here the default implementations of all the Http methods are empty. So the code should compile fine and nothing will be printed.

Regards,
Srini
Hi,

Can anyone throw light as to where in TOMCAT, it is specified that the default web-app is the ROOT directory? For instance in Weblogic6.1 it is the "config" file in C:\bea\wlserver6.1\config\mydomain.

Thanks,
Srini
Hi Aparna,

Just check the method attribue of the form from where you get the parameters ( 'flyfrom; ....etc). May be the form method is a POST and hence your servlet may not have called the doGet() method at all !!!

If this is not the case then try the age old method of giving System.out.println() inside the doGet() methid and find out where thy problem is

Best Regards,
Srini
Hi,

I observe something weird with the HTTP POST method. I have a html form with POST given as the method attribute in the <form> tag. The action attribute has a passive resource (say test.html) and submitting the form fetches the passive resource. I was all along thinking that the POST method was for the purpose of Active resources ( Servlets & JSPs) only. Besides I didn't find the logic in allowing a passive resource to be associated with the POST method when we have the GET method for it.

I tried this on a Tomcat container.

Thanks in advance,
Srini
15 years ago
Hi,

I observe something weird with the HTTP POST method. I have a html form with POST as the method. The action attribute has a passive resource (say test.html) and submitting the form fetches the passive resource. I was all along thinking that the POST method was for the purpose of Active resources ( Servlets & JSPs) only. Besides I didn't find the logic in allowing a passie resource to be associated with the POST method when we have the GET method for it.

Thanks in advance,
Srini