What are tokens in Java?

How and Where do we use them in an application. Give an example.

Questions by sateeshm1

Showing Answers 1 - 6 of 6 Answers

Sonthosh

  • Jun 6th, 2008
 

Tokens in java means the string tokens generated by the string tokenizer based on the delimiters used. For example, if the phrase "hello world" is tokenized based on delimiter ' ', it will return two tokens namely 'hello' and 'world'.

  Was this answer useful?  Yes

gaanbd

  • Jun 18th, 2008
 

Java Tokens are used in struts. when a form is refreshed the value gets submitted twice results in duplicate form submission. To avoid this each page is given a identity called token one can save token to page by saveToken method. then use verify token if the token matches duplicate submission will not happen.If it does not match form is submitted.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions