• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP structure questions

 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is JSP laid out just like ASP.NET, with the code behind file and etc..
Or better yet do JSP pages have code-behind files at all. As in code behind file i mean like a .java file that directly relates with that .jsp page.

for example:

default.jsp
- default.jsp.java

and you'll have your page_load or some similar function etc etc...

Is this how JSP works or is it a lot different?

Thanks,

Justin Fox
[ May 28, 2008: Message edited by: Bear Bibeault ]
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34071
331
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Justin,
No. While JSPs do compile into Java classes, they are not classes that you access. JSPs can access other Java classes (like helper code), but there isn't a one to one relationship.
 
Justin Fox
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cool, so me being pretty good with asp.net etc. etc. wouldn't help me adapt to JSP at all right?

I just wanted to know, because we are using asp.net for web apps at work, and I wanted to see if it would be a HUGE learning curve for me to switch over to JSP for future projects.

Thanks again!

Justin Fox
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34071
331
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Justin Fox:
Cool, so me being pretty good with asp.net etc. etc. wouldn't help me adapt to JSP at all right?

It helps a little in that learning a second languages is always easier and some things are similar. You wouldn't expect to jump in and be fluent right away though.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic