Mazhar Shaikh

Greenhorn
+ Follow
since Aug 13, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mazhar Shaikh

I was trying to test the "Cache taglib ver. 2.4" taglib but I am getting following Exception.

The "Cache taglib ver. 2.4" is taken from an external site
http://www.servletsuite.com/servlets/cachetag.htm


-->In my JSP, I have included
<%@ taglib uri="/WEB-INF/Cache.tld" prefix="cache"%>

-->In Web.xml, I have added following mapping
<taglib>
<taglib-uri>/WEB-INF/Cache.tld</taglib-uri>
<taglib-location>/WEB-INF/Cache.tld</taglib-location>
</taglib>

-->I have copied the Cache.tld in WEB-INF folder of my web app. and
-->I have copied cachetag.jar in the WEB_INF/LIB folder.

Please guide me
----------------------------------------------------------------------------
[4/30/08 2:44:38:873 PDT] 1abfbe62 WebGroup I SRVE0180I: [ys1bes] [/ys1bes] [Servlet.LOG]: Could not load TagExtraInfo class com.cj.cache.strVariable: com.cj.cache.strVariable

[4/30/08 2:44:38:876 PDT] 1abfbe62 WebGroup I SRVE0180I: [ys1bes] [/ys1bes] [Servlet.LOG]: Could not load TagExtraInfo class com.cj.cache.longVariable: com.cj.cache.longVariable

[4/30/08 2:44:38:878 PDT] 1abfbe62 WebGroup I SRVE0180I: [ys1bes] [/ys1bes] [Servlet.LOG]: Could not load TagExtraInfo class com.cj.cache.longVariable: com.cj.cache.longVariable

[4/30/08 2:44:38:880 PDT] 1abfbe62 WebGroup I SRVE0180I: [ys1bes] [/ys1bes] [Servlet.LOG]: Could not load TagExtraInfo class com.cj.cache.dateVariable: com.cj.cache.dateVariable

[4/30/08 2:44:38:882 PDT] 1abfbe62 WebGroup I SRVE0180I: [ys1bes] [/ys1bes] [Servlet.LOG]: Could not load TagExtraInfo class com.cj.cache.strVariableNested: com.cj.cache.strVariableNested

[4/30/08 2:44:38:883 PDT] 1abfbe62 WebGroup I SRVE0180I: [ys1bes] [/ys1bes] [Servlet.LOG]: Could not load TagExtraInfo class com.cj.cache.strVariable: com.cj.cache.strVariable

[4/30/08 2:44:38:951 PDT] 1abfbe62 WebGroup E SRVE0026E: [Servlet Error]-[/search.jsp(8,0) Unable to load class com.cj.cache.CacheIt]: javax.servlet.ServletException: /search.jsp(8,0) Unable to load class com.cj.cache.CacheIt

at com.netegrity.was511.filter.ServletFilter.doFilter(ServletFilter.java:75)

at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)

at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)

at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1162)

at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:676)

at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:203)

at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:125)

at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:294)

at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)

at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:246)

at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)

at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)

at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:652)

at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:448)

at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:912)

[4/30/08 2:44:38:984 PDT] 1abfbe62 WebGroup I SRVE0180I: [ys1bes] [/ys1bes] [Servlet.LOG]: CiscoErrorHandler: init

[4/30/08 2:45:01:973 PDT] 1abfbe62 HttpMethodBas I org.apache.commons.httpclient.HttpMethodBase Redirect requested but followRedirects is disabled

[4/30/08 2:45:27:618 PDT] 38be62 HttpMethodBas I org.apache.commons.httpclient.HttpMethodBase Redirect requested but followRedirects is disabled

---------------------------------------------------------------------------
Refer to the code below that performs a simple update to a column of table.

--------------------------------------
Session sess = HibernateSession.currentSession();
SomeObject obj = (SomeObject) sess.load(SomeObject.class,"PK_ID")); obj.setType("Type");
hibSession.flush();
--------------------------------------

Where,

"SomeObject" is a persistent object that maps to a Database table.
"PK_ID" is a Primary Key value to identify the row to update.

Hope this will help you.