I made the suggested changes and still get the same result =
there are 2 "subscriptionForm" beans instead of a single one.

The properties set in "saveSubscription" action are no longer
avaiable when the "forward" to "Welcome.jsp" occurs.



config file now contains------------

  <form-bean
      name="subscriptionForm"
      type="com.borneo.beans.SubscriptionForm">
    </form-bean>


        <action    path="/saveSubscription"

          type="com.borneo.beans.SaveSubscriptionAction"
          name="subscriptionForm"
          scope="session"
          validate="true"
          input="/subscription.jsp">
          <forward name="success"    path="/Welcome.do"/>
          <forward name="subscription"    path="/subscription.jsp"/>
          <!--     <forward name="success"         path="/Welcome"/> -->
        </action>


        <action

        path="/Welcome"
        name="subscriptionForm"
        type="org.apache.struts.actions.ForwardAction"
        parameter="/Welcome.jsp"
        />
i made the changes as per the reply...

JSP's now contain ----------------------------

subscription.jsp

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>

--- I commented the "usebean" that was pointed out in prev. thread

<!-- <jsp:useBean id="subscription" scope="session"
class="com.borneo.beans.SubscriptionForm" />-->


Welcome.jsp

<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>

<html:html locale="true">
<head>
<title><bean:message key="welcome.title"/></title>
<html:base/>

<h3><bean:message key="welcome.heading"/></h3>
<p><bean:message key="welcome.message"/></p>
<a href='<bean:write name="subscriptionForm"  property="jnlpaddr"/>

'>Launch JWS App.</a>


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

Reply via email to