Javan Li

Ranch Hand
+ Follow
since Jul 24, 2002
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 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!
16 years ago
I'm gotta some questions about session of portlet.
16 years ago
Thanks very much, David !
17 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 ???
17 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!
17 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!
17 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());
}
17 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 ]
17 years ago
But if the method was invoked 3862 times with every operation , Doesn't StringBuffer help here??
Thanks very much!
17 years ago
But if the method was invoked 3862 times with every operation , Doesn't StringBuffer help here??
Thanks very much!
17 years ago