Re: Return text to jsp, plus image and imageMap from a single Data query?

2011-09-05 Thread Brian Thompson
You can embed images directly in html using base-64 encoding. Something like might do the trick. Brian On Mon, Sep 5, 2011 at 7:02 AM, Aaron Brown wrote: > The problem is really an html problem. You cannot embed an image in a web > page, all you can do is embed a url reference to an image. T

Re: Doubt on Accessing Session from ActionContext

2011-09-05 Thread Chris Pratt
Accessing the ActionContext is considered tying youself to a specific implementation, plus it makes unit testing the Action more involved (since you have to provide a fully functional ActionContext). Whereas implementing ServletRequestAware is "programming to interfaces" (which is good practice) an

Re: JQuery plugin sj:a tag - Bug?

2011-09-05 Thread roger
Sorry for replying to myself, but if I remove the onClickTopics="confirmReset" attribute then the requestType attribute is honoured and I can swap between GET and POST at will. I'm using the onClickTopics to put up a confirmation screen to the user and the handler is given below; $(document).read

Re: Return text to jsp, plus image and imageMap from a single Data query?

2011-09-05 Thread Aaron Brown
The problem is really an html problem. You cannot embed an image in a web page, all you can do is embed a url reference to an image. The browser, if it is a graphical browser and not a text reader, will find that reference and execute another completely separate request for the image binary. This i

JQuery plugin sj:a tag - Bug?

2011-09-05 Thread roger
Hi I have the following in a jsp page: Reset Password Using Jquery plugin 3.1.1 the sj:a tag appears to be ignoring the requestType="GET" or I'm not specifying it correctly, but either way, when I click on the link, the parameter data is sent as a POST and I need to it

Doubt on Accessing Session from ActionContext

2011-09-05 Thread mohan rao
You can obtain the request by asking the ActionContext or implementing ServletRequestAware. Implementing ServletRequestAwareis preferred. *why it's not preferable accessing through ActionContext even though it's thread safe. If it's true why we need session,request,response,params interceptors*

Re: Return text to jsp, plus image and imageMap from a single Data query?

2011-09-05 Thread AndyLaw
On 3 Sep 2011, at 15:07, Dave Newton-6 [via Struts] wrote: > Okay, so I guess my question is "Why do you want to deliver the result in > three separate parts?" Without a clear understanding of what you're trying > to do and why, it's difficult to answer in a helpful way. > The results come b