You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Slattery, Tim - BLS" <Sl...@bls.gov> on 2007/04/04 19:34:33 UTC
RE: Moving a Struts app from Weblogic 8 to Weblogic 9
> Thanks for the clarification
> 2 suggestions
>
> <!-- call init() method in ActionServlet class by setting
> load-on-startup-->
> <load-on-startup>1</load-on-startup>
>
> <init-param>
> <param-name>debug</param-name>
> <param-value>1</param-value>
> </init-param>
I don't understand. <load-on-startup>1</load-on-startup> is already
there for ActionServlet.
Struts-config.xml:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration
1.2//EN"
" http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<!-- ========== Form Bean Definitions
=================================== -->
<form-beans>
<form-bean
name="ListBean" type="gov.bls.idcf.freqs.struts.ListBean">
</form-bean>
<form-bean
name="TabBean" type="gov.bls.idcf.freqs.struts.TabBean">
</form-bean>
</form-beans>
<!-- ========== Global Forward Definitions
============================== -->
<global-forwards>
<forward name="Home" path="/index.jsp" redirect="false"/>
<forward name="SystemFailure" path="/content/systemError.jsp"
redirect="false"/>
<forward name="SessionTimeOut" path="/content/sessionTimeout.jsp"
redirect="false"/>
<forward name="InvalidPageRquest"
path="/content/invalidPageRquest.jsp" redirect="false"/>
<forward name="PopupOpenError" path="/content/PopupOpenError.jsp"
redirect="false"/>
<forward name="ClosePopup" path="/content/ClosePopup.jsp"
redirect="false"/>
<forward name="Finish" path="/content/Finish.jsp"
redirect="false"/>
</global-forwards>
<!-- ========== Action Mapping Definitions
============================== -->
<action-mappings>
<action path="/env"
type="gov.bls.idcf.freqs.struts.PickDBAction"
name="ListBean"
scope="request">
<forward name="collect" path="/index.jsp" redirect="false"/>
</action>
<action path="/index"
type="gov.bls.idcf.freqs.struts.HomeAction"
name="ListBean"
input="/index.jsp"
scope="request">
<forward name="collect" path="/index.jsp" redirect="false"/>
</action>
<action path="/gettable"
type="gov.bls.idcf.freqs.struts.GetTable"
name="ListBean"
input="/index.jsp"
scope="request">
<forward name="collect" path="/index.jsp" redirect="false"/>
</action>
<action path="/getfield"
type="gov.bls.idcf.freqs.struts.GetField"
name="ListBean"
input="/index.jsp"
scope="request">
<forward name="collect" path="/index.jsp" redirect="false"/>
</action>
<action path="/tabulate"
type="gov.bls.idcf.freqs.struts.Tabulate"
name="ListBean"
scope="request"
input="/index.jsp">
<forward name="tabpage" path="/content/tabpage.jsp"
redirect="false"/>
</action>
</action-mappings>
<message-resources parameter="freqs" null="false"/>
</struts-config>
I see that BEA has a Usenet server for their groups. So I used that
instead of trying to figure out the web interface. No response yer.
--
Tim Slattery
Slattery_T@bls.gov
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: Moving a Struts app from Weblogic 8 to Weblogic 9
Posted by "Slattery, Tim - BLS" <Sl...@bls.gov>.
> Hi Tim
>
> For some reason I dont see your controller mappings (here is
> an example from my struts-config.xml)
> <action-mappings>
> <action type="Controller" validate="false" scope="request"
> path="/begin">
> <forward path="/index.jsp" name="index"/>
> </action>
> </action-mappings>
> <controller
> processorClass="com.bea.wlw.netui.pageflow.PageFlowRequestProcessor"/>
I have no clue what a controller mapping is.
--
Tim Slattery
Slattery_T@bls.gov
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Moving a Struts app from Weblogic 8 to Weblogic 9
Posted by Martin Gainty <mg...@hotmail.com>.
Hi Tim
For some reason I dont see your controller mappings (here is an example from
my struts-config.xml)
<action-mappings>
<action type="Controller" validate="false" scope="request"
path="/begin">
<forward path="/index.jsp" name="index"/>
</action>
</action-mappings>
<controller
processorClass="com.bea.wlw.netui.pageflow.PageFlowRequestProcessor"/>
*IF* your DTD will validate the property e.g.
<!--
DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED
DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED ** DEPRECATED
The "field" element defines the properties to be validated. In a
web application, a field would also correspond to a control on
a HTML form. To validate the properties, the validator works through
a JavaBean representation, like a Struts ActionForm. The field element
can accept up to 4 attributes:
property The property on the JavaBean corresponding to this
field element.
then in \WEB-INF\validator-rules.xml I would set the locations of the
validator-rules and validation.xml as in this example for ValidatorPlugIn..
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml"/>
</plug-in>
-->
so the Path of least resistance is to DISABLE the property validation in
your DTD by commenting out the entry (this would negate the need for
specific setting of property pathnames for validator-rules.xml and
validation.xml
Does this help ???
Martin --
P.S.I would like to ask you a dumb question offline when you get a chance
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: "Slattery, Tim - BLS" <Sl...@bls.gov>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Wednesday, April 04, 2007 1:34 PM
Subject: RE: Moving a Struts app from Weblogic 8 to Weblogic 9
> Thanks for the clarification
> 2 suggestions
>
> <!-- call init() method in ActionServlet class by setting
> load-on-startup-->
> <load-on-startup>1</load-on-startup>
>
> <init-param>
> <param-name>debug</param-name>
> <param-value>1</param-value>
> </init-param>
I don't understand. <load-on-startup>1</load-on-startup> is already
there for ActionServlet.
Struts-config.xml:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration
1.2//EN"
" http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<!-- ========== Form Bean Definitions
=================================== -->
<form-beans>
<form-bean
name="ListBean" type="gov.bls.idcf.freqs.struts.ListBean">
</form-bean>
<form-bean
name="TabBean" type="gov.bls.idcf.freqs.struts.TabBean">
</form-bean>
</form-beans>
<!-- ========== Global Forward Definitions
============================== -->
<global-forwards>
<forward name="Home" path="/index.jsp" redirect="false"/>
<forward name="SystemFailure" path="/content/systemError.jsp"
redirect="false"/>
<forward name="SessionTimeOut" path="/content/sessionTimeout.jsp"
redirect="false"/>
<forward name="InvalidPageRquest"
path="/content/invalidPageRquest.jsp" redirect="false"/>
<forward name="PopupOpenError" path="/content/PopupOpenError.jsp"
redirect="false"/>
<forward name="ClosePopup" path="/content/ClosePopup.jsp"
redirect="false"/>
<forward name="Finish" path="/content/Finish.jsp"
redirect="false"/>
</global-forwards>
<!-- ========== Action Mapping Definitions
============================== -->
<action-mappings>
<action path="/env"
type="gov.bls.idcf.freqs.struts.PickDBAction"
name="ListBean"
scope="request">
<forward name="collect" path="/index.jsp" redirect="false"/>
</action>
<action path="/index"
type="gov.bls.idcf.freqs.struts.HomeAction"
name="ListBean"
input="/index.jsp"
scope="request">
<forward name="collect" path="/index.jsp" redirect="false"/>
</action>
<action path="/gettable"
type="gov.bls.idcf.freqs.struts.GetTable"
name="ListBean"
input="/index.jsp"
scope="request">
<forward name="collect" path="/index.jsp" redirect="false"/>
</action>
<action path="/getfield"
type="gov.bls.idcf.freqs.struts.GetField"
name="ListBean"
input="/index.jsp"
scope="request">
<forward name="collect" path="/index.jsp" redirect="false"/>
</action>
<action path="/tabulate"
type="gov.bls.idcf.freqs.struts.Tabulate"
name="ListBean"
scope="request"
input="/index.jsp">
<forward name="tabpage" path="/content/tabpage.jsp"
redirect="false"/>
</action>
</action-mappings>
<message-resources parameter="freqs" null="false"/>
</struts-config>
I see that BEA has a Usenet server for their groups. So I used that
instead of trying to figure out the web interface. No response yer.
--
Tim Slattery
Slattery_T@bls.gov
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org