• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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: 24112
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!
 
If you want to look young and thin, hang around old, fat people. Or this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic