Sourabh Bawage

Ranch Hand
+ Follow
since Sep 03, 2013
Sourabh likes ...
Eclipse IDE Tomcat Server Java
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
3
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sourabh Bawage


As you see, it's a servlet specific initialization param. So unless that servlet gets invoked that initialization param isn't relevant. Directly calling the JSP will not go through that servlet.



Hi Jaikiran,
I believe that 1 servlet is created by the container for the JSP, so whenever i call this JSP that particular servlet will be invoked......
so even if i call using the file name (index.jsp) or the url pattern, the SAME servlet will be invoked...

I dont get what difference is it making internally....??
Kindly help....
8 years ago
JSP
web.xml


index.jsp



http://localhost:6060/SCWCDApp/index.jsp

Output:



http://localhost:6060/SCWCDApp/myJsp

Output:


I dint understand why the init parameters were not fetched when i directly called the JSP??

8 years ago
JSP

Bear Bibeault wrote:There is no need at all to do this. The config is readily available from the Servlet superclass. Storing it is unnecesarry and amateurish.



I didnt get what you are trying to say....

1. I think the config is declared in GenericServlet class.
2. Storing it is unnecesarry and amateurish.....what does it mean???

Could you please explain sir.....

Thanks....
8 years ago
http://www.studytonight.com/servlet/url-rewriting-for-session-management.php

i just wanted to confirm this article about URL rewriting is not correct....
8 years ago

Bear Bibeault wrote:

Sourabh Bawage wrote:url rewriting might be helpful....


There is no "rewriting" to this. Just placing a query stirng onto the URL.



can you please explain how url rewriting is different from "Just placing a query stirng onto the URL"??

8 years ago

request.getParameter("tom");


Not quite. You pass the name of the parameter, not the value, which is what you are trying to obtain.

ya....i know...wrote it by mistake....
Thanks....
8 years ago
url rewriting might be helpful....

for example...

htto://localhost:8080/jsp2.jsp?name=tom&roll=231

and you can use
request.getParameter("tom");
to get the value....
8 years ago

yarin asu wrote:

Ulf Dittmer wrote:Wasn't Maneesh's short answer very clear on that?


i'm ust want to be sure by the way i open the thread on jsp forum too becuase this question ask for both and i didnt know whree exactly to open it, sorry and thanks
by the way there is a website you know that develop with servlet and jsp??



www.naaptol.com uses servlet,jsp (follows MVC) and hibernate...
8 years ago
I want to display Java code on my website which has Java Code...basically I need a Java code highlighter like this...

I know this is not related to JSP.....I did some googling...couldn't find much....
overridden method can throw child class exception(or same) of the parent class method or no exception at all.....
8 years ago

Ulf Dittmer wrote:

http://javapapers.com/ajax/getting-started-with-ajax-using-java/


While it's not clear that naga eswar has (or wants) an AJAX solution, this is definitely not the way to do it. Using XMLHttpRequest directly (as opposed to via a framework like Prototype or jQuery) has fallen out of fashion years ago.



Indeed, i just wanted him to begin with ajax (i had an impression that he isn't aware of ajax)...
8 years ago
anything that is not visible to the user is backend....so just database is NOT backend......
8 years ago
what is the need??
8 years ago