siva prasa

Greenhorn
+ Follow
since Feb 16, 2010
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 siva prasa

Hi all,

How to display timer in each and every jsp page ,like when i click next button it will show next page i have 10 pages and finally i have to show how much time i have taken to complete the process.how it is possible ??
Using javascript i can display in single jsp page,how to maintain the timer in all the jsp's until step10???


Thank you for reading my post.
13 years ago
JSF
How to clear the auto complete by javascript or java code by run time,Any idea?

<rich:calendar id="searchingDateFromField"
value="#{transactionListBean.tnx_StartDate_Search}"
locale="en/US" popup="true" datePattern="dd/MM/yyyy"
showApplyButton="false" cellWidth="24px" inputSize="11"
cellHeight="22px" style="width:200px" enableManualInput="true"/>

I have go through the site but it is Manually,i like to do by run time using a4j:support or some other ways.How to fix this.

http://michaeljaylissner.com/blog/rid-thyself-of-autocomplete-in-firefox



13 years ago
JSF
hi

where is the action method in your bean class???
action="#{batchBean.fillStoreListFromPartner}"

i cant see any method like fillStoreListFromPartner,is your application calling that method???In that method only you have to set for the second combobox list.


13 years ago
JSF

You have to define the name for the UserBean in faces-config.xml file ,Then only you can use like "user.userName".

Like this:

<managed-bean>
<managed-bean-name>user</managed-bean-name>
<managed-bean-class>userBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>


here specifiy the beanclass with your package name if you have any thing like com. - - -.---.U serBean

try some sample applications also and see where to add the config file and all.
13 years ago
JSF
Hi All,

I have to create Menus from database(dynamically).For horizontal menu i am able to create using rich:toolbar.But Vertical menus how to create?If any one come out of the problem help me.From database i am able to read total menu size in menuInterface java file.my files are listed below.

My jsp:

<rich:dropDownMenu binding="#{loginBean.richMenu}">
</rich:dropDownMenu>

Login Bean:

public class LoginBean {

private static Log log = LogFactory.getLog(LoginBean.class);
private ResourceBundle ppsResources = ResourceBundle.getBundle("ApplicationResources");

private List<NavigationMenuItem> menu;
//private HtmlToolBar richMenu;
private HtmlDropDownMenu richMenu;
private MenuInterface menuInterface;


public LoginBean()
{
System.out.print("Calling Cons.............");
menuInterface = new MenuInterface();
}

/* Getter Setter methods */

public List<NavigationMenuItem> getMenu() {
return menu;
}

public void setMenu(List<NavigationMenuItem> menu) {
this.menu = menu;
}

public HtmlDropDownMenu getRichMenu() {
return richMenu;
}

public void setRichMenu(HtmlDropDownMenu richMenu) {
this.richMenu = richMenu;
}

}

MenuInterface.Java:

public class MenuInterface {

private static Log log = LogFactory.getLog(MenuInterface.class);
private List<NavigationMenuItem> menu;
//private HtmlToolBar richToolbar;
private HtmlDropDownMenu richToolbar;

public MenuInterface() {

}

private List<NavigationMenuItem> generateMenu(int userSerial) {
//List cache = ServiceDao.menuListExecute().fetchMenuByRole(userSerial);
List cache = new ArrayList<String>();
return engineMenu(cache);

}

private List<NavigationMenuItem> generateMenu() {
List cache = ServiceDao.menuListExecute().fetchMenuSortData();
return engineMenu(cache);
}

private HtmlDropDownMenu generateRichMenu() {
List cache = ServiceDao.menuListExecute().findByExample();
//List cache = ServiceDao.menuListExecute().fetchMenuSortData();
return engineRichMenu(cache);
}

private HtmlDropDownMenu generateRichMenu(int userSerial) {
//List cache = ServiceDao.menuListExecute().findByExample();
//List cache = ServiceDao.menuListExecute().fetchMenuByRole(userSerial);
List cache = ServiceDao.menuListExecute().findMenuByRoleExample(userSerial);
//List cache = ServiceDao.menuListExecute().fetchMenuSortData();
return engineRichMenu(cache);

}

private HtmlDropDownMenu engineRichMenu(List cache) {

log.debug("engine Rich Menu starting...");
//List<NavigationMenuItem> rootMenu = null;
HtmlDropDownMenu toolbar = new HtmlDropDownMenu();
int tabSpaces=0;


NavigationMenuItem parentMenu;
List<HtmlMenuItem> childMenu;

log.info("Menu List Size = " + cache.size());
//rootMenu = new ArrayList<NavigationMenuItem>();

int i = 0;
while(i<cache.size()){
//while (cache.size() > 0) {
//Menu menu = getDataMenu(cache, i);
Menu menu = (Menu)cache.get(i);

if ((menu.getParent() == 0) && !menu.getStatus().equals("ADDED")){
log.debug("STATUS ==== "+menu.getStatus());
HtmlDropDownMenu rootMenu = new HtmlDropDownMenu();
rootMenu.setValue(menu.getLabel());
rootMenu.setLabelClass("celcomMenuLabel");
rootMenu.setStyleClass("celcomMenuLabel");

log.debug("Root Menu === " + menu.getSerial() + "|"
+ menu.getDescription() + "|" + menu.getParent());

//parentMenu = menuInfo(menu);
//rootMenu.add(parentMenu);
menu.setStatus("ADDED");
cache.set(i,menu);
//cache.remove(i);
//i--;
log.debug("Menu List Size after remove = " + cache.size());
Integer ii = new Integer(i);
childMenu = recursiveChildRichMenu(tabSpaces+10,ii,cache, menu.getSerial());
rootMenu.getChildren().addAll(childMenu);
//parentMenu.setNavigationMenuItems((List<HtmlMenuItem>) childMenu);
toolbar.getChildren().add(rootMenu);

} else {
log.debug("Not Root Menu..."+menu.getLabel());
log.debug("STATUS ==== "+menu.getStatus());

}

i++;
// if (i >= cache.size())
// i = 0;
}
log.debug("engine Menu end...");
return toolbar;
}

private List<HtmlMenuItem> recursiveChildRichMenu(int tabSpaces, Integer upperI, List recursiveData,
int parentID) {

int beforeI;
List parentMenuList = null;

parentMenuList = new ArrayList();

log.debug(whiteSpace(tabSpaces)+"["+ parentID +"]"+ "<--- Parent ID ************************************************ [ START ]");
HtmlMenuItem parentMenu = null;
HtmlMenuGroup parentGroupMenu = null;
List<HtmlMenuItem> childMenu;
int i = 0;

while (i < recursiveData.size()) {
//Menu menu = getDataMenu(recursiveData, i);
Menu menu = (Menu)recursiveData.get(i);
if ((menu.getParent() == parentID) && !menu.getStatus().equals("ADDED")) {

log.debug("STATUS ==== "+menu.getStatus());
log.debug(whiteSpace(tabSpaces)+"Child Menu Found [" + i + "] === " + menu.getSerial() + "|"
+ menu.getDescription() + "|" + menu.getParent());

parentMenu = richMenuInfo(menu);
HtmlActionParameter menuItemParam = new HtmlActionParameter();
menuItemParam.setId("includePage"+Integer.toString(menu.getSerial()));
menuItemParam.setName("includePage");
menuItemParam.setValue(menu.getAction());
parentMenu.getChildren().add(menuItemParam);
parentMenu.setReRender("contentPage");

parentGroupMenu = richMenuGroupInfo(menu);

//recursiveData.remove(i);

menu.setStatus("ADDED");
recursiveData.set(i, menu);
//log.debug(whiteSpace(tabSpaces)+"Menu List Size after remove = "+ recursiveData.size());
log.debug(whiteSpace(tabSpaces)+"upperI ======= "+upperI +" current i ===="+i);


//i--;
beforeI = i;
log.debug(whiteSpace(tabSpaces)+"before i ======= "+i);
childMenu = recursiveChildRichMenu(tabSpaces+10,i,recursiveData, menu.getSerial());

log.debug(whiteSpace(tabSpaces)+"after i ======= "+i);
if(childMenu.size()>0){
//log.debug(whiteSpace(tabSpaces)+"Child Found = "+childMenu.size());
parentMenuList.add(parentGroupMenu);
parentGroupMenu.getChildren().addAll(childMenu);
parentMenu = null;
}else{
//log.debug(whiteSpace(tabSpaces)+"No Child Found... ");
Class[] params = {};

FacesContext ctx = FacesContext.getCurrentInstance();
Application app = ctx.getApplication();
MethodExpression actionExpression = app.getExpressionFactory().createMethodExpression(ctx.getELContext(),"#{menuActionBean.actionInclude}",String.class, params);
parentMenu.setActionExpression(actionExpression);

parentMenuList.add(parentMenu);
parentGroupMenu = null;
}



} else {
log.debug("STATUS ==== "+menu.getStatus());
log.debug(whiteSpace(tabSpaces)+"Not It Child [" + i + "] === " + menu.getSerial() + "|"
+ menu.getDescription() + "|" + menu.getParent());
}
i++;
}
log.debug(whiteSpace(tabSpaces)+"["+ parentID +"]"+ "<--- Parent ID ************************************************ [ END ]");
return parentMenuList;
}

private HtmlMenuItem richMenuInfo(Menu menu) {

HtmlMenuItem htmlMenuItem = new HtmlMenuItem();
//htmlMenuItem.setAction(menu.getAction());
htmlMenuItem.setValue(menu.getLabel());
htmlMenuItem.setSubmitMode("ajax");
htmlMenuItem.setRendered(true);
htmlMenuItem.setAjaxSingle(true);
htmlMenuItem.setLabelClass("celcomMenuLabel");
htmlMenuItem.setStyleClass("celcomMenuLabel");
//htmlMenuItem.setOnclick(_onclick)
//htmlMenuItem.setId(Integer.toString(menu.getSerial()));

//menuItem.setAction(menu.getAction());
//menuItem.setActionListener(menu.getActionListerner());
//menuItem.setLabel(menu.getLabel());
//menuItem.setDescription(menu.getDescription());
// menuItem.setExternalLink();
//menuItem.setActive(true);
//menuItem.setOpen(true);
//menuItem.setTarget(menu.getTarget());

return htmlMenuItem;
}

private HtmlMenuGroup richMenuGroupInfo(Menu menu) {

HtmlMenuGroup htmlMenuGroup = new HtmlMenuGroup();
//htmlMenuItem.setAction(menu.getAction());
htmlMenuGroup.setValue(menu.getLabel());
htmlMenuGroup.setLabelClass("celcomMenuLabel");
htmlMenuGroup.setStyleClass("celcomMenuLabel");
//htmlMenuGroup.setId(Integer.toString(menu.getSerial()));
//menuItem.setAction(menu.getAction());
//menuItem.setActionListener(menu.getActionListerner());
//menuItem.setLabel(menu.getLabel());
//menuItem.setDescription(menu.getDescription());
// menuItem.setExternalLink();
//menuItem.setActive(true);
//menuItem.setOpen(true);
//menuItem.setTarget(menu.getTarget());

return htmlMenuGroup;
}


private String whiteSpace(int count){
String spacing="";
for(int i=0;i<count;i++){
if(i==count-10)
spacing = spacing + "|";
else
spacing = spacing + " ";
}
return spacing;
}
}

My MenuDao:

public List findMenuByRoleExample(int userSerial) {
log.debug("finding Menu instance by example");
List results=null;
List menu = new ArrayList();
try {

/*results = getSession().createCriteria(UserProfile.class)
.add(Restrictions.eq("serial", userSerial))
.list();

UserProfile userProfile = (UserProfile)results.get(0);
log.debug("userProfile.getUserRole().getId() = " + userProfile.getUserRole().getId());*/
results = getSession().createCriteria(Menu.class)
.addOrder(Order.asc("parent"))
.addOrder(Order.asc("sequence"))
//.createCriteria("menuRoleAccesses")
//.add(Restrictions.eq("userRole.id", ))
.list();

log.debug("find by example successful, result size: " + results.size());


return results;
} catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}finally{
getCloseSession();
}
//return results;
}

....................................

public String systemGatewayLogin() {
System.out.println("Loading systemGatewayLogin.....");
log.debug("Entering into systemGatewayLogin....");
setRichMenu(menuInterface.getRichMenu(2));
log.debug("ChildCount:"+getRichMenu().getChildCount());
//setInteractionType(menuInterface.getInteractionType());
AppSession.CreateNewSession();
AppSession.AppTimeOut();
AppSession.AppSessionSetAttribute("username","siva");
//AppSession.AppSessionSetAttribute("fullname",login.getUserProfile().getFullname());
AppSession.AppSessionSetAttribute("userserial","0");
return "success";
}



In Jsp page it is displaying empty.Nothing it is diaplaying.Any one help me about this problem.
13 years ago
JSF
[b]Hi all,
Any one know's how to create Richfaces menus in Verically?if you have some good ideas Share with me.i am struck in this area.Currently i am able to create horizontal menus.


http://www.javabeat.net/tips/91-creating-simple-toolbar-using-richfaces-tag-l.html

Code:

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@ taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
<html>
<body>
<f:view>
<h:form>
<rich:toolBar>
<rich:dropDownMenu>
<f:facet name="label">
<h:outputText value="File"/>
</f:facet>
<rich:menuItem value="New"/>
<rich:menuItem value="Open"/>
<rich:menuItem value="Exit"/>
</rich:dropDownMenu>
<rich:dropDownMenu>
<f:facet name="label">
<h:outputText value="Edit"/>
</f:facet>
<rich:menuItem value="Find"/>
<rich:menuItem value="Replace"/>
</rich:dropDownMenu>
</rich:toolBar>
</h:form>
</f:view>
</body>
</html>

Images:[/b]




Any examples or ideas behind creating verically like css or something??Thank you for reading this post.

13 years ago
JSF
Hi all,

Can we merge Rich faces with tiles for the layout design??If any one knows the website please share with me.Thank you for reading.

Regards,
Siva

13 years ago
JSF
Could any one explain me or refer me about,single thread and multiple thread.???Thank you.
Can any one help me how to make checkbox in fop???In xsl file any idea please help me.
Any one know plugin for FOP with netbeans6.8.I can't find any plugin's for FOP.Help me if any one knows.
Thanks for your reply.How to create a PDF file from a java code using swing.Any example or website please help me.
13 years ago
Hi all,

I have to create my swing components with appropriate values as PDF page ,when i click SAVE buttin in my swing page it has to create PDF file with components.I have attached my page as image .If any one knows please help how to solve this problem.Thank you for reading this forum.

13 years ago
I am getting null pointer exception when i am uploading file.I can see the selected file in richfaces file upload box.Then i click upload button it is showing null pointer exception.if any one knows setup for that with example please share with me......thanks for reading this .....

Mar 22, 2010 11:26:51 AM com.sun.faces.lifecycle.ApplyRequestValuesPhase execute
WARNING: java.lang.NullPointerException
javax.faces.FacesException: java.lang.NullPointerException
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:714)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:221)
at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:412)
at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:385)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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:128)
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:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at org.richfaces.renderkit.FileUploadRendererBase.doDecode(FileUploadRendererBase.java:138)
at org.ajax4jsf.renderkit.RendererBase.decode(RendererBase.java:75)
at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:789)
at javax.faces.component.UIInput.decode(UIInput.java:725)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1031)
at javax.faces.component.UIInput.processDecodes(UIInput.java:639)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
at org.ajax4jsf.component.UIAjaxRegion.processDecodes(UIAjaxRegion.java:103)
at org.ajax4jsf.component.AjaxViewRoot$1.invokeContextCallback(AjaxViewRoot.java:395)
at org.ajax4jsf.component.ContextCallbackWrapper.invokeContextCallback(ContextCallbackWrapper.java:44)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:711)
... 46 more
2010 Mar 22 11:26:51 [http-8080-1] DEBUG com.celcom.app.bean.BlacklistBean - getSelectedBlacklist ...null
2010 Mar 22 11:26:51 [http-8080-1] DEBUG com.celcom.app.bean.BlacklistBean - getSelectedBlacklist ...null
Mar 22, 2010 11:26:51 AM com.sun.faces.lifecycle.Phase doPhase
SEVERE: JSF1054: (Phase ID: APPLY_REQUEST_VALUES 2, View ID: /home/ppsMain.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEven
t[source=com.sun.faces.lifecycle.LifecycleImpl@128dca6]
2010 Mar 22 11:26:51 [http-8080-1] DEBUG com.celcom.app.bean.BlacklistBean - getSelectedBlacklist ...null
2010 Mar 22 11:26:51 [http-8080-1] DEBUG com.celcom.app.bean.BlacklistBean - getSelectedBlacklist ...null
2010 Mar 22 11:26:51 [http-8080-1] DEBUG com.celcom.app.bean.BlacklistBean - getSelectedBlacklist ...null
2010 Mar 22 11:26:51 [http-8080-1] DEBUG com.celcom.app.bean.BlacklistBean - getSelectedBlacklist ...null
2010 Mar 22 11:26:51 [http-8080-1] DEBUG com.celcom.app.bean.BlacklistBean - getSelectedBlacklist ...null
2010 Mar 22 11:26:51 [http-8080-3] ERROR org.ajax4jsf.webapp.BaseXMLFilter - Exception in the filter chain
javax.servlet.ServletException: java.lang.NullPointerException
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:385)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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:128)
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:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.faces.FacesException: java.lang.NullPointerException
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:714)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:720)
at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:221)
at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:412)
at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
... 21 more
Caused by: java.lang.NullPointerException
at org.richfaces.renderkit.FileUploadRendererBase.doDecode(FileUploadRendererBase.java:138)
at org.ajax4jsf.renderkit.RendererBase.decode(RendererBase.java:75)
at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:789)
at javax.faces.component.UIInput.decode(UIInput.java:725)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1031)
at javax.faces.component.UIInput.processDecodes(UIInput.java:639)
at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1026)
at org.ajax4jsf.component.UIAjaxRegion.processDecodes(UIAjaxRegion.java:103)
at org.ajax4jsf.component.AjaxViewRoot$1.invokeContextCallback(AjaxViewRoot.java:395)
at org.ajax4jsf.component.ContextCallbackWrapper.invokeContextCallback(ContextCallbackWrapper.java:44)
at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:711)
... 46 more

Web.xml

<?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>Celcom-PPS</display-name>

<welcome-file-list>
<welcome-file>/home/index.jsp</welcome-file>
</welcome-file-list>

<context-param>
<param-name>javax.faces.CONFIG_FILES</param-name>
<param-value>/WEB-INF/faces-config.xml</param-value>
</context-param>

<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>client</param-value>
</context-param>



<!-- RichFaces Setting START -->
<!-- Plugging the "Blue Sky" skin into the project -->
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>

<!-- Making the RichFaces skin spread to standard HTML controls -->
<context-param>
<param-name>org.richfaces.CONTROL_SKINNING</param-name>
<param-value>enable</param-value>
</context-param>

<!-- Defining and mapping the RichFaces filter -->
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>

<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>

<filter>
<filter-name>MyFacesExtensionFilter</filter-name>
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
<init-param>
<param-name>createTempFiles</param-name>
<param-value>true</param-value>
</init-param>
</filter>

<filter-mapping>
<filter-name>MyFacesExtensionFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>

<filter-mapping>
<filter-name>MyFacesExtensionFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>

<!--
<listener>
<listener-class>com.sun.faces.config.ConfigureListener</listener-class>
</listener>
-->

<!-- RichFaces Setting END -->


<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>






<!-- Standard Action Servlet Configuration (with debugging) -->
<servlet>
<servlet-name>configuration-init</servlet-name>
<servlet-class>com.compudyne.application.config.SConfiguration</servlet-class>
<init-param>
<param-name>FILE_PROP</param-name>
<param-value>app-config.properties</param-value>
</init-param>
<init-param>
<param-name>FILE_LOGGER</param-name>
<param-value>log4j.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet>
<servlet-name>OCSRequestServlet</servlet-name>
<servlet-class>com.celcom.app.servlet.OCSRequestServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet>
<servlet-name>SimulatorGetResponseFE</servlet-name>
<servlet-class>com.compudyne.simulater.ocs.serlvet.SimulatorGetResponseFE</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet>
<servlet-name>SimulatorGetResponseBE</servlet-name>
<servlet-class>com.compudyne.simulater.ocs.serlvet.SimulatorGetResponseFE</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet>
<servlet-name>MaybankResponseServlet</servlet-name>
<servlet-class>com.celcom.app.servlet.MaybankResponseServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet>
<servlet-name>TransactionReportServlet</servlet-name>
<servlet-class>com.celcom.app.servlet.TransactionReportServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet>
<servlet-name>TransactionReportSummaryServlet</servlet-name>
<servlet-class>com.celcom.app.servlet.TransactionReportSummaryServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet>
<servlet-name>TransactionReportSummaryDetailServlet</servlet-name>
<servlet-class>com.celcom.app.servlet.TransactionReportSummaryDetailServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet>
<servlet-name>ExcelFormatDownloadServlet</servlet-name>
<servlet-class>com.celcom.app.servlet.ExcelFormatDownloadServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<!-- servlet mapping starts here -->

<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.faces</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.jsf</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>OCSRequestServlet</servlet-name>
<url-pattern>/servlet/OCSRequestServlet</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>MaybankResponseServlet</servlet-name>
<url-pattern>/servlet/MaybankResponseServlet</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>SimulatorGetResponseFE</servlet-name>
<url-pattern>/servlet/SimulatorGetResponseFE</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>SimulatorGetResponseBE</servlet-name>
<url-pattern>/servlet/SimulatorGetResponseBE</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>TransactionReportServlet</servlet-name>
<url-pattern>/servlet/TransactionReport</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>TransactionReportSummaryServlet</servlet-name>
<url-pattern>/servlet/TransactionReportSummary</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>TransactionReportSummaryDetailServlet</servlet-name>
<url-pattern>/servlet/TransactionReportDetailSummary</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>ExcelFormatDownloadServlet</servlet-name>
<url-pattern>/servlet/ExcelFormatDownload</url-pattern>
</servlet-mapping>

<!-- servlet mapping ends here -->

<listener>
<listener-class> com.compudyne.ps.util.MySessionListener</listener-class>
</listener>

<filter>
<filter-name>SessionTimeoutFilter</filter-name>
<filter-class>com.compudyne.ps.util.SessionTimeoutFilter</filter-class>
</filter>


<filter-mapping>
<filter-name>SessionTimeoutFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
<!--Remember to use your correct URL pattern-->
</filter-mapping>


<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/home/yourSessionIsTimedOut.jsp</location>
</error-page>

<error-page>
<exception-type>org.hibernate.exception.GenericJDBCException</exception-type>
<location>/home/yourSessionIsTimedOut.jsp</location>
</error-page>

</web-app>

UploadFilebean.java

public void fileUploadListener(UploadEvent event) throws IOException {
if(event==null){
log.debug("null upload event");
return;
}
UploadItem item = event.getUploadItem();

String name = "unnamed_attachment";
byte[] data = item.getData();

if (item.isTempFile()) {
name = item.getFileName();
data = item.getData();
File file = item.getFile();
log.debug(
"uploaded "+name+
" - length= "+( (data==null)?0:data.length) +
" tmpFile="+file.getAbsoluteFile()
);
}

}

jsp page

<rich:fileUpload fileUploadListener="#{fileUploadBean.fileUploadListener}"
uploadData = "#{fileUploadBean.data}"
id="upload"
acceptedTypes="xls" >
<a4j:support event="onuploadcomplete" reRender="info" />
<f:facet name="newname">
<h:outputText value="{_KB}KB from {KB}KB uploaded --- {mm}:{ss}" />
</f:facet>
</rich:fileUpload>



13 years ago
JSF

siva prasa wrote:I am getting Null pointer exception.How to get the selected file name in backend bean.I am using t:inputFileUpload How to resolve it.If any one knows help me....Thanks for reading this page. Do we need to set up any web.xml file or any jar file???


SEVERE: java.lang.NullPointerException
javax.faces.el.EvaluationException: java.lang.NullPointerException
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at javax.faces.component.UICommand.broadcast(UICommand.java:387)
at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)
at org.ajax4jsf.component.UIInclude.broadcast(UIInclude.java:170)
at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:324)
at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:299)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:256)
at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:469)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:285)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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:128)
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:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at com.celcom.app.helper.UploadFileToDatabase.UploadFileAction(UploadFileToDatabase.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.el.parser.AstValue.invoke(AstValue.java:172)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
... 36 more
Mar 10, 2010 11:10:03 AM com.sun.faces.lifecycle.InvokeApplicationPhase execute
WARNING: #{uploadFileBean.UploadFileAction}: java.lang.NullPointerException
javax.faces.FacesException: #{uploadFileBean.UploadFileAction}: java.lang.NullPointerException
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)
at javax.faces.component.UICommand.broadcast(UICommand.java:387)
at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)
at org.ajax4jsf.component.UIInclude.broadcast(UIInclude.java:170)
at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:324)
at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:299)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:256)
at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:469)
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:285)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:341)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
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:128)
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:293)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
... 35 more
Caused by: java.lang.NullPointerException
at com.celcom.app.helper.UploadFileToDatabase.UploadFileAction(UploadFileToDatabase.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.el.parser.AstValue.invoke(AstValue.java:172)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
... 36 more


Jsp:


<h:panelGrid columns="5" border="0"
columnClasses="fieldLabel,fieldColon,fieldData,fieldError,fieldErrorNone">
<t:inputFileUpload id="file" size="30" required="true" maxlength="200000"
value="#{uploadFileBean.uploadedFileName}" styleClass="celcom01" />
</h:panelGrid>

Bean:


import java.io.*;
import java.util.ArrayList;
import java.util.Date;
import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;
import java.util.ResourceBundle;
import java.util.Vector;

import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.myfaces.custom.fileupload.UploadedFile;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRichTextString;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;

import com.celcom.app.bean.BlacklistBean;
import com.celcom.app.middle.BlacklistProfilesList;
import com.compudyne.dao.celcom.pojo.Blacklisted;
import com.compudyne.dao.celcom.pojo.CreditcardPayment;
import com.compudyne.dao.services.ServiceDao;
import com.compudyne.ps.util.IdGenerator;

public class UploadFileToDatabase {

private static Log log = LogFactory.getLog(UploadFileToDatabase.class);
private UploadedFile uploadedFileName;
private String fileNameSelected;
ResourceBundle ppsResources = ResourceBundle.getBundle("ApplicationResources");


public String getFileNameSelected() {
return fileNameSelected;
}

public void setFileNameSelected(String fileNameSelected) {
this.fileNameSelected = fileNameSelected;
}

public UploadedFile getUploadedFileName() {
return uploadedFileName;
}

public void setUploadedFile(UploadedFile uploadedFileName) {
this.uploadedFileName = uploadedFileName;
}



public void UploadFileAction() {
log.info("Comming into UploadFileAction()........"+this.getFileNameSelected());
Vector listvalues = new Vector();
List lstValues=new ArrayList();
Blacklisted blacklisted=null;
System.out.println(uploadedFileName.getName());
System.out.println(uploadedFileName.getContentType());
System.out.println(uploadedFileName.getSize());
}



}

13 years ago
JSF