naresh kumar k

Ranch Hand
+ Follow
since May 25, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by naresh kumar k

hi
i found the answer myself i made it working by changing like below

<head>
<script type="text/javascript">

function fillDetails(value1){

document.forms[0].action="CSProductsAction.do?products=fillDetails&productName="+value1;
document.forms[0].submit();

}
</script>
</head>
<body>
<html:form action="products" method="post">
<html:text property="productName" styleClass="login-txt" onblur="javascript: fillDetails(this.value);" ></html:text>
</html:form>

12 years ago

please any please reply on this

waiting for reply
naresh
12 years ago
thanks for the quik reply

I am using struts1.3.8
here form name means jsp page form : <html:form action="CSProductsAction" method="post">
<html:text property="productName" styleClass="login-txt" onblur="javascript: fillDetails(this);" ></html:text>
</html:form>
and i tried removing parameters also but no use

waiting for reply
naresh
12 years ago
hi Akhilesh Trivedi,
thanks for the reply. I am pretty confident that action mappings are correct and getters and setters are there in my form.

In line 6 "document.forms[0].action="CSProductsAction.do?products=fillDetails"; "
CSProductsAction is form name and products is parameter and fillDetails is method in action class
Actually i am trying call action class method using onblur() .

waiting for your reply

with regards

naresh kumar k
12 years ago

hi every one ,
I am new to javascript. In my project i am trying to call struts action method from javascript every thing goes fine but i am unable to get values from corresponding form class.

here is my jsp page:


in my action class :


Actually i am trying to set remaining fields in the page on loose focus of productName field.

Here exactly what i need is" productsForm.getProductName()" should return the data entered in jsp page.

I don't know whether this is correct approach or not,if not please correct me.

waiting for the reply

with regards
naresh kumar k

12 years ago
hi Chandan Sarma,
thanks for the quick reply.I tried what you told but i am facing another error:::: Cannot find bean: "productList" in scope: "request".

One thing if i remove property and place name="productList" how could we have getter and setters without form classs

with regards
naresh kumar k
12 years ago
hi Chandan Sarma,
thank you very for your reply. I did what you told i.e.. redirect="false"
But no use again i am facing same exception "no collection found"

will be waiting for your reply
with regards
naresh kumar k
12 years ago
Hi mizkhyz garcia,
I started using Jasper Reports in my application but could not find correct process to implement this.
I am using struts with hibernate could please guide me to implement jasper reports in my application.
can you give me the code to use jasper reports and the procedure to follow to implement this.

kindly please help me.
thanks in advance


regards
naresh kumar k
12 years ago
hi Ranchers,

When I tried to display data in table using Iterate(struts tag) i got following exception "NO Collection Found".
I used struts and hibernate

and stack trace is.....
ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CSWeb].[jsp]] Servlet.service() for servlet jsp threw exception: javax.servlet.jsp.JspException: No collection found
at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:242) [:1.3.8]
at org.apache.jsp.gui.products_jsp._jspService(products_jsp.java:192)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [:6.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [:6.0.0.Final]
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [:6.0.0.Final]
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [:6.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:639) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:576) [:6.0.0.Final]
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968) [:6.0.0.Final]
at org.apache.jasper.runtime.PageContextImpl.doInclude(PageContextImpl.java:650) [:6.0.0.Final]
at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:644) [:6.0.0.Final]
at sun.reflect.GeneratedMethodAccessor305.invoke(Unknown Source) [:1.6.0]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [:1.6.0]
at java.lang.reflect.Method.invoke(Unknown Source) [:1.6.0]
at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:129) [:1.3.8]
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:152) [:1.3.8]
at org.apache.struts.tiles.taglib.InsertTag.doInclude(InsertTag.java:764) [:1.3.8]
at org.apache.struts.tiles.taglib.InsertTag$InsertHandler.doEndTag(InsertTag.java:896) [:1.3.8]
at org.apache.struts.tiles.taglib.InsertTag.doEndTag(InsertTag.java:465) [:1.3.8]
at org.apache.jsp.gui.coldstorage_002dlayout_jsp._jspx_meth_tiles_005finsert_005f2(coldstorage_002dlayout_jsp.java:221)
at org.apache.jsp.gui.coldstorage_002dlayout_jsp._jspService(coldstorage_002dlayout_jsp.java:119)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [:6.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [:6.0.0.Final]
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [:6.0.0.Final]
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [:6.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407) [:6.0.0.Final]
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078) [:1.3.8]
at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:295) [:1.3.8]
at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:271) [:1.3.8]
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:332) [:1.3.8]
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:232) [:1.3.8]
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) [:1.3.8]
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) [:1.3.8]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
at java.lang.Thread.run(Unknown Source) [:1.6.0]


15:08:17,484 ERROR [org.apache.struts.tiles.taglib.InsertTag] ServletException in '/gui/products.jsp': javax.servlet.jsp.JspException: No collection found: org.apache.jasper.JasperException: An exception occurred processing JSP page /gui/products.jsp at line 57

54: <td>Packet Type</td>
55: </tr>
56: <logic:present name="CSProductsForm">
57: <logic:iterate id="productItr" name="CSProductsForm" property="productList" scope="request">
58: <tr>
59: <bean:write name="productItr" property="productName" />
60: <bean:write name="productItr" property="productType" />
........................

Caused by: javax.servlet.ServletException: javax.servlet.jsp.JspException: No collection found
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862) [:6.0.0.Final]
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) [:6.0.0.Final]
at org.apache.jsp.gui.products_jsp._jspService(products_jsp.java:326)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [:6.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [:6.0.0.Final]
... 57 more
Caused by: javax.servlet.jsp.JspException: No collection found
at org.apache.struts.taglib.logic.IterateTag.doStartTag(IterateTag.java:242) [:1.3.8]
at org.apache.jsp.gui.products_jsp._jspService(products_jsp.java:192)
... 60 more
.......................and more



here is my Jsp page code for iterator




Action class:



My form class:


and List getter and setter class:<ProductDisplay>


Struts-config.xml:





And i can gaurentee that DAO code is correct and I am able to retrieve data from DB and even action class data is there in list.
I searched many forms but cannot what the fault in my code.
please help me on this.
thanks in advance
regards
Naresh Kumar K
12 years ago
hi Joe Ess,
thanks for the reply
I done what you suggested i defined getters and setters method in form class and made property="" but no use same error i am facing.
could you give me the code regarding jsp page for <html:image> tag and for action class if needed.

with regards
naresh kumar k
12 years ago
hi guys can any one please help me on this
I tried to use image as submit button in struts using html:image tag but it showing the following error

code:<html:image src="D:/Metaway/CSWorkSpace/CSWeb/WebContent/images/go.gif" property="Login" value="Login"></html:image>

Error:ERROR [org.apache.struts.actions.DispatchAction] Request[/coldStorageLogin] does not contain handler parameter named 'Login'. This may be caused by whitespace in the label text.


please help on this
regards
naresh k
12 years ago
hi,
I am just trying to implement login application using struts.
Instead of submit i used image as submit button while clicking on login i am getting below error

Here is my login page

<html:form enctype="multipart/form-data" action="coldStorageLogin.do" method="post" >
<html:text property="txtUserName" styleClass="credentials"></html:text>
<html:password property="txtpwd" ></html:password>
<html:image property="submitImage" value="submitLogin"
src="images/go.gif" border="0" align="right"/>


my struts-config.xml

<form-bean name="CSLoginForm" type="com.metaway.coldstorage.login.form.ColdStorageLoginForm"></form-bean>
<action path="/coldStorageLogin" type="com.metaway.coldstorage.login.action.ColdStorageLogin" name="CSLoginForm">
<forward name="CSLoginsuccess" path="gui/index.jsp"></forward></action>

action classs

public class ColdStorageLogin extends BaseDispatchAction
{

public ActionForward submitLogin(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
{
ColdStorageLoginForm imgForm=(ColdStorageLoginForm)form;

if(imgForm.getTxtUserName().equals(imgForm.getTxtpwd()))
return mapping.findForward("CSLoginfailure");
else
return mapping.findForward("CSLoginsuccess");

}
}


here is my error stack trace


WARN [org.apache.struts.chain.commands.AbstractExceptionHandler] Unhandled exception: javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:469) [:1.3.8]
at org.apache.struts.chain.commands.servlet.PopulateActionForm.populate(PopulateActionForm.java:50) [:1.3.8]
at org.apache.struts.chain.commands.AbstractPopulateActionForm.execute(AbstractPopulateActionForm.java:60) [:1.3.8]
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51) [:1.3.8]
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) [:1.1]
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304) [:1.1]
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) [:1.1]
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283) [:1.3.8]
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) [:1.3.8]
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) [:1.3.8]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
at java.lang.Thread.run(Unknown Source) [:1.6.0]
Caused by: java.lang.IllegalArgumentException: No bean specified
at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:751) [:1.6]
at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:937) [:1.6]
at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811) [:1.6]
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298) [:1.6]
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:467) [:1.3.8]
... 30 more

12:49:08,875 WARN [org.apache.struts.chain.commands.ExceptionCatcher] Exception from exceptionCommand 'servlet-exception': javax.servlet.ServletException: BeanUtils.populate
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:469) [:1.3.8]
at org.apache.struts.chain.commands.servlet.PopulateActionForm.populate(PopulateActionForm.java:50) [:1.3.8]
at org.apache.struts.chain.commands.AbstractPopulateActionForm.execute(AbstractPopulateActionForm.java:60) [:1.3.8]
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51) [:1.3.8]
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) [:1.1]
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304) [:1.1]
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) [:1.1]
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283) [:1.3.8]
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) [:1.3.8]
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) [:1.3.8]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
at java.lang.Thread.run(Unknown Source) [:1.6.0]
Caused by: java.lang.IllegalArgumentException: No bean specified
at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:751) [:1.6]
at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:937) [:1.6]
at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811) [:1.6]
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298) [:1.6]
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:467) [:1.3.8]
... 30 more

12:49:08,875 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CSWeb].[action]] Servlet.service() for servlet action threw exception: java.lang.IllegalArgumentException: No bean specified
at org.apache.commons.beanutils.PropertyUtilsBean.getPropertyDescriptor(PropertyUtilsBean.java:751) [:1.6]
at org.apache.commons.beanutils.BeanUtilsBean.setProperty(BeanUtilsBean.java:937) [:1.6]
at org.apache.commons.beanutils.BeanUtilsBean.populate(BeanUtilsBean.java:811) [:1.6]
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:298) [:1.6]
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:467) [:1.3.8]
at org.apache.struts.chain.commands.servlet.PopulateActionForm.populate(PopulateActionForm.java:50) [:1.3.8]
at org.apache.struts.chain.commands.AbstractPopulateActionForm.execute(AbstractPopulateActionForm.java:60) [:1.3.8]
at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51) [:1.3.8]
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) [:1.1]
at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304) [:1.1]
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190) [:1.1]
at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283) [:1.3.8]
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) [:1.3.8]
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462) [:1.3.8]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
at java.lang.Thread.run(Unknown Source) [:1.6.0]
12 years ago
hi
I am trying to implement login application by image as submit button using struts tags like <html:image>.
but couldn't find the best way to do it.Is it necessary to write Image button details in action class



please help on this

thanks in advance
13 years ago
hi i am trying to implement struts using tiles. while executing i am facing following error
plese help me on this


16:39:19,359 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/CSWeb].[jsp]] Servlet.service() for servlet jsp threw exception: java.lang.NullPointerException
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1598) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:976) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1247) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseBody(Parser.java:1633) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:976) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1247) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1421) [:6.0.0.Final]
at org.apache.jasper.compiler.Parser.parse(Parser.java:130) [:6.0.0.Final]
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255) [:6.0.0.Final]
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103) [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:196) [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:358) [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:338) [:6.0.0.Final]
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:325) [:6.0.0.Final]
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:607) [:6.0.0.Final]
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312) [:6.0.0.Final]
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [:6.0.0.Final]
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [:6.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407) [:6.0.0.Final]
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1078) [:1.3.8]
at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:295) [:1.3.8]
at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:396) [:1.3.8]
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:347) [:1.3.8]
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:232) [:1.3.8]
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) [:1.3.8]
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) [:1.3.8]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
at java.lang.Thread.run(Unknown Source) [:1.6.0]

thanks in advance
13 years ago
hi
I am new to struts and hibernate.I am trying to integrate struts with hibernate but could not find the way.
Can any one help on this using these requirements
Action class ,form, jsp,struts-config in web project
and business classs,DAO class, Do class ,cfg.xml and hbm.xml in EJB project.
using Eclipse IDE

regards
naresh raj
13 years ago