my dog learned polymorphism
The moose likes JSP and the fly likes jstl tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jstl tags" Watch "jstl tags" New topic

jstl tags

Mohammad Akon

Joined: Jul 17, 2007
Posts: 19
Hi all.........

I have a table "URL" table (list of forwarding urls) in the database. is it possible to use the following codes in the jsps.....

My URLTABLE is something like this
id URLvariable URLvalue
1 google
2 yahoo
3 somewhere

Is it possible to use jstl like parameters within html:form tag?

If its not the right way then what it should be??

I want my application to forward to different URLs based on my choice...and I don't want to change it manually every time. I already wrote codes to update my "URLTABLE" table.

Thanks very much in advance.

[ May 13, 2008: Message edited by: Mohammad Akon ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

It is not advised to use the SQL JSTL tags (are any SQL for that matter) in a JSP page for real use.

SQL and database access should be handled in Java classes that are delegated by the controller before the page is rendered.

With regards to using JSTL with Struts tags, that's a better question for the Struts forum. In the future please don;t ask two different questions in one post. It just makes things confusing.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: jstl tags
It's not a secret anymore!