I wrote an action class and it worked.
I called the action class like below...
img src="
and the struts.xml
books
ImageAction.java
import java.io.OutputStream;
import java.sql.Blob;
import java.sql.Connection;
import java.sql.DriverManager;
Being a fan of the KISS policy... I played around with
this but didn't have the time to figure it out, so I
made the URL spat out by struts2 points to a servlet
instead of struts2.
(Note that my web.xml has struts2 configured to listen
for *.action rather then slash-star)
Good luck & please
2 matches
Mail list logo