Q1) I used Pluto as my portlet container, and i generated a session with "application scope" , but i found other portlets cannot get the sesssion. I wonder whether it's a bug of Pluto or me? :-) Q2) And what's diff between ActionRequest & RenderRequest ? When use them? Thanks!
Thanks very much! But i guess you misunderstand me. What i mean is context.getRealPath("/") cannot return a path , but a null. Because if u use a war file instead of expanded directory , getRealPath(String s) doesn't work. then what can i do??
getRealPath public String getRealPath(String path) This method returns null if the servlet container cannot translate the virtual path to a real path for any reason (such as when the content is being made available from a .war archive).
Hi all, i've developed an application. But when i make it a war file. some error appear. for example: When i try to read a xml file from /WEB-INF/xml/ as follow, it cannot find it: String dir=context.getRealPath("/"); String file=dir + "/WEB-INF/xml/res.xml"; and this code doesn't work. What should i do??