Important Adv Java Practical Question
NOTE: Each question carry 15 marks
Q1. Write a servlet program to redirect the request to another servlet which requires a String as
the parameter and the other servlet converts the string to lower case.
Q2. Write a JSP code to accept a number and revert whether the number is prime or not
Q3. Write a servlet Program to accept a String and determine whether the String’s length is
greater than 6. **
Q4. Write a servlet to determine whether the entered name from the html form is palindrome or
not.
Q5. Make 2 JSP Pages, accept the username and password from first page, if the username is
tom and password is tommy, login will be successful and redirect it to [Link] page and
store the username in session from login and display it on [Link].
Q6. Write a Java Program using JSP to print the following.
11111
2222
333
44
5
Q7. Write a Servlet program to print all the even numbers between the two entered numbers by
the user, let say user enters 5 and 500 , so print the even numbers between 5 and 500
Q8. Write a JSP Program to redirect to [Link]
Q9. Send a text email with an attachment using Java code
Q10. Write a Spring MVC API to accept two numbers and return their addition