File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jstl tags

 
Mohammad Akon
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64175
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic