Javan Li

Ranch Hand
+ Follow
since Jul 24, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Javan Li

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!
21 years ago
I'm gotta some questions about session of portlet.
21 years ago
Thanks very much, David !
21 years ago
Thanks very much! you are great help!
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 ???
21 years ago
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).


Thanks!
21 years ago
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??

i appreciate if u can help u!
21 years ago
Why need it ??? thanks very much!
for example:
protected CustomizeRecItem get(String strTableName,String strColName) {
return (CustomizeRecItem)mapRecItem_.get(strTableName.toUpperCase() +
":" + strColName.toUpperCase());
}
If i change to below , is it any difference ??
protected CustomizeRecItem get(String strTableName,String strColName) {
return (CustomizeRecItem)mapRecItem_.get((strTableName +
":" + strColName).toUpperCase());
}
21 years ago
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 ]
21 years ago
But if the method was invoked 3862 times with every operation , Doesn't StringBuffer help here??
Thanks very much!
21 years ago
But if the method was invoked 3862 times with every operation , Doesn't StringBuffer help here??
Thanks very much!
21 years ago