Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

href parameter and jsp  RSS feed

 
federico tonioni
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");
 
Erik Pragt
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 ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!