krish bhadragiri

Greenhorn
+ Follow
since Apr 17, 2007
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 krish bhadragiri

hi,
While installing Cocoon on the Windows XP2002 with java version JDK 1.5.0_06 following the instructions provided in the install.txt of cocoon-2.1.10 distribution,in the step (3) ,when the "build" command is executed from the command prompt ,the control after executing number of targets finally fails the build at a point.The following is the stack trace :


BUILD FAILED
C:\krish\workarea\cocoon-2.1.10\tools\targets\compile-build.xml:255: The following error occurred while executing this line:
C:\krish\workarea\cocoon-2.1.10\build\cocoon\temp\blocks-build.xml:2792: The following error occurred while executing this line:
C:\krish\workarea\cocoon-2.1.10\build\cocoon\temp\blocks-build.xml:183: FileNotFoundException: java.io.FileNotFoundException: C:\krish\workarea\cocoon-2.1.10\build\cocoon\classes\org\apache\cocoon\cocoon.roles (The requested operation cannot be performed on a file with a user-mapped section open)

Please help me out in configuring the cocoon.

Thanks and regards,
krish
hi ,

I am looking for a efficient Content Management System tool.I am thinking of using Apache LENYA.I want to know the dependencies(such as jdk version,input formats etc),limitations,advantages over other content management systems.

thanks and regards,
Krish
thanks Ulf,there are some good stufs for swings in the sun website and in the link which you sent
16 years ago
hi ,
I want to have some good reference pdf on swings which should include threads concepts (and include new features of swing utilities and swing worker fundamentals).Please send me the links to download the pdfs pertainiing to the above topics.
regards,
MuraliKrishna
16 years ago
Thanks for that.I have changed th package name and added the required tags in web.xml.But the same problem persists.
16 years ago
hi,
i am doing one sample application in hibernate with struts .i kept one jsp welcome file in web.xml with welcome file list.in struts-config.xml,i mapped the action path in jsp to one Action class which extends struts Action class.When i am running the tomacat server its perfectly working.and welcome file is displayed.But on submitting following error is given in browser.
"HTTP Status 500 - No action instance for path /search could be created"
Attaching the welcome file and struts-config.xml:
1.web.xml:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">

<web-app>


<!-- Action Servlet Mapping -->

<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>


<welcome-file-list>
<welcome-file>/search.jsp</welcome-file>
</welcome-file-list>


</web-app>



2.struts_config.xml:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">
<struts-config>

<form-beans>
<form-bean name="searchForm" type="java.Search"/>
</form-beans>

<action-mappings>

<action path="/search" type="java.SearchAction" input="/failure.jsp" scope="request">

<forward name="sucess" path="/sucess.jsp"/>


</action>
</action-mappings>
</struts-config>


3.jsp file:

<html>
<head>
<title>Front page</title>
</head>
<body bgcolor="lightgreen">
<form action="search.do">
id:<input type="text" name="txt1"/>
<input name=button type=submit value="Click">
<input name=button type=reset value="reset">
</form>
</body>
</html>

4.Action class:

package java;

import common.DAOException;
import java.io.*;
import java.util.*;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.log4j.Logger;

public class SearchAction extends Action
{
private static Logger log = Logger.getLogger(SearchAction.class.getName());

public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest req,
HttpServletResponse res)throws IOException,ServletException
{
HttpSession session=req.getSession();
log.info("In Search Action");
Search se=(Search)form;
try
{
String name=SearchFascade.getSearchName(se);
session.setAttribute("name",name);

}
catch(DAOException daoexception)
{
daoexception.printStackTrace();
//return mapping.findForward("failure");
}
return mapping.findForward("sucess");
}
}


please give a solution.

regards,

Murali
16 years ago
e.g (say you have a employee table in a database.and you have mapped that employee table with Employee.hbm.xml in hibernate to the Employee.java persistent class.then use the following code to select details from table.
note:u have to keep the Employee.hbm.xml in the classpath of persistent class.and give that description of mapping file .hibernate.cfg.xml)

List<Employee> employees=null;
try
{
Configuration config=new Configuration();
config=config.configure();
SessionFactory sessionFactory = config.buildSessionFactory();

Session session = sessionFactory.openSession();
Query q=session.createQuery("from Employee as emp");
System.out.println(q.getQueryString());
employees=q.list();



}
catch(HibernateException ex)
{
ex.printStackTrace();
}
hi,
i am working on a reporting project.i have a requirement of generating a reminder if a employee does not send his daily status to the reporting person by the end of that day.what should i do to generate reminder at particular time every day/week based on the report status(sent or not) in the database.shall i use servlet listener and timer incorporate timer in that.

regards,
krish
16 years ago
actually m setting the dates using string date format as '2007-04-19'in dated field of mysql table of colum type date.

so i want querries for retrieving records for last seven days and last 1 month.
hi,
i want to retrieve records of the week (i.e records since last 7days).i wrote
"from WorkDetails as work_details where work_details.dated<=current_date and dated>=currrent_date-7 and work_details.employee_id="+employee_column_id"

but its throwing:org.hibernate.exception.SQLGrammarException:could not execute query.
hi,
i want to retrieve records of the week (i.e records since last 7days).i wrote
"from WorkDetails as work_details where work_details.dated<=current_date and dated>=currrent_date-7 and work_details.employee_id="+employee_column_id"

but its throwing:org.hibernate.exception.SQLGrammarException:could not execute query.
hi,
i want to retrieve records of the week (i.e records since last 7days).i wrote
"from WorkDetails as work_details where work_details.dated<=current_date and dated>=currrent_date-7 and work_details.employee_id="+employee_column_id"

but its throwing:org.hibernate.exception.SQLGrammarException:could not execute query.
please send me the syntax for creating the sequence in mysql and how that sequence be linked to different fields of different tables.