Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Servlet 4B assignment, formulation questions

 
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Though 'all can be done' I have the following remark, question with respect to the formulation of Assignment Servlet 4b.
The graphics say:
-1- videologin.htm for login (thats ok) So we do.
-2- VideoLogin (servlet) says: you are loggen in (ok). Two buttons: Add a new video, list the videos (ok). So we push:Add a video
-3- AddVideoServlet (servlet) shows the inputfields for a video with a submit button (ok)
AND two buttons for add a video and list a video. Is 'add a video' at this place really what I want?
What is the difference between submit and add a video???
It means I would like to 'not see' the 'add a video' button.
We press submit
-4- AddVideoServlet(servlet) with message: Video added and two buttons. (ok)
But does this mean that the 'AddVideoServlet' should rememember how it is called?
Push list video button.
-5- ListVideoButton (servlet) shows available videos (ok)
But again with two buttons: add a video and list a video.
I would delete: list a video. Don't I see the list?

 
Trailboss
Posts: 23815
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You make excellent points!
My position on this is that I want to keep the assignments simple. By always having the same stuff at the bottom, I'm making less to code up, less for folks to understand and write, and most importantly, less to nitpick.
 
Peter Gragert
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Paul,
Yes, doing like my questions above suggested, the code becomes more complicated. So I will do as the 'pictures' suggest.
So thats cleared, thanks!
 
You guys wanna see my fabulous new place? Or do you wanna look at this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic