Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

jsp

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Firefox Browser Fedora Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Catch Ernie! Catch the egg! And catch this tiny ad too:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic