Kevin Liu

Greenhorn
+ Follow
since Mar 17, 2007
Merit badge: grant badges
For More
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 Kevin Liu

You could put the validation.xml file into .../WEB-INF/validation.xml,which is the same directory as the struts-config.xml file,
and in the config file, you should:

<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml" />
</plug-in>
16 years ago
Hey all;
As we known , if we wanna create a new column in DB, we can invoke the createXxx methods in Home interface; And in the bean class there should be ejbCreateXxx and ejbPostCreateXxx methods, all the primary key should be initialized during the ejbCreateXxx;
So, how to initialize the keys if I don't wanna specify them;
File---> Typ.java

code:-

public class Typ
{
int i=0;//static int i = 0;
public static void main(String args[])
{
System.out.println(i); //or System.out.println(new Typ().i);
}
}

Originally posted by megha joshi:
[QB]

So "abc" will not be garbage collected.

[QB]

Because the inherited fields will be hidden, when the sub class has the same names . It has little to do with the visiblity.
scope="page" means your JavaBean instance is available just in the current .jsp file
scope="request" means your JavaBean instance can be accessed through the request
17 years ago
JSP
and .jsp file
17 years ago
How about your web.xml ??
17 years ago