This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!

Santhosh Puttu

Greenhorn
+ Follow
since Jun 08, 2010
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 Santhosh Puttu

Hi I am trying to use quartz scheduler in my application.
quartz xml is imported in to spring-app-context xml.
My code is as follows :-

Quartz-scheduler.xml


RunMeTask.java




RunMeJob.java






But when i start the server it gives me following error. And my Scheduler wont start at all.

7 years ago
I did this for one student...
ie displayed first name and last name.... and a multiple check boxes ..
I am able to take checked values for first student.....

For remaining students.... How can I Take checked values of remaining students.
9 years ago
I need to take check box values from jsp page to Action class.
And store values to database.
How to retreive the values of check box which are selected.

attendance.jsp




AttendanceAction.java



AttendanceForm.java
9 years ago
oh yes. Without creating object we cannot call non static method......
I think this should work..
9 years ago
Use
9 years ago
I have worked on simple struts application.
But in this case I am not able to figure out where exactly is the problem.
Help, me.

[ServletException in:/jsp/attendancePage.jsp] javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope'
javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
at org.apache.jsp.jsp.attendancePage_jsp._jspService(attendancePage_jsp.java:176)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)
at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:621)
at org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
at org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
at org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)
at org.apache.struts.taglib.tiles.InsertTag$InsertHandler.doEndTag(InsertTag.java:881)
at org.apache.struts.taglib.tiles.InsertTag.doEndTag(InsertTag.java:473)
at org.apache.jsp.jsp.siteLayout_jsp._jspx_meth_tiles_005finsert_005f3(siteLayout_jsp.java:395)
at org.apache.jsp.jsp.siteLayout_jsp._jspService(siteLayout_jsp.java:252)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
at org.apache.struts.tiles.TilesRequestProcessor.processTilesDefinition(TilesRequestProcessor.java:254)
at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:309)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.servlet.jsp.JspException: Cannot find bean org.apache.struts.taglib.html.BEAN in any scope
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:938)
at org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:176)
at org.apache.jsp.jsp.attendancePage_jsp._jspx_meth_html_005ftext_005f0(attendancePage_jsp.java:295)
at org.apache.jsp.jsp.attendancePage_jsp._jspx_meth_logic_005fequal_005f0(attendancePage_jsp.java:212)
at org.apache.jsp.jsp.attendancePage

attendanceform.jsp



menus.jsp



AttendanceAction.java



AttendanceAction.java



struts-config.xml






9 years ago
Is it possible to create our own Generic class ?
9 years ago
I think I was wrong in other steps.
I will check that.
10 years ago
Hi, Good Afternoon,
I need to pass page numbers from jsp to action class.
I need to display some finite values in first page, then some in second page, ie page wise I need to display information.

In my jsp:


In my Action class:


How to retrieve the value stored in request.getParameter();
10 years ago
Thank you all.
I will try that.
So friendly.
I just love this place.

No.
I tried again same problem.

Do not know where am I going Wrong.
Actually, SQL file was created by my colleague and he has quit the job.

Any suggestions, In what other ways can I do it?
Hi, I have a sql file.
I have formatted my system hence my earlier database is deleted.
I thought since I have sql file I can restore my database with all tables created.
Now, I am using following command to restore database.

But, it is displaying an error as:
Error 1064(42000): You have an error in your sql syntax



Do i need to give complete path.?
I tried that too but no use.

My sql file is on desktop.
How to restore the database using this sql file?



Welcome sir, I wish you good luck for your new release.
10 years ago
@David: No, David. Good point I will try that.
Will get back if I still have problems.
10 years ago
Hi , I am creating a page where i am displaying some data.
Now i want to display only five items in first page , next five in other page.

Then i am querying database to display accordingly.
My code is :







How to pass the values Can you show me the way?




and



I don't know how to this.
Help me.
10 years ago