PDA

View Full Version : What does this means?



huisoonsg
07-08-2005, 05:02 AM
String id = request.getParameter("itemID");
String buttonPressed = request.getParameter("Submit");
String updatePressed = request.getParameter("input");
String quantity = request.getParameter("Sum");
Can anyone tell me wat does getParameter means??? Thank you....

cr3ative
07-08-2005, 08:00 AM
What's with this sudden influx of JSP related questions? It's scary!

Anyway, I'll do the obligatory and point you here:
http://www.google.co.uk/search?hs=DRR&hl=en&safe=off&c2coff=1&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&q=getParameter+JSP&btnG=Search&meta=

I believe that the request.getParameter simply looks at the URL and extracts a passed parameter - for example

URL = www.cr3ation.co.uk/index.jsp?itemID=539
String id = request.getParameter(itemID");

Result : id becomes 539.

cr3ative