Re: What is the best way to display pictures from a database using Struts

2002-01-09 Thread Ted Husted
See the source code for org.apache.struts.actions.ReloadAction It writes "OK" when it's done. Makes for a good "hello world" example. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Building Java web applications with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ [EM

Re: What is the best way to display pictures from a database using Struts

2002-01-08 Thread antony
Hi When you say that I should use an action and "write the bytes in the perform method" I am not quite sure I follow. I have only returned an ActionForward object from the perform() method in an Action class. So how do I make it return a byte string representing the image?, should I write

Re: What is the best way to display pictures from a database using Struts

2001-11-24 Thread Ted Husted
Struts doesn't actually display anything. This task is delegated to the JSPs, or other view rendering system. So the first question is how to get the images displayed by a JSP. I'm don't actually know how that would work, since HTML expects the images to be in a separate file. You may need to look

What is the best way to display pictures from a database using Struts

2001-11-21 Thread antony
Hi I need to retrieve pictures from a database and use struts to display them. I am not sure about the best way to do this. Can someone please tell me how they do it and what they beleive the best approach is. Cheers Antony -- To unsubscribe, e-mail: For add