May I have 2 different action extensions in the same webapp? Where do I
indicate the extension for each action? Now, I have set <constant
name="struts.action.extension" value="do"/> in my struts.xml file, so
.do is the extension for all actions.
Thanks.
Jeromy Evans escribió:
Pablo Vázquez Blázquez wrote:
- the interceptor can detect that the request is ajax either by the
partitioning of your packages/URLs or by inspecting the http header;
How can you know it is an ajax request by inspecting the http header?
I looked in my request headers and I can´t know whether it is ajax or
not.
Thanks.
Sorry, I only recently learned that it's common for the ajax request
header to include the following attribute:
X-Requested-With XMLHttpRequest
Unfortunately, I just checked and Dojo 0.4 doesn't do this, so I guess
it's not that common. You'd have to create a custom handler to insert
it. Urgh.
I've found it convenient to specify that I'm making an ajax request
for an HTML fragment simply by using an alternative extension (eg.
.xhtml) and adding that as an action extension (and an excludes for
sitemesh).
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]