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! I'm using jboss-3.2.1_tomcat-4.1.24, but it didn't expand the war archive. And i use getResource(String path) instead of getResourceAsStream(String str) , any difference ???
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??
strAliasName.append("REP_PRO").append("_").append(extInfo.getColName()); But use String instead of above , doesn't it create 3862*3 Strings here ?? [ July 02, 2003: Message edited by: Javan Li ]