beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Azat <aza...@yahoo.com>
Subject Re: StrutsApp usage
Date Wed, 08 Dec 2004 19:03:36 GMT
Thank you, Rich.
I got it working.

Azat

--- Richard Feit <richard.feit@bea.com> wrote:

> Whoops, I meant findActionConfigs, not findActionMappings.  But you're 
> right -- the ActionConfigs you get back *are* your ActionMappings.  So I 
> think you're in good shape.
> 
> Rich
> 
> Azat wrote:
> 
> >Rich,
> >
> >  I really appreciate your quick answer. Now it makes sense and I guess
> since I
> >cannot find config.ModuleConfig.findActionMappings() it's been updated to
> this:
> >
> >  ModuleConfig.findActionConfigs() and then use ActionConfig object to
> access
> >ActionMapping's paths, type etc
> >
> >  Please correct if I am still wrong.
> >
> >Azat
> >
> >--- Richard Feit <richard.feit@bea.com> wrote:
> >
> >  
> >
> >>Hi Azat,
> >>
> >>StrutsApp is actually an internal class used by the NetUI Page Flow 
> >>annotation processor.  It's normally not available at runtime, because 
> >>netui-compiler.jar isn't added to WEB-INF/lib (it's used only when 
> >>compiling/processing page flow source files, to generate struts-config 
> >>files).
> >>
> >>You should be able to get all your ActionMappings through 
> >>org.apache.struts.config.ModuleConfig.findActionMappings() (where the 
> >>current ModuleConfig is in a request attribute defined by 
> >>org.apache.struts.Globals.MODULE_KEY).  Does this work for you?
> >>
> >>Rich
> >>
> >>Azat wrote:
> >>
> >>    
> >>
> >>>Hi folks,
> >>>
> >>> I am trying to get access to all ActionMappings in my app. I noticed
> there
> >>>were a few packages (beehive, expresso, velocity) that had
> >>>      
> >>>
> >>getActionMappings()
> >>    
> >>
> >>>method for that purpose. But they are all deprecated by now.
> >>>
> >>> I'd appreciate if someone could explain (or point to the right place )
> why
> >>>getActionMappings() is no longer available in Struts, or could show how to
> >>>      
> >>>
> >>use
> >>    
> >>
> >>>StrutsApp () constructor in beehive. I tried 
> >>>
> >>>StrutsApp sa = new StrutsApp("");
> >>>StrutsApp sa = new StrutsApp("org.apache.struts.action.Action"); and
> >>>StrutsApp sa = new StrutsApp("org.apache.struts.action.ActionServlet");
> >>>
> >>>both make JBoss 3.2.3 crash :
> >>>
> >>>An unexpected exception has been detected in native code outside the VM.
> >>>Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at
> >>>PC=0x14010220
> >>>Function=[Unknown.]
> >>>Library=(N/A)
> >>>
> >>>NOTE: We are unable to locate the function name symbol for the error
> >>>     just occurred. Please refer to release documentation for possible
> >>>     reason and solutions.
> >>>
> >>>
> >>>Current Java thread:
> >>>	at java.lang.Class.getClassLoader0(Native Method)
> >>>	at java.lang.Class.getClassLoader(Class.java:508)
> >>>	at java.lang.Class.desiredAssertionStatus(Class.java:2055)
> >>>	at
> >>>      
> >>>
>
>>org.apache.beehive.netui.compiler.model.StrutsApp.<clinit>(StrutsApp.java:45)
> >>    
> >>
> >>>	at
> com.kaiser.pas.action.session.LoginAction.doExecute(LoginAction.java:60)
> >>>.... etc ....
> >>>
> >>>
> >>>		
> >>>__________________________________ 
> >>>Do you Yahoo!? 
> >>>Yahoo! Mail - now with 250MB free storage. Learn more.
> >>>http://info.mail.yahoo.com/mail_250
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Tired of spam?  Yahoo! Mail has the best spam protection around 
> >http://mail.yahoo.com 
> >
> >  
> >
> 



	
		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

Mime
View raw message