Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

jsp  RSS feed

 
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
 
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.
 
Sheriff
Posts: 67260
170
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.
 
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
Sheriff
Posts: 67260
170
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...
 
Barry's not gonna like this. Barry's not gonna like this one bit. What is Barry's deal with tiny ads?
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!