File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Cattle Drive and the fly likes JDBC-3 Why doesn't ...... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "JDBC-3 Why doesn Watch "JDBC-3 Why doesn New topic
Author

JDBC-3 Why doesn't ......

Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1197
I can edit videos, but I am still struggling with getting the fields to print with the proper input when the edit button is selected, and I also want this servlet to act like AddVideo, but I am having trouble with this. Should I be trying to get this servlet to print out a page that lets the user know the video has been edited just like the page that gets printed when a video has been added? Because if I don't need to do this, I'll stop trying. It's making me nuts!
Peter Gragert
Ranch Hand

Joined: Jan 16, 2001
Posts: 424
I do not know if it is a 'must'. My solution
printed (sent html code)
JDBC ... Video edited
------------------------------
button for add
button for list
Manju Jain
Ranch Hand

Joined: Feb 08, 2001
Posts: 168
Just sent in my first attempt, so not sure of what's the best way to do it.
I use the same AddVideo for both adding and editing. If everything's ok then it prints whether the video has been added or updated in a new page.
As for the values not getting printed properly, check for spaces in the field values and replace like ReverseServlet.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9048
    
  10
Should I be trying to get this servlet to print out a page that lets the user know the video has been edited just like the page that gets printed when a video has been added?

Yes


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1197
Darn. I was afraid of that. But I think I may have arrived at a new solution. The one I was trying would print the pages like I wanted, but the videos wouldn't edit. When I can edit the videos, then the pages won't print like I want. Oh bother.
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1197
Well, I wrote some code that will print out the form with the required fields filled in. That part works fine. When the submit button is clicked, I still don't get my message page. I keep getting the about 1/3 of the form printed out, then it quits due to a missing parameter. This is irritating, because I know what I have to do, but I can't seem to come up with a boolean that will allow me to test for which page to print. And the video will still edit! I am kinda confused.......
Manju Jain
Ranch Hand

Joined: Feb 08, 2001
Posts: 168
Carol, it is html magic field: hidden field came to my rescue. Pass one when you want to update the edit video and use it to determine which message ought to be printed.
Carol Murphy
village idiot
Bartender

Joined: Mar 15, 2001
Posts: 1197
Ah yes, the hidden field... Well, I was able to accomplish the task, but I had to use 2 classes instead of one.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JDBC-3 Why doesn't ......