aspose file tools*
The moose likes JSP and the fly likes Use input as a URL in JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Use input as a URL in JSP?" Watch "Use input as a URL in JSP?" New topic
Author

Use input as a URL in JSP?

Kyupa Supa
Ranch Hand

Joined: Jun 23, 2012
Posts: 30
I have a

Enter URL:
in my form and I want in JSP to become a clickable URL.

I tried with:
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

And?

Seems like it should work okay to me. Did you have some kind of problem?
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

aURL == activityURL ? and hope you submitted the form to jsp.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61238
    
  66

Scriptlets in a JSP? In 2012?



Please read this JspFaq entry.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61238
    
  66

Seetharaman Venkatasamy wrote:and hope you submitted the form to jsp.

I hope not! Submitting a form to a view resource like a JSP is a poor practice indeed!
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1018
Converting it to EL would be relatively simple:



depending upon what your actual request parameter is.

 
Consider Paul's rocket mass heater.
 
subject: Use input as a URL in JSP?