This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.

Chang Tzu-yu

Greenhorn
+ Follow
since Sep 17, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Chang Tzu-yu

Hello,

In MS SqlServer DB, the table name is "VP_USER",

In my project, there is a model class(VpUser) map to the table, annotation @Table(name="VP_USER")

but when execute HQL "from VpUser", throw a SQLServerException invalid object name 'vp_user'

why hibernate lower case the table name ??

Please give me some suggestion, thanks!!
Hello,
I develop GWT with Eclipse plug-in "Cypal Studio".
GWT compiler will output js and html files in "src" folder,
But in Eclipse Dynamic Web Project, these files should be in "WebContent" folder.
I tried to move these files to WebContent folder, But it will not work.
Please give me some suggestions. How to build a GWT Project to a regular WAR.
Thanks.
16 years ago
GWT

Originally posted by jasmine alba:
Why does each object in java have a corresponding lock?



Sorry, I don't understand your question.

Please be more specific. Thanks.
16 years ago
The JVM could not find the main method...

Please check the main method in your class...
16 years ago
Thanks for your reply.
I will try it.
Thanks

Originally posted by Alessandro Sim:
Hi,

maybe you need to set <session>true</session> in provider.xml.

http://download.oracle.com/docs/cd/B14099_19/portal.1014/b14135/pdg_java_adv.htm#CHDBAFIH

alessandro

16 years ago
Hello,
i tried to set attribute in Session Scope, but when i get attribute, it get null!!!
How do I set attribute in Session Scope???
Oracle App Server Version is 10.1.2.0.2
J2EE Application in oracle portal!!
thanks!!
16 years ago
Hello,
I set the cell background color, but it did't work.



Thanks!!
OK!
Thanks!!
16 years ago
JSP
Hello,
JSP use JSTL <sql> generate result, then call Servlet to process generate Excel file.

But I got Null in Servlet...
I don't know how to setAttribute then Servlet can use the result.

JSP:


Servlet:


thanks!!
16 years ago
JSP
Hi Jesper,
Thanks for your reply
I'll try it...
Thanks
16 years ago
Hello,
I don't understand about nested try catch

When has error, It didn't continue Loop, It run finally!!!
I don't know why it run like this???
Please tell me, thanks!!!
16 years ago
dear all,
thanks a lot!!
it can work when i put it in a package!!!
Hi,i try to use el function, but it doesn't work...
exception is :
symbol : class Test
location: class org.apache.jsp.TestEl_jsp
_jspx_fnmap_0= org.apache.jasper.runtime.ProtectedFunctionMapper.getMapForFunction("mine:getPet", Test.class, "getPet", new Class[] {java.lang.String.class});

.class:WEB-INF\classes\Test.class
12345678910111213
import java.util.HashMap;
import java.util.Map;

public class Test {
public static String getPet(String pKey){
Map tMapOut = new HashMap();
tMapOut.put("1","Cat");
tMapOut.put("2","Dog");
tMapOut.put("3","Monkey");

return (String)tMapOut.get(pKey);
}
}

JSP file:
<%@ taglib prefix="mine" uri="OAO" %>
${mine:getPet("3")}

.tld
<?xml version="1.0" encoding="UTF-8" ?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
web-jsptaglibrary_2_0.xsd" version="2.0">

<tlib-version>1.2</tlib-version>
<uri>OAO</uri>
<function>
<name>getPet</name>
<function-class>Test</function-class>
<function-signature>
java.lang.String getPet(java.lang.String)
</function-signature>
</function>
</taglib>

thanks a lot!!
Good luck!!
[ September 19, 2007: Message edited by: Hungyi Chang ]