• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp  RSS feed

 
Abhijeet Neware
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi........ i am new on this forum and new in java technlogy so please help me i want to learn jsp and servlet deeply so please give answer of my question i'm trying but i didn't get the answer...
As jsp is translated in servlet, can anyone tell me where the declaration part of jsp and scriplet part of jsp goes in servlet after its translation in servlet
 
Raj Chila
Ranch Hand
Posts: 128
Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try to explore it yourself....if you are using tomcat the generated servlet will be in the work folder...
 
Abhijeet Neware
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Raj.... but i am using weblogic sever, can you tell me in weblogic serve where the translated servlet is located.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear in mind that putting scriptlets and declaration into a JSP is a bad practice that has been discredited for almost ten years now. You should be concentrating your JSP learning on modern techniques, not outdated poor practices.
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IDEs like Netbeans allow you to see the generated servlet, but there is no much point looking at the generated code, a better alternative is look at the JSP you are writing and forget how its processed.
 
Abhijeet Neware
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Bear in mind that putting scriptlets and declaration into a JSP is a bad practice that has been discredited for almost ten years now. You should be concentrating your JSP learning on modern techniques, not outdated poor practices.


Thanks dear;
but i didn't get you properly, if we didn't write a scriplet in jsp so where we write a java code in jsp, can please explain me...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66153
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java code has no place in a JSP. It belongs in beans and in servlet controllers.

Perhaps this article can help.
 
Abhijeet Neware
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amit Ghorpade wrote:IDEs like Netbeans allow you to see the generated servlet, but there is no much point looking at the generated code, a better alternative is look at the JSP you are writing and forget how its processed.


hey dear,
I know that, but uou have to know whats happening in back end, I face this question in interview thats why i am asking...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!