Re: Display Struts Configuration

2006-04-13 Thread Frank W. Zammetti
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]



Re: Display Struts Configuration

2006-04-13 Thread DGraham
I'm just guessing, but it sounds like you're gonna have to extend 
RequestProcessor and create a tag that can cooperate with it.  And it does 
sound like it'd be a useful debug extension to any/all releases of struts.

-Dennis



"Matthew J. Vincent" <[EMAIL PROTECTED]> 
04/13/2006 11:04 AM
Please respond to
"Struts Users Mailing List" 


To
Struts Users Mailing List 
cc

Subject
Re: Display Struts Configuration






This is nice for config before the application is running, I want to 
know during runtime.

Thanks!

Matt

[EMAIL PROTECTED] wrote:
> Maybe this is what you are referring to?
> http://marc.theaimsgroup.com/?l=struts-user&m=114406604109454&w=2
>
> http://www.jamesholmes.com/struts/console/
> http://exadel.com/web/portal/products/ExadelStudio
> http://www.m7.com/
>
> -Dennis
>
>
>
> "Matthew J. Vincent" <[EMAIL PROTECTED]> 
> 04/13/2006 10:38 AM
> Please respond to
> "Struts Users Mailing List" 
>
>
> To
> Struts Users Mailing List 
> cc
>
> Subject
> Re: Display Struts Configuration
>
>
>
>
>
>
> 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]



Re: Display Struts Configuration

2006-04-13 Thread Matthew J. Vincent
This is nice for config before the application is running, I want to 
know during runtime.


Thanks!

Matt

[EMAIL PROTECTED] wrote:

Maybe this is what you are referring to?
http://marc.theaimsgroup.com/?l=struts-user&m=114406604109454&w=2

http://www.jamesholmes.com/struts/console/
http://exadel.com/web/portal/products/ExadelStudio
http://www.m7.com/

-Dennis



"Matthew J. Vincent" <[EMAIL PROTECTED]> 
04/13/2006 10:38 AM

Please respond to
"Struts Users Mailing List" 


To
Struts Users Mailing List 
cc

Subject
Re: Display Struts Configuration






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]



Re: Display Struts Configuration

2006-04-13 Thread DGraham
Maybe this is what you are referring to?
http://marc.theaimsgroup.com/?l=struts-user&m=114406604109454&w=2

http://www.jamesholmes.com/struts/console/
http://exadel.com/web/portal/products/ExadelStudio
http://www.m7.com/

-Dennis



"Matthew J. Vincent" <[EMAIL PROTECTED]> 
04/13/2006 10:38 AM
Please respond to
"Struts Users Mailing List" 


To
Struts Users Mailing List 
cc

Subject
Re: Display Struts Configuration






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]



Re: Display Struts Configuration

2006-04-13 Thread Matthew J. Vincent
Wendy - This is excellent and very close to what I am looking for. 

The only thing missing from this is the *Struts* specific information 
such as which action the request was mapped to, the form being used, etc.


Is there anyone who has this information or an idea of how to retrieve it?

Thanks!

Matt

Wendy Smoak wrote:

On 4/13/06, Matthew J. Vincent <[EMAIL PROTECTED]> wrote:
  

This is helpful, but not *exactly* what I am looking for.

What I am looking for is used for debugging purposes during runtime.

Anyone?



I keep 'debug.jsp' around, and include it at the bottom of my main
(Tiles) layout during development.  It uses JSTL and the implicit
objects to print out everything in request/session/application scope.

http://wiki.wsmoak.net/cgi-bin/wiki.pl?DebugJSP

HTH,
--
Wendy

-
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]



Re: Display Struts Configuration

2006-04-13 Thread Wendy Smoak
On 4/13/06, Matthew J. Vincent <[EMAIL PROTECTED]> wrote:
> This is helpful, but not *exactly* what I am looking for.
>
> What I am looking for is used for debugging purposes during runtime.
>
> Anyone?

I keep 'debug.jsp' around, and include it at the bottom of my main
(Tiles) layout during development.  It uses JSTL and the implicit
objects to print out everything in request/session/application scope.

http://wiki.wsmoak.net/cgi-bin/wiki.pl?DebugJSP

HTH,
--
Wendy

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



Re: Display Struts Configuration

2006-04-13 Thread Matthew J. Vincent
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]



Re: Display Struts Configuration

2006-04-13 Thread Don Brown
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]
>
>


Display Struts Configuration

2006-04-13 Thread Matthew J. Vincent

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]