Dawson Mossman | 1 Mar 2004 02:02

Forward Commands in Maverick.NET

Hello:

I wanted to thank Jim for the quick response on my last post about Maverick Command Forwarding.  I tried the suggestion you made about simply have a view path point to another command, and it was very close to working, but when the HttpRequest.Server.Execute(“path”, “outputstream”) gets called I get an error stating with the following stack trace:  Any idea what would be causing this?  I can go to the “role_create.m” action directly without any problems, it’s just when I try to transfer to it from another command.

Thanks, Dawson

 

 “Error executing child request for /controller/role_create.m.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Error executing child request for /controller/role_create.m.

Source Error:

 

Line 83:                                            path = vctx.HttpContext.Request.ApplicationPath + "/" + this.path;

Line 84:

Line 85:                                    vctx.HttpContext.Server.Execute(path, output);

Line 86:                                    output.Flush();

Line 87:                                    next.Go();


Source File: c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\View\DispatchedViewFactory.cs    Line: 85

Stack Trace:

 

[HttpException (0x80004005): Error executing child request for /controller/role_create.m.]

   System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter writer, Boolean preserveForm) +1756

   System.Web.HttpServerUtility.Execute(String path, TextWriter writer) +11

   Maverick.View.DispatchedView.Go(IViewContext vctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\View\DispatchedViewFactory.cs:85

   Maverick.View.DocumentView.Go(IViewContext vctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\View\DocumentView.cs:37

   Maverick.Flow.CommandBase.RunView(String viewName, MaverickContext mctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\Flow\CommandBase.cs:49

   Maverick.Flow.CommandBase.Go(MaverickContext mctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\Flow\CommandBase.cs:27

   Maverick.Dispatcher.ProcessRequest(HttpContext context) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\Dispatcher.cs:220

   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

 

 

 

This communication, including any and all attachments, is confidential and intended only for the use of the person or entity to which it is addressed and may contain privileged and/or confidential material.  It is intended only for the recipient[s] to whom it is addressed. Any use, disclosure, review, retransmission, distribution, or printing, does not constitute a waiver of privilege on behalf of the intended recipient and is strictly prohibited.  If you have received this email in error, please contact the sender as above and delete the original and any copy of this email or any printout thereof, immediately.  Your cooperation is appreciated. 

Braswell Paul | 1 Mar 2004 16:28

Re: Forward Commands in Maverick.Net

I get the same error.  To get around the problem, I use redirect and add any values to ControllerContext. i.e:

ControllerContext.SetParam("errorMessage", errorMessage);

Not sure if it's the right way to do it, but it did allow me to move on.  Anyone have a better solution?

 

 

From: Dawson Mossman <dawson <at> en...>
Forward Commands in Maverick.NET  
2004-02-29 17:14
Hello: I wanted to thank Jim for the quick response on my last post about Maverick Command Forwarding. I tried the suggestion you made about simply have a view path point to another command, and it was very close to working, but when the HttpRequest.Server.Execute("path", "outputstream") gets called I get an error stating with the following stack trace: Any idea what would be causing this? I can go to the "role_create.m" action directly without any problems, it's just when I try to transfer to it from another command. Thanks, Dawson "Error executing child request for /controller/role_create.m. " Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Web.HttpException: Error executing child request for /controller/role_create.m. Source Error: Line 83: path = vctx.HttpContext.Request.ApplicationPath + "/" + this.path; Line 84: Line 85: vctx.HttpContext.Server.Execute(path, output); Line 86: output.Flush(); Line 87: next.Go(); Source File: c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\V iew\DispatchedViewFactory.cs Line: 85 Stack Trace: [HttpException (0x80004005): Error executing child request for /controller/role_create.m.] System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter writer, Boolean preserveForm) +1756 System.Web.HttpServerUtility.Execute(String path, TextWriter writer) +11 Maverick.View.DispatchedView.Go(IViewContext vctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\V iew\DispatchedViewFactory.cs:85 Maverick.View.DocumentView.Go(IViewContext vctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\V iew\DocumentView.cs:37 Maverick.Flow.CommandBase.RunView(String viewName, MaverickContext mctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\F low\CommandBase.cs:49 Maverick.Flow.CommandBase.Go(MaverickContext mctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\F low\CommandBase.cs:27 Maverick.Dispatcher.ProcessRequest(HttpContext context) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\D ispatcher.cs:220 System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutio nStep.Execute() +179 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

jim moore | 1 Mar 2004 17:25

RE: Forward Commands in Maverick.NET

this works in the java version of maverick. if it doesn't work in mavnet, its a bug. i will look into it.
 
--jim

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Dawson Mossman
Sent: Monday, March 01, 2004 1:03 AM
To: mavnet-user <at> lists.sourceforge.net
Subject: [Mavnet-user] Forward Commands in Maverick.NET

Hello:

I wanted to thank Jim for the quick response on my last post about Maverick Command Forwarding.  I tried the suggestion you made about simply have a view path point to another command, and it was very close to working, but when the HttpRequest.Server.Execute(“path”, “outputstream”) gets called I get an error stating with the following stack trace:  Any idea what would be causing this?  I can go to the “role_create.m” action directly without any problems, it’s just when I try to transfer to it from another command.

Thanks, Dawson

 

 “Error executing child request for /controller/role_create.m.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Error executing child request for /controller/role_create.m.

Source Error:

 

Line 83:                                            path = vctx.HttpContext.Request.ApplicationPath + "/" + this.path;

Line 84:

Line 85:                                    vctx.HttpContext.Server.Execute(path, output);

Line 86:                                    output.Flush();

Line 87:                                    next.Go();


Source File: c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\View\DispatchedViewFactory.cs    Line: 85

Stack Trace:

 

[HttpException (0x80004005): Error executing child request for /controller/role_create.m.]

   System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter writer, Boolean preserveForm) +1756

   System.Web.HttpServerUtility.Execute(String path, TextWriter writer) +11

   Maverick.View.DispatchedView.Go(IViewContext vctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\View\DispatchedViewFactory.cs:85

   Maverick.View.DocumentView.Go(IViewContext vctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\View\DocumentView.cs:37

   Maverick.Flow.CommandBase.RunView(String viewName, MaverickContext mctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\Flow\CommandBase.cs:49

   Maverick.Flow.CommandBase.Go(MaverickContext mctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\Flow\CommandBase.cs:27

   Maverick.Dispatcher.ProcessRequest(HttpContext context) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\Dispatcher.cs:220

   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

 

 

 

This communication, including any and all attachments, is confidential and intended only for the use of the person or entity to which it is addressed and may contain privileged and/or confidential material.  It is intended only for the recipient[s] to whom it is addressed. Any use, disclosure, review, retransmission, distribution, or printing, does not constitute a waiver of privilege on behalf of the intended recipient and is strictly prohibited.  If you have received this email in error, please contact the sender as above and delete the original and any copy of this email or any printout thereof, immediately.  Your cooperation is appreciated. 

Andrew Zakovorotny | 1 Mar 2004 17:39

RE: Forward Commands in Maverick.NET

Hi Jim,
Regarding that error the following article might be interesting:
 
Regards,
Andy.
-----Original Message-----
From: jim moore [mailto:jim <at> scolamoore.com]
Sent: Monday, March 01, 2004 11:26 AM
To: mavnet-user <at> lists.sourceforge.net
Subject: RE: [Mavnet-user] Forward Commands in Maverick.NET

this works in the java version of maverick. if it doesn't work in mavnet, its a bug. i will look into it.
 
--jim

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Dawson Mossman
Sent: Monday, March 01, 2004 1:03 AM
To: mavnet-user <at> lists.sourceforge.net
Subject: [Mavnet-user] Forward Commands in Maverick.NET

Hello:

I wanted to thank Jim for the quick response on my last post about Maverick Command Forwarding.  I tried the suggestion you made about simply have a view path point to another command, and it was very close to working, but when the HttpRequest.Server.Execute(“path”, “outputstream”) gets called I get an error stating with the following stack trace:  Any idea what would be causing this?  I can go to the “role_create.m” action directly without any problems, it’s just when I try to transfer to it from another command.

Thanks, Dawson

 

 “Error executing child request for /controller/role_create.m.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Error executing child request for /controller/role_create.m.

Source Error:

 

Line 83:                                            path = vctx.HttpContext.Request.ApplicationPath + "/" + this.path;

Line 84:

Line 85:                                    vctx.HttpContext.Server.Execute(path, output);

Line 86:                                    output.Flush();

Line 87:                                    next.Go();


Source File: c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\View\DispatchedViewFactory.cs    Line: 85

Stack Trace:

 

[HttpException (0x80004005): Error executing child request for /controller/role_create.m.]

   System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter writer, Boolean preserveForm) +1756

   System.Web.HttpServerUtility.Execute(String path, TextWriter writer) +11

   Maverick.View.DispatchedView.Go(IViewContext vctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\View\DispatchedViewFactory.cs:85

   Maverick.View.DocumentView.Go(IViewContext vctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\View\DocumentView.cs:37

   Maverick.Flow.CommandBase.RunView(String viewName, MaverickContext mctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\Flow\CommandBase.cs:49

   Maverick.Flow.CommandBase.Go(MaverickContext mctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\Flow\CommandBase.cs:27

   Maverick.Dispatcher.ProcessRequest(HttpContext context) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\Dispatcher.cs:220

   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

 

 

 

This communication, including any and all attachments, is confidential and intended only for the use of the person or entity to which it is addressed and may contain privileged and/or confidential material.  It is intended only for the recipient[s] to whom it is addressed. Any use, disclosure, review, retransmission, distribution, or printing, does not constitute a waiver of privilege on behalf of the intended recipient and is strictly prohibited.  If you have received this email in error, please contact the sender as above and delete the original and any copy of this email or any printout thereof, immediately.  Your cooperation is appreciated. 

Cort Schaefer | 2 Mar 2004 05:46
Favicon

RE: Forward Commands in Maverick.NET

I don’t think this is possible because of limitation with the aspnet_isapi handler – this is why I ended up doing Opt-NVelocity the way I did.

 

Cort

 

From: jim moore [mailto:jim <at> scolamoore.com]
Sent: Monday, March 01, 2004 9:26 AM
To: mavnet-user <at> lists.sourceforge.net
Subject: RE: [Mavnet-user] Forward Commands in Maverick.NET

 

this works in the java version of maverick. if it doesn't work in mavnet, its a bug. i will look into it.

 

--jim

 

From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-admin <at> lists.sourceforge.net] On Behalf Of Dawson Mossman
Sent: Monday, March 01, 2004 1:03 AM
To: mavnet-user <at> lists.sourceforge.net
Subject: [Mavnet-user] Forward Commands in Maverick.NET

Hello:

I wanted to thank Jim for the quick response on my last post about Maverick Command Forwarding.  I tried the suggestion you made about simply have a view path point to another command, and it was very close to working, but when the HttpRequest.Server.Execute(“path”, “outputstream”) gets called I get an error stating with the following stack trace:  Any idea what would be causing this?  I can go to the “role_create.m” action directly without any problems, it’s just when I try to transfer to it from another command.

Thanks, Dawson

 

 “Error executing child request for /controller/role_create.m.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Error executing child request for /controller/role_create.m.

Source Error:

 

Line 83:                                            path = vctx.HttpContext.Request.ApplicationPath + "/" + this.path;

Line 84:

Line 85:                                    vctx.HttpContext.Server.Execute(path, output);

Line 86:                                    output.Flush();

Line 87:                                    next.Go();


Source File: c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\View\DispatchedViewFactory.cs    Line: 85

Stack Trace:

 

[HttpException (0x80004005): Error executing child request for /controller/role_create.m.]

   System.Web.HttpServerUtility.ExecuteInternal(String path, TextWriter writer, Boolean preserveForm) +1756

   System.Web.HttpServerUtility.Execute(String path, TextWriter writer) +11

   Maverick.View.DispatchedView.Go(IViewContext vctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\View\DispatchedViewFactory.cs:85

   Maverick.View.DocumentView.Go(IViewContext vctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\View\DocumentView.cs:37

   Maverick.Flow.CommandBase.RunView(String viewName, MaverickContext mctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\Flow\CommandBase.cs:49

   Maverick.Flow.CommandBase.Go(MaverickContext mctx) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\Flow\CommandBase.cs:27

   Maverick.Dispatcher.ProcessRequest(HttpContext context) in c:\CMSDEV\CMS\Version_1\3_Construction\Iteration_2\ThirdParty\Maverick\Dispatcher.cs:220

   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179

   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

 

 

 

This communication, including any and all attachments, is confidential and intended only for the use of the person or entity to which it is addressed and may contain privileged and/or confidential material.  It is intended only for the recipient[s] to whom it is addressed. Any use, disclosure, review, retransmission, distribution, or printing, does not constitute a waiver of privilege on behalf of the intended recipient and is strictly prohibited.  If you have received this email in error, please contact the sender as above and delete the original and any copy of this email or any printout thereof, immediately.  Your cooperation is appreciated. 


--
Incoming mail is certified Virus Free.
Checked by AVG Anti-Virus (http://www.grisoft.com).
Version: 7.0.225 / Virus Database: 261.9.14 - Release Date: 3/1/2004

Gene Webb | 15 Mar 2004 21:02
Picon
Favicon

MAVERICK.NET and Help With VB.Net and IBS or DNN Portals

I have gone thru the documentation and samples and I still have a number of questions.  I was saw a page where someone had apparently ported this to the IBuySpy portal but nothing I could get directly into to.
 
I am trying to understand the different options and would like to find some VB.Net samples or collaborate with someone going thru the samething.
 
My first test cases is to have WebPage1.aspx as the home, set the view and go to WebPage2.aspx or WebPage3.aspx based on the selection in WebPage1.aspx I would also like to pass information that I normally append to the URL.
 
Any help would be appreciated.
 
 
PS Anyone in the Dallas/Forthworth area would be great to chat on the phone about this. THanks alls.

FREE pop-up blocking with the new MSN Toolbar – get it now!

------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

Aaron Clauson | 16 Mar 2004 10:44
Picon
Favicon

Re: Mavnet-user digest, Vol 1 #123 - 1 msg

I did a quick whip up of the IBuySpy Store using
Maverick.Net:
http://azaclauson.com/maverick/ibuyspy/

You might find some useful info in the same spot at:
http://azaclauson.com/maverick/

All my code is in C#.

Regards,

Aaron

--- mavnet-user-request <at> lists.sourceforge.net wrote:
> Send Mavnet-user mailing list submissions to
> 	mavnet-user <at> lists.sourceforge.net
> 
> To subscribe or unsubscribe via the World Wide Web,
> visit
> 
>
https://lists.sourceforge.net/lists/listinfo/mavnet-user
> or, via email, send a message with subject or body
> 'help' to
> 	mavnet-user-request <at> lists.sourceforge.net
> 
> You can reach the person managing the list at
> 	mavnet-user-admin <at> lists.sourceforge.net
> 
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of Mavnet-user digest..."
> 
> 
> Today's Topics:
> 
>    1. MAVERICK.NET and Help With VB.Net and IBS or
> DNN Portals (Gene Webb)
> 
> --__--__--
> 
> Message: 1
> From: "Gene Webb" <gene_webb <at> msn.com>
> To: mavnet-user <at> lists.sourceforge.net
> Date: Mon, 15 Mar 2004 14:02:06 -0600
> Subject: [Mavnet-user] MAVERICK.NET and Help With
> VB.Net and IBS or DNN Portals
> Reply-To: mavnet-user <at> lists.sourceforge.net
> 
> <html><div style='background-color:'><DIV
> class=RTE></DIV>
> <DIV>I have gone thru the documentation and samples
> and I still have a number of questions.&nbsp; I was
> saw a page where someone had apparently ported this
> to the IBuySpy portal but nothing I could get
> directly into to.</DIV>
> <DIV>&nbsp;</DIV>
> <DIV>I am trying to understand the different options
> and would like to find some VB.Net samples or
> collaborate with someone going thru the
> samething.</DIV>
> <DIV>&nbsp;</DIV>
> <DIV>My first test cases is to have WebPage1.aspx as
> the home, set the view and go to WebPage2.aspx or
> WebPage3.aspx based on the selection in
> WebPage1.aspx I would also like to pass information
> that I normally append to the URL.</DIV>
> <DIV>&nbsp;</DIV>
> <DIV>Any help would be appreciated.</DIV>
> <DIV>&nbsp;</DIV>
> <DIV><A
>
href="mailto:gene <at> genewebb.com">gene <at> genewebb.com</A></DIV>
> <DIV>&nbsp;</DIV>
> <DIV>PS Anyone in the Dallas/Forthworth area would
> be great to chat on the phone about this. THanks
> alls.</DIV></div><br clear=all><hr> <a
> href="http://g.msn.com/8HMAENUS/2728??PS=">FREE
> pop-up blocking with the new MSN Toolbar – get it
> now!</a> </html>
> 
> 
> 
> --__--__--
> 
> _______________________________________________
> Mavnet-user mailing list
> Mavnet-user <at> lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/mavnet-user
> 
> 
> End of Mavnet-user Digest

__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Michael Porcelli | 18 Mar 2004 00:27
Picon
Favicon

duplicate aspx controllers in subdirectories

I have and aspx controller that I wish to duplicate in subdirectories.
I am wondering if there is a way to do this without modifying
maverick.config.  Here is an illustration of what I wish

***
* Directory structure
*
/ <-- asp.net application root
 |
  - maverick.config
 |
  - MavPage.aspx
 | 
  - SUBDIR-1
 |  |
 |   - MavPage.aspx
 |  |...
 | 
  - SUBDIR-2
 |  |
 |   - MavPage.aspx
 |  |...
 |...

***
* maverick.config
*
..
<command name='*/MavPage.aspx'> <!-- <-- hypothetical pattern matching
syntax -->
    <view name="success" type='trivial'>
        <transform path='~/transforms/MavPage.xsl' />
    </view>
</command>
..

***

If the aspx page in question were just a plain-vanilla asp.net page,
then doing something like this is quite easy.  The  <at> page directive
identifies the class name to look up in the assembly which is found in
the bin dir under the app root.  My presentation layer uses the
transform view pattern to do all the styling for my aspx pages (while
leaving the asp.net using the asp.net web controls), and I would like to
have the transform view to 'stick' to the aspx location, just as the
NET class 'sticks' wherever the aspx page appears.

My motivation for wanting such a strange thing is that I have a
multi-user content-management-like application where each user gets a
subdir and relative links to resources under the user's subdir must
appear on MavPage.aspx.  When a new user creates an account, the account
is initialized by the creation of the subdir and by copying MavPage.aspx
into the subdir.

If it is not possibly to create a general command entry in
maverick.config that will match the aspx page in various subdirs, my
only choice seems to be to have my application modify maverick.config
during each new user's account initialization.  If this is required, I
would be curious if there is a way to programmatically cause mavnet to
re-load maverick.config (rather than the reload.m http request).

Thanks!
-m.

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Aaron Clauson | 18 Mar 2004 08:56
Picon
Favicon

Re: Mavnet-user digest, Vol 1 #125 - 1 msg

Hi Michael,

There is no facility in Maverick.Net to allow the
wldcard path matching you describe. However, it would
be faily simple to enable and it seems like a
particularly useful idea.

To allow this functionality you could just change the
GetCommand method in the Dispatcher class to use a
regular expression pattern match, instead of an
equality one, when deciding which command to use for
an incoming page request.

e.g. Instead of:
ICommand cmd = (ICommand)commands[name];

something like:
foreach(string commandPattern in commands.Keys)
{
 if(Regex.Match(name,
Regex.Escape(commandPattern)).Success
 {
  return (ICommand)commands[commandPattern];
 }
}

It's also easy enough to programmatically reload the
Maverick.config file:

Dispatcher dispatcher =
(Dispatcher)httpContext.Application[Dispatcher.MAVERICK_APPLICATION_KEY];
dispatcher.RelaodConfig(ontext.HttpContext);

This code can be used from anywhere you can get hold
of a HttpContext object. A more elegant approach would
be to make the ReloadCommand class publicly accessible
and avoid code redundancy.

hth.

Aaron

--- mavnet-user-request <at> lists.sourceforge.net wrote:
> Send Mavnet-user mailing list submissions to
> 	mavnet-user <at> lists.sourceforge.net
> 
> To subscribe or unsubscribe via the World Wide Web,
> visit
> 
>
https://lists.sourceforge.net/lists/listinfo/mavnet-user
> or, via email, send a message with subject or body
> 'help' to
> 	mavnet-user-request <at> lists.sourceforge.net
> 
> You can reach the person managing the list at
> 	mavnet-user-admin <at> lists.sourceforge.net
> 
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of Mavnet-user digest..."
> 
> 
> Today's Topics:
> 
>    1. duplicate aspx controllers in subdirectories
> (Michael Porcelli)
> 
> --__--__--
> 
> Message: 1
> From: "Michael Porcelli" <mporch <at> hotmail.com>
> To: <mavnet-user <at> lists.sourceforge.net>
> Date: Wed, 17 Mar 2004 15:27:03 -0800
> Subject: [Mavnet-user] duplicate aspx controllers in
> subdirectories
> Reply-To: mavnet-user <at> lists.sourceforge.net
> 
> I have and aspx controller that I wish to duplicate
> in subdirectories.
> I am wondering if there is a way to do this without
> modifying
> maverick.config.  Here is an illustration of what I
> wish
> 
> ***
> * Directory structure
> *
> / <-- asp.net application root
>  |
>   - maverick.config
>  |
>   - MavPage.aspx
>  | 
>   - SUBDIR-1
>  |  |
>  |   - MavPage.aspx
>  |  |...
>  | 
>   - SUBDIR-2
>  |  |
>  |   - MavPage.aspx
>  |  |...
>  |...
> 
> 
> ***
> * maverick.config
> *
> ..
> <command name='*/MavPage.aspx'> <!-- <--
> hypothetical pattern matching
> syntax -->
>     <view name="success" type='trivial'>
>         <transform path='~/transforms/MavPage.xsl'
> />
>     </view>
> </command>
> ..
> 
> ***
> 
> If the aspx page in question were just a
> plain-vanilla asp.net page,
> then doing something like this is quite easy.  The
>  <at> page directive
> identifies the class name to look up in the assembly
> which is found in
> the bin dir under the app root.  My presentation
> layer uses the
> transform view pattern to do all the styling for my
> aspx pages (while
> leaving the asp.net using the asp.net web controls),
> and I would like to
> have the transform view to 'stick' to the aspx
> location, just as the
> NET class 'sticks' wherever the aspx page appears.
> 
> My motivation for wanting such a strange thing is
> that I have a
> multi-user content-management-like application where
> each user gets a
> subdir and relative links to resources under the
> user's subdir must
> appear on MavPage.aspx.  When a new user creates an
> account, the account
> is initialized by the creation of the subdir and by
> copying MavPage.aspx
> into the subdir.
> 
> If it is not possibly to create a general command
> entry in
> maverick.config that will match the aspx page in
> various subdirs, my
> only choice seems to be to have my application
> modify maverick.config
> during each new user's account initialization.  If
> this is required, I
> would be curious if there is a way to
> programmatically cause mavnet to
> re-load maverick.config (rather than the reload.m
> http request).
> 
> Thanks!
> -m.
> 
> 
> 
> --__--__--
> 
> _______________________________________________
> Mavnet-user mailing list
> Mavnet-user <at> lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/mavnet-user
> 
> 
> End of Mavnet-user Digest

__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
Michael Porcelli | 18 Mar 2004 12:08
Picon
Favicon

RE: Re: Mavnet-user digest, Vol 1 #125 - 1 msg

I put it on the feature request list yesterday afternoon.

-m.

> -----Original Message-----
> From: mavnet-user-admin <at> lists.sourceforge.net [mailto:mavnet-user-
> admin <at> lists.sourceforge.net] On Behalf Of Aaron Clauson
> Sent: Wednesday, March 17, 2004 11:57 PM
> To: mavnet-user <at> lists.sourceforge.net
> Subject: [Mavnet-user] Re: Mavnet-user digest, Vol 1 #125 - 1 msg
> 
> Hi Michael,
> 
> There is no facility in Maverick.Net to allow the
> wldcard path matching you describe. However, it would
> be faily simple to enable and it seems like a
> particularly useful idea.
> 
> To allow this functionality you could just change the
> GetCommand method in the Dispatcher class to use a
> regular expression pattern match, instead of an
> equality one, when deciding which command to use for
> an incoming page request.
> 
> e.g. Instead of:
> ICommand cmd = (ICommand)commands[name];
> 
> something like:
> foreach(string commandPattern in commands.Keys)
> {
>  if(Regex.Match(name,
> Regex.Escape(commandPattern)).Success
>  {
>   return (ICommand)commands[commandPattern];
>  }
> }
> 
> It's also easy enough to programmatically reload the
> Maverick.config file:
> 
> Dispatcher dispatcher =
>
(Dispatcher)httpContext.Application[Dispatcher.MAVERICK_APPLICATION_KEY]
;
> dispatcher.RelaodConfig(ontext.HttpContext);
> 
> This code can be used from anywhere you can get hold
> of a HttpContext object. A more elegant approach would
> be to make the ReloadCommand class publicly accessible
> and avoid code redundancy.
> 
> hth.
> 
> Aaron
> 
> --- mavnet-user-request <at> lists.sourceforge.net wrote:
> > Send Mavnet-user mailing list submissions to
> > 	mavnet-user <at> lists.sourceforge.net
> >
> > To subscribe or unsubscribe via the World Wide Web,
> > visit
> >
> >
> https://lists.sourceforge.net/lists/listinfo/mavnet-user
> > or, via email, send a message with subject or body
> > 'help' to
> > 	mavnet-user-request <at> lists.sourceforge.net
> >
> > You can reach the person managing the list at
> > 	mavnet-user-admin <at> lists.sourceforge.net
> >
> > When replying, please edit your Subject line so it
> > is more specific
> > than "Re: Contents of Mavnet-user digest..."
> >
> >
> > Today's Topics:
> >
> >    1. duplicate aspx controllers in subdirectories
> > (Michael Porcelli)
> >
> > --__--__--
> >
> > Message: 1
> > From: "Michael Porcelli" <mporch <at> hotmail.com>
> > To: <mavnet-user <at> lists.sourceforge.net>
> > Date: Wed, 17 Mar 2004 15:27:03 -0800
> > Subject: [Mavnet-user] duplicate aspx controllers in
> > subdirectories
> > Reply-To: mavnet-user <at> lists.sourceforge.net
> >
> > I have and aspx controller that I wish to duplicate
> > in subdirectories.
> > I am wondering if there is a way to do this without
> > modifying
> > maverick.config.  Here is an illustration of what I
> > wish
> >
> > ***
> > * Directory structure
> > *
> > / <-- asp.net application root
> >  |
> >   - maverick.config
> >  |
> >   - MavPage.aspx
> >  |
> >   - SUBDIR-1
> >  |  |
> >  |   - MavPage.aspx
> >  |  |...
> >  |
> >   - SUBDIR-2
> >  |  |
> >  |   - MavPage.aspx
> >  |  |...
> >  |...
> >
> >
> > ***
> > * maverick.config
> > *
> > ..
> > <command name='*/MavPage.aspx'> <!-- <--
> > hypothetical pattern matching
> > syntax -->
> >     <view name="success" type='trivial'>
> >         <transform path='~/transforms/MavPage.xsl'
> > />
> >     </view>
> > </command>
> > ..
> >
> > ***
> >
> > If the aspx page in question were just a
> > plain-vanilla asp.net page,
> > then doing something like this is quite easy.  The
> >  <at> page directive
> > identifies the class name to look up in the assembly
> > which is found in
> > the bin dir under the app root.  My presentation
> > layer uses the
> > transform view pattern to do all the styling for my
> > aspx pages (while
> > leaving the asp.net using the asp.net web controls),
> > and I would like to
> > have the transform view to 'stick' to the aspx
> > location, just as the
> > NET class 'sticks' wherever the aspx page appears.
> >
> > My motivation for wanting such a strange thing is
> > that I have a
> > multi-user content-management-like application where
> > each user gets a
> > subdir and relative links to resources under the
> > user's subdir must
> > appear on MavPage.aspx.  When a new user creates an
> > account, the account
> > is initialized by the creation of the subdir and by
> > copying MavPage.aspx
> > into the subdir.
> >
> > If it is not possibly to create a general command
> > entry in
> > maverick.config that will match the aspx page in
> > various subdirs, my
> > only choice seems to be to have my application
> > modify maverick.config
> > during each new user's account initialization.  If
> > this is required, I
> > would be curious if there is a way to
> > programmatically cause mavnet to
> > re-load maverick.config (rather than the reload.m
> > http request).
> >
> > Thanks!
> > -m.
> >
> >
> >
> > --__--__--
> >
> > _______________________________________________
> > Mavnet-user mailing list
> > Mavnet-user <at> lists.sourceforge.net
> >
> https://lists.sourceforge.net/lists/listinfo/mavnet-user
> >
> >
> > End of Mavnet-user Digest
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - More reliable, more storage, less spam
> http://mail.yahoo.com
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Mavnet-user mailing list
> Mavnet-user <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mavnet-user

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click

Gmane