<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest topics for the forum "J2EE Application Development"]]></title>
		<link>http://forums.hotjoe.com/forums/show/9.page</link>
		<description><![CDATA[The newest discussed topics in the forum "J2EE Application Development"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>EJB 2.0 bean joining EJB 3 bean transaction?</title>
				<description><![CDATA[ If you start a transaction using EJB 3 and call a method of an EJB 2 bean, will the EJB 2 bean acknowledge the transaction?]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/839/3044.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/839/3044.page</link>
				<pubDate><![CDATA[Tue, 21 Dec 2010 10:28:33]]> GMT</pubDate>
				<author><![CDATA[ andrew222]]></author>
			</item>
			<item>
				<title>Best Java WS framework for REST WS dev</title>
				<description><![CDATA[ Hello,<br /> I would like to ask what is the best open source Java framework for developing REST Web Services.  Perhaps Apache CXF or Spring-WS?<br /> ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/838/3042.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/838/3042.page</link>
				<pubDate><![CDATA[Tue, 21 Dec 2010 08:03:45]]> GMT</pubDate>
				<author><![CDATA[ andrew222]]></author>
			</item>
			<item>
				<title>Castor XSD Code Generation ANT task: mapping  XML file?</title>
				<description><![CDATA[ Hello,<br /> <br /> I am new to Castor and am using the Castor Code Generator ANT task to generate code from a XSD schema file.<br /> <br /> I am using a binding XML file as well.  One thing that I have a question about is the needed XML mapping file.  I set the ‘[b]generateMapping[/b]’ attribute to ‘true’ but have not found a mapping XML document.<br />  <br /> Is there something I am doing wrong?<br /> <br /> I have attached the XSD files(some are imported), binding XML file and the ANT build.xml file in a .zip file to this post.<br /> <br /> Thanks in advance,<br /> <br /> Andrew<br /> ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/818/3012.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/818/3012.page</link>
				<pubDate><![CDATA[Sun, 28 Nov 2010 10:52:37]]> GMT</pubDate>
				<author><![CDATA[ andrew222]]></author>
			</item>
			<item>
				<title>Problem with JSP, Beans and Servlets</title>
				<description><![CDATA[ Hey all,<br /> <br /> I'm having a problem understanding how jsp beans work:<br /> <br /> I'm doing a login form and i'm having problems passing the information given by the user to the servlet.<br /> I'm trying to use a bean as follows :<br /> <br /> [code]<br /> &lt;jsp:useBean id="db" class="Beans.IdBean" scope="session" /&gt;<br /> &lt;jsp:setProperty name="db" property="*" /&gt;<br /> &lt;html&gt;<br />     &lt;head&gt;<br />         &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;<br />     &lt;/head&gt;<br />     &lt;body&gt;<br />        &lt;form action="/WebApplication5/Servlet_Login" method="post"&gt;<br />         Username: &lt;input type="text" name="userName" size="10"&gt;<br />         Password: &lt;input type="password" name="passWord" size="10"&gt;<br />         &lt;input type="submit" value="Validate!"&gt;<br />         &lt;/form&gt;<br />     &lt;/body&gt;<br /> &lt;/html&gt;<br /> [/code]<br /> <br /> I've made sure that the name of the fields in the input(userName & passWord) is exactly as the one in the set and get methods of the bean, so supposedly the fields userName and passWord should be filled with the user's input right?<br /> <br /> Now in the servlet i'm trying to retrieve the information like this:<br /> <br /> [code]<br /> protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, RemoteException<br />     {<br />         HttpSession ses = request.getSession();<br />         IdBean id = (IdBean) ses.getAttribute("db");<br />         //String user = request.getParameter("userName");<br />         //String pass =  request.getParameter("passWord");<br />         String user = id.getUserName();<br />         String pass = id.getPassWord();<br />         System.out.println(user);<br />         System.out.println(pass);<br />     }<br /> [/code]<br /> <br /> I keep getting null when i print the variables user and pass. (and i know i could just do request.getParameter("nameofvariable") but i need to use beans)<br /> Can anyone help me? What am i doing wrong? Or, am i even doing anything right?=P<br /> <br /> <br /> Thanks in advance.<br /> <br /> (Bean code in case anyone wants to see it)<br /> <br /> [code]<br /> public class IdBean<br /> {<br />     String userName;<br />     String passWord;<br />     public String getPassWord()<br />     {       return passWord;    }<br /> <br />     public void setPassWord(String passWord)<br />     {        this.passWord = passWord;    }<br /> <br />     public String getUserName()<br />     {        return userName;    }<br /> <br />     public void setUserName(String userName)<br />     {        this.userName = userName;    }<br /> <br /> }[/code]<br /> <br /> ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/804/2976.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/804/2976.page</link>
				<pubDate><![CDATA[Wed, 10 Nov 2010 13:01:34]]> GMT</pubDate>
				<author><![CDATA[ joaoalex7]]></author>
			</item>
			<item>
				<title>JShooter (Reflect in Network Framework)</title>
				<description><![CDATA[ JShooter (Reflect in Network Framework)<br /> <br /> It's one part of Shine enterprise pattern.<br /> <br /> JShooter is a framework for distributing application programs on the network. Certainly, you have used RMI, Corba and JMS. Each of aforementioned technologies has its own special problems and at the same time enjoys extraordinary advantages. However, you must be careful about the expenses caused by these technologies. In most cases RMI, Corba and JMS increase the productions’ costs unbelievably. However in other cases they confuse programmers. Years ago, Reflect Oriented Programming was the focus of attention within professional programmers, then Aspect Oriented Programming came into the programming world but instead of reducing the programmer’s task, it causes the professional programmers and even the amateur ones to be confused in many cases. One of the most important capabilities of JShooter is that it makes the “Reflect Oriented Programming” easier to use.<br /> <br /> try it on :<br /> <br /> <a class="snap_shots" href="http://sourceforge.net/projects/shine-enterpris/" target="_blank" rel="nofollow">http://sourceforge.net/projects/shine-enterpris/</a><br /> <br /> Marzie Ameri]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/772/2792.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/772/2792.page</link>
				<pubDate><![CDATA[Tue, 3 Aug 2010 08:43:33]]> GMT</pubDate>
				<author><![CDATA[ ameri]]></author>
			</item>
			<item>
				<title>what is maplet Framework and whats its benefits</title>
				<description><![CDATA[ Maplet framework is a part of shine enterprise java pattern<br /> it is really amazing because of <br /> 1 - Using MVC 100%<br /> 2 - service oriented<br /> 3 - converting .properties file to .java<br /> 3 - and using the reflect  :thumbup: <br /> reflect lets you to speed up the program execution. i mean that maplet is faster then servlet<br /> and this is only possible with reflect oriented frameworks like Maplet framework<br /> <br /> this is my code if you want to check<br />  to read more search for shine enterprise java  pattern.<br /> <br /> good Luck<br /> <br /> fileName : maplet.tld<br /> [code]&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br /> &lt;!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN"&gt;<br /> &quot;http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd&quot;&gt;<br /> &lt;taglib&gt;<br />   &lt;tlibversion&gt;1.0&lt;/tlibversion&gt;<br />   &lt;jspversion&gt;1.1&lt;/jspversion&gt;<br />   &lt;shortname&gt;maplet&lt;/shortname&gt;<br />   &lt;tag&gt;<br />     &lt;name&gt;Service&lt;/name&gt;<br />     &lt;tagclass&gt;org.j2os.shine.maplet.tag.Service&lt;/tagclass&gt;<br />     &lt;bodycontent&gt;JSP&lt;/bodycontent&gt;<br />     &lt;attribute&gt;<br />       &lt;name&gt;name&lt;/name&gt;<br />     &lt;/attribute&gt;<br />   &lt;/tag&gt;<br />   &lt;tag&gt;<br />     &lt;name&gt;SecureService&lt;/name&gt;<br />     &lt;tagclass&gt;org.j2os.shine.maplet.tag.SecureService&lt;/tagclass&gt;<br />     &lt;bodycontent&gt;JSP&lt;/bodycontent&gt;<br />     &lt;attribute&gt;<br />       &lt;name&gt;name&lt;/name&gt;<br />     &lt;/attribute&gt;<br />   &lt;/tag&gt;<br />   &lt;tag&gt;<br />     &lt;name&gt;ErrorService&lt;/name&gt;<br />     &lt;tagclass&gt;org.j2os.shine.maplet.tag.ErrorService&lt;/tagclass&gt;<br />     &lt;bodycontent&gt;JSP&lt;/bodycontent&gt;<br />   &lt;/tag&gt;<br />   &lt;tag&gt;<br />     &lt;name&gt;Resource&lt;/name&gt;<br />     &lt;tagclass&gt;org.j2os.shine.maplet.tag.Resource&lt;/tagclass&gt;<br />     &lt;bodycontent&gt;JSP&lt;/bodycontent&gt;<br />     &lt;attribute&gt;<br />       &lt;name&gt;show&lt;/name&gt;<br />     &lt;/attribute&gt;<br />     &lt;attribute&gt;<br />       &lt;name&gt;from&lt;/name&gt;<br />     &lt;/attribute&gt;<br />   &lt;/tag&gt;<br />   &lt;tag&gt;<br />     &lt;name&gt;DataTable&lt;/name&gt;<br />     &lt;tagclass&gt;org.j2os.shine.maplet.tag.DataTable&lt;/tagclass&gt;<br />     &lt;bodycontent&gt;JSP&lt;/bodycontent&gt;<br />   &lt;/tag&gt;<br />   &lt;tag&gt;<br />     &lt;name&gt;DataRow&lt;/name&gt;<br />     &lt;tagclass&gt;org.j2os.shine.maplet.tag.DataRow&lt;/tagclass&gt;<br />     &lt;bodycontent&gt;JSP&lt;/bodycontent&gt;<br />   &lt;/tag&gt;<br /> &lt;/taglib&gt;[/code]<br /> <br /> <br /> <br /> <br /> fileName : Resuest.jsp<br /> <br /> [code]&lt;%@ taglib uri="/WEB-INF/maplet.tld" prefix="maplet"%&gt;<br /> &lt;html&gt;<br />   &lt;body&gt;<br />     &lt;form name="myform" action="Core.exec"&gt;<br />       &lt;maplet:Resource show="msg1"/&gt;<br />       &lt;input type="text" name="name"/&gt;<br />       &lt;input type="submit" value="ClassicSendQuery"/&gt;<br />     &lt;/form&gt;<br />   &lt;/body&gt;<br /> &lt;/html&gt;<br /> [/code]<br /> <br /> <br /> fileName : Response.jsp<br /> [code]&lt;%@ page contentType="text/html;charset=windows-1252"%&gt;<br /> &lt;%@ taglib uri="/WEB-INF/maplet.tld" prefix="maplet"%&gt;<br /> &lt;maplet:SecureService name="insert"&gt;<br /> <br /> &lt;/maplet:SecureService&gt;<br /> &lt;maplet:ErrorService&gt;<br />   &lt;maplet:Resource show="msg2"/&gt;<br />   &lt;maplet:DataTable&gt;<br />     &lt;database-driver&gt;oracle.jdbc.driver.OracleDriver&lt;/database-driver&gt; <br />     &lt;database-url&gt;jdbc:oracle:thin:@javaserver:1521:xe&lt;/database-url&gt; <br />     &lt;database-username&gt;iranair&lt;/database-username&gt; <br />     &lt;database-password&gt;iran123&lt;/database-password&gt; <br />     &lt;database-query-sql&gt;select * from users&lt;/database-query-sql&gt;<br />     &lt;view-border&gt;style="background-color: red; border: 1px solid"&lt;/view-border&gt; <br />     &lt;view-header&gt;style="background-color: green; border: 5px solid"&lt;/view-header&gt; <br />     &lt;view-first-records&gt;style="background-color: pink"&lt;/view-first-records&gt;<br />     &lt;view-second-records&gt;style="background-color: gray"&lt;/view-second-records&gt; <br />   &lt;/maplet:DataTable&gt;<br /> &lt;/maplet:ErrorService&gt;[/code]<br /> <br /> <br /> <br /> <br /> fileName : Core.java<br /> [code]package controller;<br /> <br /> import model.database.dao.T1DAO;<br /> <br /> import org.j2os.shine.maplet.Maplet;<br /> <br /> <br /> public class Core extends Maplet {<br />     private T1DAO t1;<br />     public String name;<br /> <br />     public void startup() throws Exception {<br />         try {<br />             t1 = new T1DAO("model/database/setting/Connection.xml");<br />             System.out.println("DataBaseLogin");<br />         } catch (Exception e) {<br />             out.print(e);<br />         }<br />     }<br /> <br />     public void request() throws Exception {<br />         t1.insert(0, name, "none");<br />         secureForward("Response.jsp", "insert");<br />     }<br /> }[/code]<br /> <br /> <br /> <br /> <br /> fileName : T1DAO.java<br /> [code]package model.database.dao;<br /> <br /> import model.database.dto.*;<br /> <br /> import org.j2os.shine.jconnection.*;<br /> <br /> import java.util.*;<br /> <br /> <br /> public class T1DAO extends Hibernate {<br />     public T1DAO(String address) throws Exception {<br />         login(address);<br />     }<br /> <br />     public void insert(long id, String name, String famil)<br />         throws Exception {<br />         // if id!=0 =&gt; update<br />         begin();<br /> <br />         T1 object = new T1();<br />         object.setId(id);<br />         object.setName(name);<br />         object.setFamil(famil);<br />         saveOrUpdate(object);<br />         commit();<br />     }<br /> <br />     public void delete() throws Exception {<br />         begin();<br /> <br />         Iterator i = getSQLQueryContent("select * from t1",<br />                 "model.database.dto.T1");<br /> <br />         while (i.hasNext()) {<br />             T1 object = (T1) i.next();<br />             delete(object);<br />         }<br /> <br />         commit();<br />     }<br /> <br />     public void update() throws Exception {<br />         begin();<br /> <br />         Iterator i = getSQLQueryContent("select * from t1",<br />                 "model.database.dto.T1");<br /> <br />         while (i.hasNext()) {<br />             T1 object = (T1) i.next();<br />             object.setFamil("bahador");<br />             saveOrUpdate(object);<br />         }<br /> <br />         commit();<br />     }<br /> <br />     public void select() throws Exception {<br />         begin();<br /> <br />         Iterator i = getSQLQueryContent("select * from t1",<br />                 "model.database.dto.T1");<br /> <br />         while (i.hasNext()) {<br />             T1 object = (T1) i.next();<br />             System.out.println(object.getName());<br />         }<br /> <br />         commit();<br />     }<br /> }<br /> [/code]<br /> <br /> <br /> <br /> fileName : T1.java<br /> [code]package model.database.dto;<br /> import org.j2os.shine.maplet.tag.DataTable;<br /> public class T1 {<br />     private long id;<br />     private String name;<br />     private String famil;<br /> <br />     public void setName(String name) {<br />         this.name = name;<br />     }<br /> <br />     public String getName() {<br />         return name;<br />     }<br /> <br />     public void setFamil(String famil) {<br />         this.famil = famil;<br />     }<br /> <br />     public String getFamil() {<br />         return famil;<br />     }<br /> <br />     public void setId(long id) {<br />         this.id = id;<br />     }<br /> <br />     public long getId() {<br />         return id;<br />     }<br /> }[/code]<br /> <br /> <br /> <br /> fileName : T1.xml<br /> [code]&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;<br /> &lt;!DOCTYPE hibernate-mapping PUBLIC &gt;<br /> 	"-//Hibernate/Hibernate Mapping DTD 3.0//EN"<br /> 	&quot;http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd&quot;&gt;<br /> &lt;hibernate-mapping package="model.database.dto"&gt;<br />   &lt;class name="T1" table="T1" dynamic-update="true" dynamic-insert="true"&gt;<br />     &lt;id name="id" type="long" column="id"&gt;<br />       &lt;generator class="increment"/&gt;<br />     &lt;/id&gt;<br />     &lt;property name="name" type="java.lang.String" column="name" insert="true" update="true"/&gt;<br />     &lt;property name="famil" type="java.lang.String" column="famil" insert="true" update="true"/&gt;<br />   &lt;/class&gt;<br /> &lt;/hibernate-mapping&gt;<br /> [/code]<br /> <br /> <br /> <br /> fileName : Connection.xml<br /> <br /> [code]&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br /> &lt;!DOCTYPE hibernate-configuration PUBLIC&gt;<br /> "-//Hibernate/Hibernate Configuration DTD//EN"<br /> &quot;http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd&quot;&gt;<br /> &lt;hibernate-configuration&gt;<br />   &lt;session-factory&gt;<br />     &lt;property name="hibernate.connection.driver_class"&gt;oracle.jdbc.driver.OracleDriver&lt;/property&gt;<br />     &lt;property name="hibernate.connection.url"&gt;jdbc:oracle:thin:@javaserver:1521:xe&lt;/property&gt;<br />     &lt;property name="hibernate.connection.username"&gt;root&lt;/property&gt;<br />     &lt;property name="hibernate.connection.password"&gt;root&lt;/property&gt;<br />     &lt;property name="hibernate.connection.pool_size"&gt;10&lt;/property&gt;<br />     &lt;property name="show_sql"&gt;true&lt;/property&gt;<br />     &lt;property name="dialect"&gt;org.hibernate.dialect.GenericDialect&lt;/property&gt;<br />     &lt;mapping resource="model/database/dto/T1.xml"/&gt;<br />   &lt;/session-factory&gt;<br /> &lt;/hibernate-configuration&gt;[/code]<br /> <br /> <br /> <br /> <br /> fileName : EN.java<br /> <br /> [code]package resource;<br /> <br /> public class EN {<br />     public String msg1 = "insert your name";<br />     public String msg2 = "finish";<br /> }[/code]<br /> <br /> <br /> <br /> <br /> fileName : FA.java<br /> [code]package resource;<br /> <br /> public class FA {<br />     public String msg1 = "&#1606;&#1575;&#1605; &#1585;&#1575; &#1608;&#1575;&#1585;&#1583; &#1705;&#1606;&#1740;&#1583;";<br />     public String msg2 = "&#1575;&#1578;&#1605;&#1575;&#1605;";<br /> }[/code]<br /> ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/771/2791.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/771/2791.page</link>
				<pubDate><![CDATA[Tue, 3 Aug 2010 08:08:19]]> GMT</pubDate>
				<author><![CDATA[ john.stalin.java]]></author>
			</item>
			<item>
				<title>Pdf viewer using java</title>
				<description><![CDATA[ Hi Forum,<br /> <br />     I  developing an pdf viewer which suppose to use view pdf while loading in to editor , i am using swings to do this . i success-ed up to load pdf file and view using some open source code . now the pdf files shows in a single page view , i want to make it double page , like book view.<br /> how can i do this ?<br /> please give your ideas regarding , i am unable to find the logic , i tried for many source codes to take as reference but i didnt get any one.<br /> Is there any specific way ?<br /> <br />                                                     thanks in advance..............  ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/755/2750.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/755/2750.page</link>
				<pubDate><![CDATA[Sat, 19 Jun 2010 05:28:56]]> GMT</pubDate>
				<author><![CDATA[ zeebelgium]]></author>
			</item>
			<item>
				<title>EJB 3.0 @Resource error.</title>
				<description><![CDATA[ We are using RAD 7 + Websphere 7 app server and I was trying to use @Resource annotation to call a datasource from my EJB. when I used,<br /> <br /> ic = new InitialContext();<br /> dataSource=(DataSource)ic.lookup("jdbc/UPM");<br /> <br /> it works fine!<br /> <br /> but when I use,<br /> <br /> @Resource(name="jdbc/UPMDbDs")<br /> 	private DataSource dataSource;<br /> <br /> it doesn't work. Should I do something more to use @Resource annotation and What can I do for this? :( <br /> <br /> Error is:<br /> <br /> [5/17/10 9:26:54:343 IST] 0000001e InjectionProc E   CWNEN0044E: A resource reference binding could not be found for the jdbc/UPM resource reference, defined for the Inventory component.<br /> [5/17/10 9:26:54:390 IST] 0000001e InjectionEngi E   CWNEN0011E:  The injection engine failed to process bindings for the metadata.<br /> [5/17/10 9:26:54:406 IST] 0000001e ComponentName E   CNTR0125E: Unable to process injection information for class: [class org.sampath.pos.ejb.dbaccess.Inventory].<br /> [5/17/10 9:26:54:406 IST] 0000001e EJBMDOrchestr E   CNTR0035E: EJB container caught com.ibm.wsspi.injectionengine.InjectionException: Failed to process bindings for metadata<br /> 	at com.ibm.ws.injectionengine.InjectionEngineImpl.processBindings(InjectionEngineImpl.java:488)<br /> 	at com.ibm.ws.injectionengine.InjectionEngineImpl.processInjectionMetaData(InjectionEngineImpl.java:285)<br /> 	at com.ibm.ws.util.ComponentNameSpaceHelper.populateJavaNameSpace(ComponentNameSpaceHelper.java:806)<br /> 	at com.ibm.ws.util.ComponentNameSpaceHelper.populateJavaNameSpace(ComponentNameSpaceHelper.java:519)<br /> 	at com.ibm.ws.metadata.ejb.EJBMDOrchestrator.finishBMDInit(EJBMDOrchestrator.java:1842)<br /> 	at com.ibm.ws.runtime.component.EJBContainerImpl.finishDeferredBeanMetaData(EJBContainerImpl.java:5034)<br /> 	at com.ibm.ws.runtime.component.EJBContainerImpl.initializeDeferredEJB(EJBContainerImpl.java:4832)<br /> 	at com.ibm.ejs.container.HomeOfHomes$1.run(HomeOfHomes.java:404)<br /> 	at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)<br /> 	at com.ibm.ejs.container.HomeOfHomes.getHome(HomeOfHomes.java:401)<br /> 	at com.ibm.ejs.container.HomeOfHomes.getHome(HomeOfHomes.java:337)<br /> 	at com.ibm.ejs.container.util.EJBLocalInterfaceObjectFactory.getObjectInstance(EJBLocalInterfaceObjectFactory.java:137)<br /> 	at javax.naming.spi.NamingManager.getObjectInstanceByFactoryInReference(Unknown Source)<br /> 	at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)<br /> 	at com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupExt(Helpers.java:920)<br /> 	at com.ibm.ws.naming.urlbase.UrlContextHelper.processBoundObjectForLookup(UrlContextHelper.java:175)<br /> 	at com.ibm.ws.naming.urlbase.UrlContextImpl.processBoundObjectForLookup(UrlContextImpl.java:1736)<br /> 	at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1249)<br /> 	at com.ibm.ws.naming.urlbase.UrlContextImpl.lookup(UrlContextImpl.java:1276)<br /> 	at com.ibm.etools.utc.servlet.JNDILookupServlet.lookup(JNDILookupServlet.java:78)<br /> 	at com.ibm.etools.utc.servlet.JNDILookupServlet.doGet(JNDILookupServlet.java:33)<br /> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)<br /> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)<br /> 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)<br /> 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)<br /> 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)<br /> 	at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)<br /> 	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:325)<br /> 	at com.ibm.etools.utc.servlet.Authenticator.doAuthentication(Authenticator.java:87)<br /> 	at com.ibm.etools.utc.servlet.Authenticator.doGet(Authenticator.java:42)<br /> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)<br /> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)<br /> 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1443)<br /> 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:790)<br /> 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:443)<br /> 	at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:175)<br /> 	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3610)<br /> 	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:274)<br /> 	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:926)<br /> 	at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1557)<br /> 	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:173)<br /> 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:455)<br /> 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:384)<br /> 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:272)<br /> 	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)<br /> 	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)<br /> 	at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)<br /> 	at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)<br /> 	at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)<br /> 	at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)<br /> 	at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:202)<br /> 	at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:766)<br /> 	at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:896)<br /> 	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1527)<br /> <br /> Thanks!<br /> ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/747/2732.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/747/2732.page</link>
				<pubDate><![CDATA[Sun, 16 May 2010 21:53:08]]> GMT</pubDate>
				<author><![CDATA[ intruderX]]></author>
			</item>
			<item>
				<title>Single Login for several applications.</title>
				<description><![CDATA[ Hi,<br /> We have an Application for credit approvals in our bank, and initially it had 3 basic sections as,<br /> 1.Credit Facility Papers<br /> 2.Housing Loans Papers<br /> 3.Covering Approvals papers.<br /> <br /> Unfortunately, a lot of programmers have involved and have ruined everything with malicious coding, due to poor documentations. Of course we don't have a single technical document today for further developments or fixing bugs. Many programmers have written their own methods, hence the same operation is executed in several places with several methods. After I undertake this application I added two modules more for Imports & exports, but because of the interdependency of the above mentioned 3 sections and the home page of the application, it was very hard to plug these two modules without any conflict.<br /> <br /> So now we are thinking to develop a new version of this product with EJB 3.0 + JSF, so that it would help future developments with a few new and essential requirements. In this case I want to suggest our team to minimize (or rather get rid of) the interdependency between and among each module; even though we need to provide a common login for these five applications.<br /> <br /> Is there any better technique to develop these 5 section as 5 separate applications and implement a single login for all of these applications? Just like we use several applications on facebook even if we log in only for once. If you have time, please recommend me the best or a better technique to do this as better as I can do. Or else I shall be so much thankful if you can provide some links for the sources.]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/711/2644.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/711/2644.page</link>
				<pubDate><![CDATA[Tue, 6 Apr 2010 00:29:32]]> GMT</pubDate>
				<author><![CDATA[ intruderX]]></author>
			</item>
			<item>
				<title>Spring MVC Integration testing: type mismatch from injection from properties file</title>
				<description><![CDATA[ I hope you can help me with a problem I am having with running a Spring integration test using AbstractTransactionalSpringContextTests to wire my dependencies.  After everything was wired correctly, I started getting some new errors telling me that some of the values injected read from .properties files were having a type mismatch.  When the web application runs. these errors never appear.<br /> <br /> This is the error I was getting:<br /> <br /> [quote]org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSource' defined in class path resource [siebel-test-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [int] for property 'cacheSeconds'; nested exception is java.lang.NumberFormatException: For input string: "${dcla.external.properties.cache.second}"<br /> Caused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [int] for property 'cacheSeconds'; nested exception is java.lang.NumberFormatException: For input string: "${dcla.external.properties.cache.second}"<br /> Caused by: java.lang.NumberFormatException: For input string: "${dcla.external.properties.cache.second}"<br /> 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)<br /> 	at java.lang.Integer.parseInt(Integer.java:468)<br /> 	at java.lang.Integer.valueOf(Integer.java:547)<br /> 	at java.lang.Integer.decode(Integer.java:908)<br /> 	at org.springframework.util.NumberUtils.parseNumber(NumberUtils.java:146)<br /> 	at org.springframework.beans.propertyeditors.CustomNumberEditor.setAsText(CustomNumberEditor.java:114)<br /> 	at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:343)<br /> 	at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:319)<br /> 	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:192)<br /> 	at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)<br /> 	at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:380)<br /> [/quote]<br /> <br /> <br /> In a properties file titled 'operations.properties' the value for ${dcla.external.properties.cache.second} is listed as:<br /> <br /> dcla.external.properties.cache.second=120<br /> <br /> <br /> Now, if I hard code the value in the Spring context configuration file, like this<br /> <br /> &lt;property name="cacheSeconds" value="120" /&gt;<br /> <br /> ....it will stop complaining about this value and then complain about another value which Spring says it can not convert from Date to String...<br /> <br /> <br /> When the application runs on it's own, there is no need for a property editor.  Can there be something I can do to get these mismatch errors to stop?  Is there something I am doing wrong?<br /> <br />  <br /> 	]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/687/2584.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/687/2584.page</link>
				<pubDate><![CDATA[Mon, 8 Feb 2010 10:10:05]]> GMT</pubDate>
				<author><![CDATA[ andrew222]]></author>
			</item>
			<item>
				<title>Get data from Login form on webpage</title>
				<description><![CDATA[ Hi guys, I'm using [URL="http://www.roseindia.net/jsp/loginbean.shtml"]this guide[/URL] and creating a login page for my site. I am using a jdbc-odbc bridge and have changed the connection. What I can't figure out is how to get the data from the bean to the login class (the class that connects to the database.<br /> <br /> Whenever I try to run the site, I get the error message<br /> <br /> org.apache.jasper.JasperException: /jspbeanlogin/loginbean.jsp(9,57) Attribute value request.getParameter("userName") is quoted with " which must be escaped when used within the value<br /> org.apache.jasper.compiler.DefaultErrorHandler.jsp Error(DefaultErrorHandler.java:40)]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/670/2523.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/670/2523.page</link>
				<pubDate><![CDATA[Thu, 14 Jan 2010 10:14:58]]> GMT</pubDate>
				<author><![CDATA[ hissimr]]></author>
			</item>
			<item>
				<title>Sping MVC: Bind JavaScript array to ArrayList</title>
				<description><![CDATA[ I need to bind a JavaScript array to an ArrayList. Using JQuery in a Spring MVC web application.<br /> <br /> The ArrayList is to have it's elements' reordered on the web page by the user via JavaScript. The backend code had been taken care of, I now need to find a solution to map the JavaScript to the ArrayList.<br /> <br /> Does anyone knows a good way to do this?]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/653/2455.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/653/2455.page</link>
				<pubDate><![CDATA[Thu, 10 Dec 2009 18:33:40]]> GMT</pubDate>
				<author><![CDATA[ andrew222]]></author>
			</item>
			<item>
				<title>Hibernate + Spring + JPA --&gt; Lazyloadexception</title>
				<description><![CDATA[ Hi people,<br /> <br /> I am still battling this LazyInitializationException using JPA+Spring+Hibernate.<br /> <br /> I have followed suggestions such as<br /> 1) move the filter definition for OpenEntityManagerInViewFilter to the top of the web.xml file so to be the first filter to intercept calls<br /> 2)Observe log files to see if the OpenEntityManagerInViewFilter is firing. It looks like it is:<br /> <br /> org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.logixplayer.pf.domain.Category.topics, no session or session was closed<br /> org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:358)<br /> org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:350)<br /> org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:343)<br /> org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)<br /> org.hibernate.collection.PersistentSet.iterator(PersistentSet.java:163)<br /> com.logixplayer.pf.category.controller.CategoryController.onSubmit(CategoryController.java:38)<br /> org.springframework.web.servlet.mvc.SimpleFormController.onSubmit(SimpleFormController.java:409)<br /> org.springframework.web.servlet.mvc.SimpleFormController.onSubmit(SimpleFormController.java:381)<br /> org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)<br /> org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:265)<br /> org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)<br /> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)<br /> org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)<br /> org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)<br /> org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)<br /> org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)<br /> javax.servlet.http.HttpServlet.service(HttpServlet.java:637)<br /> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br /> org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:112)<br /> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)<br /> <br /> I am missing something but I do not know what!<br /> I know why I am getting the exception as I stated in my earlier post. The session is being closed when I try to access children (topics) of each category (parent). This is why I was trying to use OpenEntityManagerInViewFilter in the first place (to keep the jpa/hibernate session open so I can fetch the lazy topics (children of categories)<br /> My only hunch is that the sessions are not unique but distinct. I.e. the session that is being used to get Categories is not being kept open for some reason.<br /> <br /> In my web.xml, I declare this:<br /> <br /> listener&gt;<br /> &lt;listener-class&gt;org.springframework.web.context.ContextLoaderListener&lt;/listener-class&gt;<br /> &lt;/listener&gt;<br /> &lt;context-param&gt;<br /> &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt;<br /> &lt;param-value&gt;<br /> &lt;!-- classpath:applicationContext.xml --&gt;<br /> &lt;!-- classpath:/data-access-context.xml --&gt;<br /> classpath:data-access-context.xml<br /> &lt;/param-value&gt;<br /> &lt;/context-param&gt;<br /> <br /> which references my entityManagerFactory like so:<br /> <br /> data-access-context.xml:<br /> <br /> &lt;bean id="entityManagerFactory"&gt;<br /> class=&quot;org.springframework.orm.jpa.LocalEntityManagerFactoryBean&quot;&gt;<br /> &lt;property name="persistenceUnitName" value="dataAccessPU" /&gt;<br /> &lt;/bean&gt;<br /> &lt;bean id="transactionManager"&gt;<br /> class=&quot;org.springframework.orm.jpa.JpaTransactionManager&quot;&gt;<br /> &lt;property name="entityManagerFactory"&gt;<br /> ref=&quot;entityManagerFactory&quot; /&gt;<br /> &lt;/bean&gt;<br /> <br /> &lt;tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" /&gt;<br /> <br /> The only thing that jumps out at me is the class definition for OpenEntityManagerInViewFilter:<br /> <br /> Servlet 2.3 Filter that binds a JPA EntityManager to the thread for the entire processing of the request. Intended for the "Open EntityManager in View" pattern, i.e. to allow for lazy loading in web views despite the original transactions already being completed.<br /> <br /> Servlet 2.3???<br /> I am using Servlet 2.5 and JSP 2.1.<br /> Does OpenEntityManagerInViewFilter not work for servlet 2.5 specs??<br /> <br /> I am totally stumped<br /> <br /> Anyone can lend some help? Please do...I have been stuck for a very long time<br /> Thanks so much!!<br /> <br /> p.s.<br /> the point of this exercise is to actually not take a performance hit.<br /> There will be potentially thousands of users at one single time, I cannot afford to load EAGER. because then each user will have the same categories and the same topics in memory.<br /> <br /> I need to figure out how to load lazy.<br /> <br /> I have searched thoroughly on the net but cannot find a solution to this problem, even though it is quite a common issue.<br /> <br /> I thought the OpenEntityManagerInViewFilter needed to be simply plugged in...<br /> <br /> I really need some help on this one...please reach out...<br /> <br /> thanks again<br /> <br /> <br /> reference:<br /> <a class="snap_shots" href="http://forum.springsource.org/showthread.php?t=76488" target="_blank" rel="nofollow">http://forum.springsource.org/showthread.php?t=76488</a> ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/612/2336.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/612/2336.page</link>
				<pubDate><![CDATA[Sun, 30 Aug 2009 13:18:48]]> GMT</pubDate>
				<author><![CDATA[ logixplayer]]></author>
			</item>
			<item>
				<title>Access to a bean when using facelets as template</title>
				<description><![CDATA[  	<br /> Hi!<br /> <br /> I'm starting to develop an application on netbeans+glassfish+mysql.<br /> <br /> I've created a facelet template to have only one time all the design part:<br /> <br /> [code]&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br />  <br /> &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;<br /> &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"&gt;<br />     &lt;head&gt;<br />         &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&gt;<br />         &lt;title&gt;TrustBN - #{title}&lt;/title&gt;<br />     &lt;/head&gt;<br />     &lt;body&gt;<br />         <p><br />             &lt;ui:define name ="body"/&gt;<br />         </p><br />     &lt;/body&gt;<br /> &lt;/html&gt;<br /> [/code]<br /> <br /> After this I just create a JSF page:<br /> <br /> [code]&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br /> &lt;!-- &lt;br /&gt;     Document   : testfile&lt;br /&gt;     Created on : 18 juin 2009, 14:20:02&lt;br /&gt;     Author     : J4N&lt;br /&gt; --&gt;<br /> &lt;jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"  &gt;<br /> xmlns:ui="http://java.sun.com/jsf/facelets"<br /> xmlns:f="http://java.sun.com/jsf/core" <br /> xmlns:h=&quot;http://java.sun.com/jsf/html&quot; version=&quot;2.0&quot;&gt;<br />  <br />     &lt;jsp:directive.page contentType="text/html" pageEncoding="UTF-8"/&gt;<br /> &lt;f:view&gt;<br />         &lt;ui:composition template="/WEB-INF/template.xhtml"&gt;<br />             &lt;ui:param name="title" value="toto"/&gt;            <br />             &lt;ui:define name="body"&gt;<br />                 &lt;h:outputText&gt;#{testfile2.toto}&lt;/h:outputText&gt;<br />             &lt;/ui:define&gt;<br />         &lt;/ui:composition&gt;<br />     &lt;/f:view&gt;<br /> &lt;/jsp:root&gt;<br /> [/code]<br /> But I get this error:<br /> <br /> org.apache.jasper.JasperException: PWC6228: #{...} not allowed in a template text body.<br /> <br /> on the #{testfile2.toto}<br /> <br /> I've try to do:<br /> -The same thing without the template<br /> -The same thing without the #{...}<br /> <br /> And the two things works.<br /> <br /> Must we use a special method to access to bean when we use facelets? Is it impossible? What do you recommend me? ]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/601/2317.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/601/2317.page</link>
				<pubDate><![CDATA[Thu, 18 Jun 2009 13:27:03]]> GMT</pubDate>
				<author><![CDATA[ nargzul]]></author>
			</item>
			<item>
				<title>going to the default error page</title>
				<description><![CDATA[ Hi My application take data from the PDA and we have to approve it from the application, then it goes to the project management software. But now after approving it is going to the default error page.can any one plz help. I need to submit the approval. Here is my jsp page for approval<br /> <br /> [code]<br /> &lt;%&lt;br /&gt; <br />        framework.ProfileInterface pr=(framework.ProfileInterface )(User) session.getAttribute("theUser");<br /> <br />        Manager m;<br /> <br /> <br /> <br />        m = new Manager(pr);<br /> <br /> <br /> <br />        String act_cat=ParameterPeer.get("ACT_CAT");<br /> <br />       <br /> <br />        List activities = null;<br /> <br /> <br /> <br />    if (act_cat.equals("W"))<br /> <br />    {<br /> <br />     List wbses=(List)application.getAttribute("wbses");<br /> <br /> <br /> <br />      if(wbses==null) {<br /> <br />         response.sendRedirect("./refreshData.jsp");<br /> <br />         return;<br /> <br />      }<br /> <br />    }<br /> <br /> <br /> <br />    if (act_cat.equals("R"))<br /> <br />    {<br /> <br />     List reses=(List)application.getAttribute("reses");<br /> <br /> <br /> <br />      if(reses==null) {<br /> <br />         response.sendRedirect("./refreshData.jsp");<br /> <br />         return;<br /> <br />      }<br /> <br />    }<br /> <br /> <br /> <br />    if (act_cat.equals("A"))<br /> <br />    {<br /> <br />     List acves=(List)application.getAttribute("acves");<br /> <br /> <br /> <br />      if(acves==null) {<br /> <br />         response.sendRedirect ("./refreshData.jsp");<br /> <br />         return;<br /> <br />      }<br /> <br />    }<br /> <br /> <br /> <br />      application.setAttribute ("activities",activities);<br /> <br /> <br /> <br /> <br /> <br />     int msgId = 0;<br /> <br /> <br /> <br /> 	if (request.getParameter("msg")!=null) {<br /> <br /> 		msgId = Integer.parseInt(request.getParameter("msg"));<br /> <br /> 	}<br /> <br /> 	String msg = "";<br /> <br /> 	switch (msgId) {<br /> <br /> 		case 0:<br /> <br /> 			msg = "";<br /> <br /> 			break;<br /> <br /> 		case 1:<br /> <br /> 			msg = "<br><p >Your authorisation has been successfully submitted</p>";<br /> <br /> 			break;<br /> <br /> 	}<br /> <br /> 	<br /> <br /> 	/*Date d = new Date();<br /> <br /> 	out.print(d.getTime());*/<br /> <br /> %&gt;<br /> <br /> &lt;html&gt;<br /> <br /> &lt;head&gt;<br /> <br /> &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;<br /> <br /> &lt;title&gt;my project&lt;/title&gt;<br /> <br /> &lt;link href="stylesheet/myproject.css" rel="stylesheet" type="text/css"&gt;<br /> <br /> &lt;script language="javascript" src="javascript/_common.js"&gt;&lt;/script&gt;<br /> <br /> &lt;script language="javascript"&gt;<br /> <br /> 	function openAll(willOpen) {<br /> <br /> 		var allDivs = document.getElementsByTagName('div');<br /> <br /> 		for (i=0;i&lt;allDivs.length;i++) {&gt;<br /> <br /> 			var thisDiv = allDivs[i];			<br /> <br /> 			if (thisDiv.id.substring(0,8) == 'toplevel') {<br /> <br /> 				var taskId = thisDiv.id.substring(9,thisDiv.id.length);<br /> <br /> 				if (willOpen) {<br /> <br /> 					showDropDown(false,document.getElementById('toplevel_'+taskId), document.getElementById('sublevel_'+taskId));<br /> <br /> 				} else {<br /> <br /> 					showDropDown(true,document.getElementById('toplevel_'+taskId), document.getElementById('sublevel_'+taskId));<br /> <br /> 				}<br /> <br /> 			}		<br /> <br /> 			if (thisDiv.id.substring(0,8) == 'sublevel') {<br /> <br /> 				var taskId = thisDiv.id.substring(9,thisDiv.id.length);<br /> <br /> 				if (willOpen) {<br /> <br /> 					showDropDown(true,document.getElementById('toplevel_'+taskId), document.getElementById('sublevel_'+taskId));<br /> <br /> 				} else {<br /> <br /> 					showDropDown(false,document.getElementById('toplevel_'+taskId), document.getElementById('sublevel_'+taskId));<br /> <br /> 				}<br /> <br /> 			}	<br /> <br /> 		}<br /> <br /> 	}<br /> <br /> 	<br /> <br /> 	function checkUncheckMyUpdates(currentBox) {<br /> <br /> 		var taskId = currentBox.name.substring(16,currentBox.name.length);<br /> <br /> 		var currentName = currentBox.name;<br /> <br /> 		var frm = document.frmUpdates;<br /> <br /> 		if (currentName.substring(0,8) == 'toplevel') {<br /> <br /> 			document.getElementById('sublevel_chkAll_'+taskId).checked = currentBox.checked;<br /> <br /> 		} else {<br /> <br /> 			document.getElementById('toplevel_chkAll_'+taskId).checked = currentBox.checked;<br /> <br /> 		}<br /> <br /> 		for (h=0;h&lt;frm.length;h++){&gt;<br /> <br /> 			if (frm.elements[h].type == 'checkbox' && frm.elements[h].name.substring(0,8) != 'toplevel' && frm.elements[h].name.substring(0,8) != 'sublevel' && frm.elements[h].name.substring(21,frm.elements[h].name.length) == taskId){<br /> <br /> 				frm.elements[h].checked = false;<br /> <br /> 			}<br /> <br /> 		}<br /> <br /> 		for (i=0;i&lt;frm.length;i++){&gt;<br /> <br /> 			if (frm.elements[i].type == 'checkbox' && (frm.elements[i].name.substring(0,8) != 'toplevel' && frm.elements[i].name.substring(0,8) != 'sublevel')) {<br /> <br /> 				if (frm.elements[i].name.substring(21,frm.elements[i].name.length) == taskId) {<br /> <br /> 					if (frm.elements[i].name != 'notesUpdatesNote_chk_'+taskId) {<br /> <br /> 						if (frm.selStatus.selectedIndex == 0) {<br /> <br /> 							if (frm.elements[i+1].value == 'true') {<br /> <br /> 								frm.elements[i].checked = currentBox.checked;<br /> <br /> 							} <br /> <br /> 						} else {<br /> <br /> 							frm.elements[i].checked = currentBox.checked;<br /> <br /> 						}<br /> <br /> 					}<br /> <br /> 				}<br /> <br /> 				if (frm.elements[i].name == 'notesUpdatesNote_chk_'+taskId || frm.elements[i].name == 'stepsUpdatesStep_chk_'+taskId) {<br /> <br /> 					frm.elements[i].checked = currentBox.checked;<br /> <br /> 				}<br /> <br /> 			}<br /> <br /> 		}<br /> <br /> 	}<br /> <br /> 	<br /> <br /> 	function uncheckAll() {<br /> <br /> 		var frm = document.frmUpdates;<br /> <br /> 		for (j=0;j&lt;frm.length;j++)&gt;<br /> <br /> 		{<br /> <br /> 			if (frm.elements[j].type == 'checkbox' && frm.elements[j].name != 'chkAll') <br /> <br /> 			{<br /> <br /> 				if(frm.elements[j].id.indexOf('data')&gt;=0)<br /> <br /> 				{<br /> <br /> 					frm.elements[j].checked=false;<br /> <br /> 				}<br /> <br /> 			}<br /> <br /> 		}<br /> <br /> 	}<br /> <br /> 	<br /> <br /> 	function checkAllWithData() {<br /> <br /> 		var frm = document.frmUpdates;<br /> <br /> 		for (j=0;j&lt;frm.length;j++)&gt;<br /> <br /> 		{<br /> <br /> 			if (frm.elements[j].type == 'checkbox' && frm.elements[j].name != 'chkAll') <br /> <br /> 			{<br /> <br /> 				if(frm.elements[j].id.indexOf('data')&gt;=0)<br /> <br /> 				{<br /> <br /> 					frm.elements[j].checked=true;<br /> <br /> 				}<br /> <br /> 			}<br /> <br /> 		}<br /> <br /> 	}<br /> <br /> 	<br /> <br /> 	function uncheckByTaskCode(taskId) {<br /> <br /> 		var frm = document.frmUpdates;<br /> <br /> 		<br /> <br /> 		for (j=0;j&lt;frm.length;j++)&gt;<br /> <br /> 		{<br /> <br /> 			if (frm.elements[j].type == 'checkbox' && frm.elements[j].name != 'chkAll') <br /> <br /> 			{<br /> <br /> 				<br /> <br /> 				if(frm.elements[j].id.indexOf(&quot;taskId&quot; + taskId)&gt;=0)<br /> <br /> 				{<br /> <br /> 					frm.elements[j].checked=false;	<br /> <br /> 				}<br /> <br /> 			}<br /> <br /> 		}<br /> <br /> 	}<br /> <br /> 	<br /> <br /> 	<br /> <br /> 	function checkByTaskId(taskId,value,id) {<br /> <br /> 		uncheckByTaskCode(taskId);<br /> <br /> 		var frm = document.frmUpdates;<br /> <br /> 		document.getElementById('data_sublevel_'+id).checked=value;<br /> <br /> 		document.getElementById('data_toplevel_'+id).checked=value<br /> <br /> 		for (j=0;j&lt;frm.length;j++)&gt;<br /> <br /> 		{<br /> <br /> 			if (frm.elements[j].type == 'checkbox' && frm.elements[j].name != 'chkAll') <br /> <br /> 			{<br /> <br /> 				<br /> <br /> 				if(frm.elements[j].id.indexOf(&quot;taskId&quot; + taskId)&gt;=0)<br /> <br /> 				{<br /> <br /> 					if(frm.elements["selStatus"].value=='1')<br /> <br /> 					{<br /> <br /> 						if(frm.elements[j].id.indexOf('latest')&gt;=0)<br /> <br /> 						{<br /> <br /> 							frm.elements[j].checked=value;<br /> <br /> 						}<br /> <br /> 					}<br /> <br /> 					else<br /> <br /> 					{<br /> <br /> 						frm.elements[j].checked=value;<br /> <br /> 					}<br /> <br /> 				}<br /> <br /> 			}<br /> <br /> 		}<br /> <br /> 	}<br /> <br /> 	<br /> <br /> 	function checkAllLatest() {<br /> <br /> 		var frm = document.frmUpdates;<br /> <br /> 		for (j=0;j&lt;frm.length;j++)&gt;<br /> <br /> 		{<br /> <br /> 			if (frm.elements[j].type == 'checkbox' && frm.elements[j].name != 'chkAll') <br /> <br /> 			{<br /> <br /> 				if(frm.elements[j].id.indexOf('latest')&gt;=0)<br /> <br /> 				{<br /> <br /> 					frm.elements[j].checked=true;<br /> <br /> 				} else if(frm.elements[j].id.indexOf('toplevel')&gt;=0)<br /> <br /> 				{<br /> <br /> 					frm.elements[j].checked=true;<br /> <br /> 				}<br /> <br /> 				else if(frm.elements[j].id.indexOf('sublevel')&gt;=0)<br /> <br /> 				{<br /> <br /> 					frm.elements[j].checked=true;<br /> <br /> 				}<br /> <br /> 			}<br /> <br /> 		}<br /> <br /> 	}<br /> <br /> 			<br /> <br /> 	function checkAll() {<br /> <br /> 		var frm = document.frmUpdates;<br /> <br /> 		if(frm.elements["chkAll"].checked==true)<br /> <br /> 		{<br /> <br /> 			if(frm.elements["selStatus"].value=='1')<br /> <br /> 			{<br /> <br /> 				uncheckAll();<br /> <br /> 				checkAllLatest();<br /> <br /> 			}else<br /> <br /> 			{<br /> <br /> 				checkAllWithData();<br /> <br /> 			}<br /> <br /> 		}else<br /> <br /> 		{<br /> <br /> 			uncheckAll();<br /> <br /> 		}<br /> <br /> 		<br /> <br /> 	}<br /> <br /> 	<br /> <br /> 	<br /> <br /> 	<br /> <br /> 	function checkOneOnly(currentBox,taskId) {<br /> <br /> 		var frm = document.frmUpdates;<br /> <br /> 		var toplevel='toplevel_chkAll_'+taskId;<br /> <br /> 		var sublevel='sublevel_chkAll_'+taskId;<br /> <br /> 		var isChecked=false;<br /> <br /> 		<br /> <br /> 		for (k=0;k&lt;frm.length;k++){&gt;<br /> <br /> 			if (frm.elements[k].type == 'checkbox'  ) {<br /> <br /> 				<br /> <br /> 				if(frm.elements[k].name=='actuaUpdatesTask_chk_'+taskId)<br /> <br /> 				{<br /> <br /> 					isChecked=frm.elements[k].checked||isChecked ;<br /> <br /> 				}<br /> <br /> 				if(frm.elements[k].name=='detaiUpdatesTask_chk_'+taskId)<br /> <br /> 				{<br /> <br /> 					isChecked=frm.elements[k].checked||isChecked ;<br /> <br /> 				}<br /> <br /> 				if(frm.elements[k].name.indexOf('stepsUpdatesStep_chk_'+taskId)&gt;=0)<br /> <br /> 				{<br /> <br /> 					isChecked=frm.elements[k].checked||isChecked ;<br /> <br /> 				}<br /> <br /> 				if(frm.elements[k].name=='notesUpdatesNote_chk_'+taskId)<br /> <br /> 				{<br /> <br /> 					isChecked=frm.elements[k].checked||isChecked ;<br /> <br /> 				}<br /> <br /> 				<br /> <br /> 			}<br /> <br /> 		}<br /> <br /> 		<br /> <br /> 		frm.elements[toplevel].checked=isChecked;<br /> <br /> 		frm.elements[sublevel].checked=isChecked;<br /> <br /> 		<br /> <br /> 		for (k=0;k&lt;frm.length;k++){&gt;<br /> <br /> 			if (frm.elements[k].type == 'checkbox' && frm.elements[k].name == currentBox.name  && frm.selStatus.selectedIndex == 0) {<br /> <br /> 				if(frm.elements[k]!=currentBox)<br /> <br /> 				{<br /> <br /> 					frm.elements[k].checked = false;<br /> <br /> 				}<br /> <br /> 			}<br /> <br /> 		}<br /> <br /> 		<br /> <br /> 	}<br /> <br /> 	<br /> <br /> 	function submitApprovals() {<br /> <br /> 		var x = confirm('Selected details will be Approved/Declined. Do you wish to continue?');<br /> <br /> 		if (x) {<br /> <br /> 			document.frmUpdates.submit();<br /> <br /> 		} else {<br /> <br /> 			return;<br /> <br /> 		}<br /> <br /> 	}<br /> <br /> &lt;/script&gt;<br /> <br /> &lt;/head&gt;<br /> <br /> &lt;% SimpleDateFormat sdf = new SimpleDateFormat(ParameterPeer.get("DATE_FORMAT")); %&gt;<br /> <br /> &lt;body&gt;<br /> <br /> &lt;form name="frmUpdates" method="post" action="processing/approvals.jsp"&gt;<br /> <br /> <a ></a><br /> <br /> &lt;div id="dhtmltooltip"&gt;&lt;/div&gt;<br /> <br /> &lt;script language="javascript" src="javascript/_tooltips.js"&gt;&lt;/script&gt;<br /> <br /> &lt;table width="100%"  border="0" cellspacing="0" cellpadding="0"&gt;<br /> <br />   &lt;jsp:include page="includes/banner.jsp" flush="true"/&gt;<br /> <br />   &lt;tr&gt;<br /> <br />     &lt;td height="200" colspan="3" valign="top" bgcolor="#FFFFFF"&gt;&lt;table width="100%"  border="0" cellspacing="0" cellpadding="0"&gt;<br /> <br />         &lt;tr&gt;<br /> <br />           &lt;td&gt;<br /> <br />           &lt;jsp:include page="includes/menu.jsp" flush="true"/&gt;<br /> <br />               &lt;table width="100%"  border="0" cellspacing="2" cellpadding="0"&gt;<br /> <br />                 &lt;tr&gt;<br /> <br />                   &lt;td class="breadcrumb"&gt;<a  >Home</a> &gt; <a  >Approve Updates</a>&lt;/td&gt;<br /> <br />                 &lt;/tr&gt;<br /> <br />                 &lt;tr&gt;<br /> <br />                   &lt;td class="mainHeading"&gt;<br><br /> <br />                     Approve Updates&lt;/td&gt;<br /> <br />                 &lt;/tr&gt;<br /> <br />                 &lt;tr&gt;<br /> <br />                   &lt;td class="mainText"&gt; Please approve/decline updates below as necessary. &lt;/td&gt;<br /> <br />                 &lt;/tr&gt;<br /> <br />                 &lt;tr&gt;<br /> <br />                   &lt;td class="mainText"&gt;&lt;%=msg%&gt;&lt;/td&gt;<br /> <br />                 &lt;/tr&gt;<br /> <br />                 &lt;tr&gt;<br /> <br />                   &lt;td class="mainText"&gt;<br /> <br /> 				  &lt;%&lt;br /&gt; <br /> 					List taskUpdates = TaskPeer.getAllUpdates();<br /> <br /> 					String[] allActualsCheckBoxes = new String[TaskPeer.getTotalUpdates().size()];<br /> <br /> 					String[] allStepsCheckBoxes = new String[StepPeer.getAllUpdates().size()];<br /> <br /> 					String[] allNotesCheckBoxes = new String[NotePeer.getAllUpdates().size()];<br /> <br /> 					String[] allDetailsCheckBoxes = new String[TaskPeer.getAllDetailUpdates().size()];<br /> <br /> 					<br /> <br /> 					int c_allActualsCheckBoxes = 0;<br /> <br /> 					int c_allStepsCheckBoxes = 0;<br /> <br /> 					int c_allNotesCheckBoxes = 0;<br /> <br /> 					int c_allDetailsCheckBoxes = 0;<br /> <br /> 					<br /> <br /> 					if (taskUpdates.size() &gt; 0) {<br /> <br /> 						Iterator i_taskUpdates = taskUpdates.iterator();<br /> <br /> 						String[] colours = {"#CC7F7F","#D69999","#E0B2B2","#7FB27F","#99C299","#B2D1B2","#9999D6","#B2B2E0","#FFE57F","#FFEB99","#FF7F7F","#FF9999","#FF7FE5","#FF99EB","#FFB2F0","#FFD1F6","#C7ADC3","#D5C1D2","#CCCCCC","#99E5FF","#C1F0FF","#CCFF7F","#E0FFB2","#C49999","#D3B2B2"};				<br /> <br /> 				  %&gt;<br /> <br />                       &lt;hr width="700" align="left"&gt;<br /> <br />                       &lt;!-- Approvals Navigation&lt;br /&gt; &lt;br /&gt; [/code]]]></description>
				<guid isPermaLink="true">http://forums.hotjoe.com/posts/preList/599/2311.page</guid>
				<link>http://forums.hotjoe.com/posts/preList/599/2311.page</link>
				<pubDate><![CDATA[Tue, 16 Jun 2009 15:18:24]]> GMT</pubDate>
				<author><![CDATA[ christyneedhelp]]></author>
			</item>
	</channel>
</rss>
