on 2005 Jul 26 11:27 AM
Hello,
can anybody explain why i need this in the constants Class:
public static final String RESERVATIONS="rent.car.customer.reservations";
?????
What is rent.car.customer...?
Hi Alex,
I went thro' the link provided by you. As I said in my previous answer these are nothing by constant string which hold permanent value and present in property files for quick loading and good performance.
In your own project also you can give the same value for this final string and use it where ever required.
Hope this answers your query .If you are satisfied pls close this thread.
Regards,
Guru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is clear now, many thanks.
I found another good explanation at: http://javaalmanac.com/egs/javax.servlet/State.html?l=new
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If you do not find any package structure like tht than it will be a simple string containing a constant value since it is termed as "final" nothing mor e than that.
Can u let me know where exactly in the tutorial they are using this final string so I can help you out with close answers?
Regards,
Guru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your answer.
But I still don't unterstand. I can't see any package structures like "rent.car.customer.reservations", just see things like "com.sap.examples...." .
I try to build my own example application that is similar to the Car Rental, and now i don't know, what i should use for the RESERVATIONS Constant.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex,
The answer for your question is simple.I am not gone thro' the said tutorial butas per my knowledge
It is nothing but the package structure where you have the reservations java class in the hierarchy or may be the object hierarchy of the structure in which the car rental tutorial is set up.
Probably the string "RESERVATIONS" may be stored in a property file and can be referred in any of the java file the same pakage.
Hope it answers your query if so please close this thread.
Regards,
Guru
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.