Help coderanch get a
new server
by contributing to the fundraiser

ram krishnaa

Greenhorn
+ Follow
since Nov 15, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by ram krishnaa

Hi,

Can any one please tell me how to upload folde in java.
If we use input type is file it is taking only file but my
requirement is to select folder.

thanks in advance.
14 years ago
JSP
Thanks Tim...
I have downloaded the Tomahawk 1.1.6 jar file and i added it in my project(I am using Eclipse Galileo).
And i did basic configurations like addinjg filter in web.xml....
I am attaching the code below...


<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
<display-name>SD_Auto</display-name>
<welcome-file-list>
<welcome-file>Login.jsf</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>



<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
<init-param>
<description>Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB</description>
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
</init-param>
<init-param>
<description>Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.

Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB</description>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
</init-param>
</filter>

<!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->

<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
<servlet-name>Faces Servlet</servlet-name>
</filter-mapping>

<!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>


<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>
</web-app>



And my jsp page with this code..

<%@taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%><%@taglib
uri="http://java.sun.com/jsf/core" prefix="f"%><%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<f:view>
<h:form id="calendarForm4">


<t:inputCalendar id="secondOne" value="#{hR_Infotype_details1.idStartDate}"
renderAsPopup="true"
popupDateFormat="MM/dd/yyyy"
popupTodayDateFormat="dd-MMM-yyyy"
popupWeekString="Week"
popupTodayString="The date today is :"
renderPopupButtonAsImage="true"
popupButtonImageUrl="common/img/calendar_icon.gif"
helpText="MM/DD/YYYY"
forceId="true"/>




</h:form></f:view>
</body>
</html>


but when am trying to execute the jsp page the following error is coming...

type Status report

message

description The requested resource () is not available


Please help in this regards...





14 years ago
JSF
Hi
I am using sun jsf 1.2 .
My requirement is to put one calendar in jsf page.
can any body please send code or alink.

thanks in advance...
14 years ago
JSF
Hi

I am new to jsf...
Can any one please tell me how to add new row and delete new row in jsf to grid view and how to store that values in database...
14 years ago
JSF