wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jstl tags" Watch "jstl tags" New topic
Author

jstl tags

Mohammad Akon
Greenhorn

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 www.google.ca
2 yahoo www.yahoo.com
3 somewhere www.somewhere.com


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.

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

Joined: Jan 10, 2002
Posts: 60802
    
  65

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jstl tags
 
Similar Threads
error while using taglib for JSTL
Struts iterate tag and formatting
JSTL Example
Relative URLs
Paging records and jsp