Use an HTTP tool to actually see the request and response. Chrome and Safari have one built right in. For Firefox, there are plugins such as HttpFox.
Rather than editing two files: a JSP and a servlet, just hit the servlet URL with the browser. When the image appears, you know the servlet is ready. Could cut down on turn-around time after a change.
Daniel Zuckermann wrote:Well, at least calls the ImageLoader servlet.
While it may work now, this way of forming URLs is fragile and easily broken. Just because you got something to work doesn't mean that it's working well.
i you want the load images or any kind of binary data , using servlet , instead of using another toolkit libraries the servlet 3.0 api have good support to upload binary data and easy to use.
Thank you guys. I got it working with , but I still have some questions regarding the whole architecture of my simple application, which should basically generate some bean objects from an xml file and then display the text and the image for each data set.
The xml should look similar to this:
My question is if it's ok to read the text directly from the
bean object like
You should not be using jspx documents, but plain old JSP files. jspx is intended as an intermediary format or for generation by machine, and not indented for hand coding.
And you should be using the EL to fetch data, not scriptlets or jspx expressions.