Raghavendra Nittur

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

Recent posts by Raghavendra Nittur

Yes. its Bert bates.

Sorry for Spelling mistake
18 years ago
Hi bear Bates,


I planned to buy your Head First Series,
1. Head First Servlets and JSP
2. Head First EJB

Are there any plan from your side to release latest edition of these books shortly?

If so i can wait for the Latest ones.

Thanks And Regards,
Raghav
18 years ago
Thanks ben,

Am able to invoke resource in another app.

corssContext is Working......!!!

Regards, Raghav
18 years ago

Originally posted by Jigar Naik:
<servlet-class>com.tg.servlets.Controller</servlet-class>



make sure your servlet is in right directory.
I mean,
your_application_directory/WEB-INF/classes/com/tg/servlets/
18 years ago
Its a statement. I tried am getting the parameter value without the encoding procedure you metioned.
18 years ago

Originally posted by Ulf Dittmer:

If the "#" is actually part of the parameter, then the URL needs to be encoded by the java.net.URLEncoder.encode method.
[ March 15, 2007: Message edited by: Ulf Dittmer ]




Hi Ulf,

without encoding URL using the java.net.URLEncoder.encode method am able to get the parameter preceeding with '#'.

Am new to Servlets & JSP please Correct me if am going wrong.

Regards, Raghav
18 years ago

Originally posted by K Kiran Kumar:
It's not mandatory to override init() method.


Overriding of any method is not method is not mendatory unless the method is not implemented in super class ( abstract class)

Originally posted by K Kiran Kumar:

In the absense of this method, how can we get the context instance? Can we get in doGet() or doPost() methods??



If are not overriding, then it doesn't mean that method will be absent. Container calls the methods defined in the super class Heirarchy.
Container takes care of creating instance of Context.

Your Self find which class you extend in your servlet and where exactly the Life cycle functions are defined ( init(), Service() and destory() )

Regards, Raghav
18 years ago

Originally posted by Srinivasan thoyyeti:
Hi Maneesh,

If you don't find out of your context, I got a small doubt...

Where this URL supposed to go, i mean without any port number!
If we don't specify the Port then it will go to HttpServer(80). but how can it reach /page?

http://localhost/host/page.do?abc=#5




I agree with you. # in begining doesn't matter.

Hi Maneesh,

give port number, 8080 after localhost.

i mean http://localhost:8080/host/your welcome page name

Regards, Raghav
18 years ago
Great.....!!!

Clap.... Clap.... clap....

Am Learning a lot in avery short period of time.
And I will continue to do it...

Thanks to JavaRanch. and all you guys.

Regards, Raghav.
18 years ago

Originally posted by Ben Souther:


It would have to either be initialized during its declaration or initialized in the no-arg contstructor.
Is it Allowed for us to write non-arg constructor for Servlets?

Originally posted by Ben Souther:
[QB]
The init method gets called by the container when the servlet is put into service, not when the servlet object is instanciated.



You mean init() method is called everytime a request is received for servlet? I don't think so. Init() and destroy() will be called only once in Servlet life Cycle.

Please Correct if am wrong me.

Regards, Raghav

18 years ago

Originally posted by Ben Souther:
The init method is not the same as a constructor.
You can not use it to initialize final variables this way.




then how can the final variables be initialized other than initializing it during its declaration.

someone replyed as we cann't write consructor as well.

Regards, raghav.
18 years ago
Anyone know the anwer for reema's Query?

Please Let me know.

Reema,

did you get the answer if so post it. am in need of the same.


Regards, Raghav
18 years ago

Originally posted by Ben Souther:
Servlet.getServletContext(contextName) can get you access to another context within the same server. Tomcat, for instance disables this, by default. To enable this capability, see the crossContext attribute on this page:
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html



Hi ben, I have gone through the link. Am unable to find the file in which i could set this attribute to true. am using tomcat 5.5.20.

Regards, Raghav
18 years ago

Originally posted by Ulf Dittmer:
Your machine must be accessible for inbound traffic, which most desktop machines are not these days. Do you have a static IP address, and does the firewall/NAT allow traffic to get through to it? If you aren't sure, ask a system administrator.



I agree with you.

once you are sure about the above mentioned things try your application from other system using.

http://your ip address :8080/myapp/welcome.html
18 years ago
Thank You for suggestions Guys.

Regards, Raghav
18 years ago