Hi Matthew,

I don't know the blog you refer to, but I might be able to help...

As far as the request information goes, check out:

http://javawebparts.sourceforge.net

Specifically, go to the javadocs and look at the RequestHelpers class in
the javawebparts.request package.  That should give you everything you
want as far as that goes.

For the Struts info, what I think you want is the request attribute
"org.apache.struts.action.mapping.instance".  This is the ActionMapping
that was used to fulfill the request.  That gives you the mapped path, the
bean used, the forward, etc.

So, what you could do in your JSP is this:

<%=RequestHelpers.getAllRequestInfo()%>

...and you should see the ActionMapping, mixed in with any other
attributes present, along with the parameters and headers too.

HTH,
Frank

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

On Thu, April 13, 2006 10:38 am, Matthew J. Vincent said:
> This is helpful, but not *exactly* what I am looking for.
>
> What I am looking for is used for debugging purposes during runtime.
>
> Anyone?
>
> Thanks again Don.
>
> Matt
>
>
>
> Don Brown wrote:
>> I don't know if this is what you are looking for, but I've found it
>> useful
>> in the past: http://struts.sourceforge.net/strutsdoc/index.html
>>
>> Basically, it is Javadoc for Struts, Tiles, and stxx configuration.
>>
>> Struts Action 2 (and WebWork) has:
>>  - SiteGraph http://www.opensymphony.com/webwork/wikidocs/SiteGraph.html
>>  - Config Browser
>> http://www.opensymphony.com/webwork/wikidocs/Config%20Browser.html
>>
>> If you have any other ideas of tools that would be useful, let us know.
>>
>> Don
>>
>> On 4/13/06, Matthew J. Vincent <[EMAIL PROTECTED]> wrote:
>>
>>> Hello all,
>>>
>>> Last week I saw a blog which showed how to display information at the
>>> beginning of your JSP about Struts such as which action the request was
>>> mapped to, the form being used, and associated information like the
>>> request headers.  I should have bookmarked it, but I didn't.  I have
>>> checked my history, googled for it, etc., but cannot find it again.
>>> Does anyone know what I am talking about and/or can they post a link
>>> for
>>> this information?  Or does anyone have something similar?  Thanks for
>>> your help.
>>>
>>> Matt
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to