Prev: DSP in Java
Next: Java class for data type mapper?
From: Pif on 28 Jan 2010 08:53 Hello, in a JSP, I would like that my form call a servlet and then refresh current page. What is the best way to do that ? Should I use the form "target" field an how ? should I add parameter to my form or hardly code in my servlet the forwarded page ? Thanks a lot.
From: Arne Vajhøj on 28 Jan 2010 20:53 On 28-01-2010 08:53, Pif wrote: > Hello, in a JSP, I would like that my form call a servlet and then > refresh current page. What is the best way to do that ? Should I use > the form "target" field an how ? should I add parameter to my form or > hardly code in my servlet the forwarded page ? A common methodology is to have the the submit URL indicate a Java class to call and have that Java class lookup forward/redirect page in a config file based on the outcome of the processing. Arne
|
Pages: 1 Prev: DSP in Java Next: Java class for data type mapper? |