• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

href parameter and jsp  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
should i catch the idcoll parameter in my currentcollectionview.jsp page as request.getParameter("idcoll")?

....// somejsp.jsp
<a href="currentcollectionview.jsp?idcoll=<%=parentCollection%>">
....// currentcollectionview.jsp
...
String col = request.getParameter("idcoll");
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Federico,
if you want to do it like that, that's entirely possible. But if you want to know if there are better ways, than it depends on what you find better. You could use a servlet instead of a jsp, but this depends on a lot of things.
The this I would change if I where you was to change the 'idcoll' to <%= Collection.ID %> (the class collection would have a public static final String ID, which would have a content like 'id', 'collid', or something like that.
This would prevent typos, as you can also change the second statement

to


Greetings, Erik Pragt
[edit]type & smiley [/edit]
[ January 27, 2003: Message edited by: Erik Pragt ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!