def func(a,b,c)
print(a,b,c)
a=[1,2,3]
func(*a)
a=dict(a=1,b=2,c=3)
func(**a)
PrintWriter out = response.getWriter();
String message = "HI Welcome";
RequestDispatcher rd = request.getRequestDispatcher("index.jsp");
request.setAttribute("msg",message);
rd.forward(request, response);
public class MyClass {
public String method1(){
return("Helo World1!");
}
}
protected void doPost(...) {
...
String mymsg = myClass.method1();
...
RequestDispatcher rd = request.getRequestDispatcher("index.jsp");
request.setAttribute("msg", mymsg);
rd.forward(request, response);
}
<script src="/mycounter">