Recipients --> Overview --> add column "Company"

Use this forum for all questions related to the source code of OpenEMM

Moderator: moderator

Re: Recipients --> Overview --> add column "Company"

Postby mokarram » Wed Mar 14, 2012 7:00 pm

So I manged to complete the complie process. What I did was to go to the /home/openemm/webapps/openemm/classes and from there created a jar file:

Code: Select all
jar cvf my.jar org


Then I have collected all of the jars and placed them into /home/java

The next thing is to javac and point the claaspath argument to /home/java and complie:

Code: Select all
javac -classpath .:/home/java/*  /home/oe/OpenEMM-2011-src/src/java/org/agnitas/dao/impl/RecipientDaoImpl.java


So the code I modified was what you mentioned before in recipientdaoimpl.java:

Code: Select all
            customerData.put("gender", row.get("GENDER"));
            customerData.put("firstname", row.get("FIRSTNAME"));
            customerData.put("lastname", row.get("LASTNAME"));
            customerData.put("email",row.get("EMAIL"));
        customerData.put("provincia",row.get("PROVINCIA"));
            newBean.setCustParameters(customerData);


added "PROVINCIA" and compiled with no errors.

Then I went to change recipient-lis.jsp :
Code: Select all
<display:column class="name" headerClass="head_name" property="provincia" titleKey="recipient.Provincia" sortable="true" />


Still no luck.

Code: Select all
   org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: ServletException in 'recipient/recipient-list.jsp': javax.servlet.jsp.JspException: Exception: [.LookupUtil] Error looking up property "provincia" in object type "org.agnitas.beans.impl.RecipientImpl". Cause: Unknown property 'provincia
mokarram
 
Posts: 32
Joined: Thu Jan 19, 2012 11:27 pm

Previous

Return to Development

Who is online

Users browsing this forum: No registered users and 0 guests

cron