File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Seeking advice on finding a third-party control for a .jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Seeking advice on finding a third-party control for a .jsp page" Watch "Seeking advice on finding a third-party control for a .jsp page" New topic
Author

Seeking advice on finding a third-party control for a .jsp page

D. McPherson
Greenhorn

Joined: Feb 04, 2010
Posts: 10
Hi Everyone,

I'm hoping that someone might be able to help me on the following:

I would like to have a textarea type control on a webpage that would permit a user to highlight some text in the 'textarea', open a file dialog box, and insert a link behind the scenes so that the highlighted text becomes a hyperlink to a file on the network.

It is for a helpdesk type application, whereby users can report problems or issues, and include links to supporting files such as .doc, .txt, .jpg, etc. that are saved on the network. Once the form including the textarea-like control is submitted, the data that was in the text area can be retrieved by other users, displayed, and will have functioning links pointing to the supporting files

The ideal situation would be functionality similar to that which is found in MS Word whereby a link to a local, network, or web resource can be included in a document.

Does anyone know of a free library that includes a control of this type that can do all the above? I've found, for example, TinyMCE (a WYSISYG editor), which seems to be able to do it, but the version that includes the above functionality is only available commercially. Other such (free) editors I've found allow the insertion of hyperlinks to web pages, but not to network resources.

Alternatively, how difficult would it be to write such a control?

Any help or advice would be gratefully received!

Thanks,

Don.

P.S. I know that in the page above I've created a similar link , but its really creating a link to a network resource that I'm after.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61187
    
  66

This doesn't seem like anything that JSP is going to help you with. You might want to search for JavaScript "rich editor" controls.

I've moved this along to the JavaScript forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
D. McPherson
Greenhorn

Joined: Feb 04, 2010
Posts: 10
Thanks Bear, sorry about that!

Don.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
YUI: http://developer.yahoo.com/yui/editor/

There are plenty of other projects out there.
D. McPherson
Greenhorn

Joined: Feb 04, 2010
Posts: 10
Thanks for the reply.

Yes, I came across YUI2 when I was investigating my options. Unfortunately, like most of the other such controls I found, it just seems to provide the option to insert a URL to a webpage. What I'm trying to find is one that allows me to navigate to a file on a network.
Rob Crowther
author
Ranch Hand

Joined: Nov 06, 2012
Posts: 295
    
    5

It's unlikely you'll find one. JavaScript is explicitly denied access to file and directory information so that random websites can't explore your private files.


Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Seeking advice on finding a third-party control for a .jsp page