Julia Costener

Greenhorn
+ Follow
since Jun 23, 2001
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 Julia Costener

Hi,
Hope this email finds you all in the best of spirits.
I have deployed a servlet successfully on weblogic 6.0, i had to edit web.xml file for this.
[resides in bea\wlserver\config\mydomain\applications\DefaultWebApp_myserver\WEB-INF]
following is the code i editted:
<web-app>
<servlet>
<servlet-name>
ShowSession
</servlet-name>
<servlet-class>
serv.ShowSession
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>
ShowSession
</servlet-name>
<url-pattern>
myServlet
</url-pattern>
</servlet-mapping>
</web-app>
now i want to deploy an application using more than one servlet, how to do that ?? should i write the above complete code for each servlet separately ??
Waiting for replies,
Julia.
19 years ago
According to THINKING IN JAVA,
There are two versions of each type of operator, often called the prefix and postfix versions.
For pre-increment and pre-decrement, (i.e., ++a or --a), the operation is performed and the value is produced. For post-increment and post-decrement (i.e. a++ or a--), the value is produced, then the operation is performed. As an example:
public class AutoInc {
public static void main(String[] args) {
int i = 1;
prt("i : " + i);
prt("++i : " + ++i); // Pre-increment
prt("i++ : " + i++); // Post-increment
prt("i : " + i);
prt("--i : " + --i); // Pre-decrement
prt("i-- : " + i--); // Post-decrement
prt("i : " + i);
}
static void prt(String s) {
System.out.println(s);
}
} ///:~
The output for this program is:
i : 1
++i : 2
i++ : 2
i : 3
--i : 2
i-- : 2
i : 1
You can see that for the prefix form you get the value after the operation has been performed, but with the postfix form you get the value before the operation is performed.
Hope it helps...............
------------------
Regards,
Julia Costener