This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Portals and Portlets and the fly likes Migration of Portal from 5.1 to 6.1 issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "Migration of Portal from 5.1 to 6.1 issues" Watch "Migration of Portal from 5.1 to 6.1 issues" New topic
Author

Migration of Portal from 5.1 to 6.1 issues

Deboshree Roy
Greenhorn

Joined: Oct 03, 2007
Posts: 21
I'm Migrating my application built on Portal(JSR-168) 5.1 and WAS 5.1 environment to Portal and WAS 6.1 environment on RA 7.5.

In some of the modules I'm facing issues when I try to pass data from JSP page to Action class setting the value on session object.

In one of the Module:

The records are visible from database,however , the application throws a Null Pointer exception when any record on the page for view.
id of the record set in jsp page is not being retrieved in the Action class. Please find below the code extract on the jsp page and the corresponding action it is being forwarded to.

In JSP:
<html:link action="/ACViewCertificateAction.do" paramName="innerCertAddenList" paramId="CERT_ID"paramProperty="certificateId">
<bean:write name="innerCertAddenList" property="clientName" />
</html:link>

In Action:
certificateID = request.getParameter(ACCommonConstantsIF.AC_CERTIFICATE_ID);(PortletRequest request,public static final String AC_CERTIFICATE_ID = "CERT_ID";)


In User Administration:

The List of records fetched into the Action class,set in the PortletSession is not being recognized in the forwarded JSP page:

In ACUserListAction:
fullList = getLDAPList();
System.out.println("*******fullList in User List Action*******"+fullList.size());//Size is 1490
request.getPortletSession().setAttribute(
ACCommonConstantsIF.LDAP_FULL_LIST, fullList);
servletRequest.getSession().setAttribute(
ACCommonConstantsIF.LDAP_FULL_LIST, fullList);
Collections.sort(fullList, comparator);
acUserForm.setAcOrganisationList(organisationList);
acUserForm.setAcLdapUsersList(fullList);
request.getPortletSession().setAttribute(
ACCommonConstantsIF.LDAP_USERS_LIST, fullList);
marshUsers = (ArrayList) ACCommonUtil.doPaging(request,
selectedPage, fullList,
ACCommonConstantsIF.VIEW_LIST_PAGEITERATOR);
request.getPortletSession().setAttribute(
ACCommonConstantsIF.LDAP_SELECTED_USERS_LIST, marshUsers);
servletRequest.getSession().setAttribute(
ACCommonConstantsIF.LDAP_SELECTED_USERS_LIST, marshUsers);

In ACUserViewByName.jsp:
<table class="portlet-menu">
<TBODY>
<logic:notEmpty name="LDAPSelectedUsersList" scope="session">
<tr class="wpsTableHead">
<td class="wpsTableSectionHead"><bean:message
key="User.LoginName.List" /></td>
<td class="wpsTableSectionHead"><bean:message
key="User.Name.List" /></td>
<td class="wpsTableSectionHead"><bean:message
key="User.Company.List" /></td>
<td class="wpsTableSectionHead"><bean:message
key="User.EmailAddress.List" /></td>
</tr>
<logic:iterate name="LDAPSelectedUsersList" id="userList1"
type=" com.marsh.ac.dvo.ACUserDVO" scope="session">
<%com.marsh.ac.dvo.ACUserDVO userDVO = null;
if (userList1 instanceof com.marsh.ac.dvo.ACUserDVO) {
userDVO = (com.marsh.ac.dvo.ACUserDVO) userList1;
%>
<tr class="wpsTableRow">
<TD class="wpsTableHeadLink" <br /> >
<bean:write name="userList1" property="loginName" />
</td>
<td class="portlet-menu"><bean:write name="userList1"
property="firstName" /> <bean:write name="userList1"
property="lastName" /></td>
<td class="portlet-menu"><logic:notEmpty name="userList1"
property="company">
<bean:write name="userList1" property="company" />
</logic:notEmpty>
<logic:empty name="userList1"
property="company"> </logic:empty></td>
<td class="portlet-menu"><bean:write name="userList1"
property="emailAddress" /></td>
</tr>
<%
}
%>
</logic:iterate>
</logic:notEmpty>

<logic:empty name="LDAPSelectedUsersList" scope="session">
<tr>
<td class="wpsPortletHead"><bean:message key="User.RecordsNotFound" /></td>
</tr>
</logic:empty>


(Currently control in returning to the JSP without any list of records).

If anybody has faced such issue in MIgration can you please help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Migration of Portal from 5.1 to 6.1 issues
 
Similar Threads
multiple forms data within sigle JSP page
Problem with html:select
Making a bean collected from a collection in a page, available in a subsequent page
How to Introduce a Button That Controls All Other Links in a Web Page
populate data form different DyanactionForms in single JSP