I have two JSP pages that can access a Servlet. Now, I want when JSP 1 access the Servlet, Servlet will do some one kind of job (for example increment an int) and when JSP 2 will access the Servlet, it will do some other kind of job (for example decrement an int).
Can anybody help me by specifying how is it possible ?
You could pass different value on same parameter.
In page1.jsp
In page2.jsp
If
<form>tag is used then add<input type="hidden"/>,