Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 19th, 2001, 10:16 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
The last?? Snif !

How about JSP files part 9 on architectural considerations. Like when and how to use beans, EJBs and servlets together with the JSP??


Reply With Quote
  #2  
Old April 20th, 2001, 10:36 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: The last?? Snif !

I Second the notion! Let's see a little on the Model View Controller architecture for java beans, jsps, and servlets.

Reply With Quote
  #3  
Old April 20th, 2001, 10:50 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
compile errors

Anyway to catch compile errors in the same way like php or do you just have to have a special compiler for jsps like forte?

Reply With Quote
  #4  
Old April 21st, 2001, 08:27 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: The last?? Snif !

<p>I agree. I think one of the most attractive things about the JSP/Servlet architecture is it's ability to provide clean, well-seperated designs, so more coverage on how to design an application with these technologies would be very cool. Perhaps a longish article covering one example the whole way through that shows something like a really simplistic bank account or something.</p>

Reply With Quote
  #5  
Old April 21st, 2001, 11:17 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Jserv7 UseBean

I like the articles so far, however, you should specifically point out that the UseBean, SetProperty and GetProperty tags for JavaBeans are XML compliant tags, hence the closing hashs. This is because we can concurrently initialize bean properties from the .xml file in the bean package as well.
Most non-programmer web dev's are not yet familiar with the intricacies of xhtml compliant tags. Just a thought.

More Power and keep em coming! -E-

Reply With Quote
  #6  
Old April 21st, 2001, 11:20 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: compile errors

Ryan, If your web server is set up to run .jsp's, than the pages are compiled as part of the package. (On Apache, this is usually the Tomcat engine.) The JSP engine in use is really a servlet implementation, set just to compile and run .jsp pages, and hence upcasts the Throwable object of the java.util package just like everything else in java seems to (after all, exceptions are built into java and are not ignorable).

Hope this helps ;)

-E-

Reply With Quote
  #7  
Old April 21st, 2001, 11:27 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: The last?? Snif !

Well, I agree, the momentum is in place, run with it, right?

The MVC architorture in .jsp is really to implement a Enterprise Java Bean (EJB) so that the (vendor-supplied) container of the EJB implements all the trivial tasks.

There is a good tutorial .pdf at jguru.com (also available at Sun's java site..) which has several examples on .jsp and EJB use. Also having a simple banking implementation. So I'm not sure if they wanna follow suit on that, but maybe something more realistic for web use...

How about how to use .jsp's to talk with Jini-enabled devices, or output WML or XML. Lets go for broke!

-E-

Reply With Quote
  #8  
Old April 23rd, 2001, 03:04 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: The last?? Snif !

Hello,

Can you give provide the urls to those tutorials? Thank you!!

-- Rodney

Reply With Quote
  #9  
Old May 11th, 2001, 06:29 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Where do I place the bean???

Hi!! I have been through the 7 part tutorials thoroughly and it has helped me a lot in terms of understanding JSP's. (Much better than any book that I have read). I only have one problem with the last part i.e. using a bean. I downloaded the Temperature.class file and I am not sure which directory to place the class file in. Because the JSP on execution gives an error "Unable to compile class for JSPF:\tomcat\work\localhost_8080%2Fexamples\_0002fdevshed_0002ftemperature_0002ejsptemperature_jsp_0 .java:63: Class devshed.Temperature not found."

Reply With Quote
  #10  
Old May 11th, 2001, 06:35 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Which directory do I place the Temperature.class ??

Hi!! I have been through the 7 part tutorials thoroughly and it has helped me a lot in terms of understanding JSP's. (Much better than any book that I have read). I only have one problem with the last part i.e. using a bean. I downloaded the Temperature.class file and I am not sure which directory to place the class file in. Because the JSP on execution gives an error "Unable to compile class for JSPF:\tomcat\work\localhost_8080%2Fexamples\_0002fdevshed_0002ftemperature_0002ejsptemperature_jsp_0 .java:63: Class devshed.Temperature not found."

Reply With Quote
  #11  
Old May 14th, 2001, 03:11 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
nice tutorial

though i couldn't get a few things to work, i learned a lot from the article & examples.
great job. keep 'em coming.

-hari

Reply With Quote
  #12  
Old May 14th, 2001, 03:15 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Where do I place the bean???

you can put in :
"D:\jakarta-tomcat-3.2.1\webapps\root2\WEB-INF\classes\" directory.

substitute "D:\jakarta-tomcat-3.2.1" with your own root & tomcat home dir.

Reply With Quote
  #13  
Old May 29th, 2001, 05:13 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: Where do I place the bean???

well that doesn't work for me..
[root@local jsp]# locate Temperature.class
/usr/src/jakarta-tomcat-3.2.1/webapps/admin/WEB-INF/classes/Temperature.classt
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSP/usr/src/jakarta-tomcat-3.2.1/work/localhost_8080%2Fexamples/_0002fjsp_0002ftmp_0002ejsptmp_jsp_1.java:63: Class jsp.Temperature not found.
Temperature c = null;
Any clues there? jsp.Temperature, does that mean it should be in a jsp subdir?
Also it sez it cannot compile class, but it's already there..
And oh yes, very informative, the JSP Files series, ta!

>you can put in :
"D:jakarta-tomcat-3.2.1webappsroot2WEB-INFclasses" directory.

>substitute "D:jakarta-tomcat-3.2.1" with your own root & tomcat home dir.

Reply With Quote
  #14  
Old December 31st, 2001, 04:21 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

Reply With Quote
  #15  
Old January 28th, 2002, 05:55 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > The JSP Files (part 7): Bugs, Beans And Banks

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap