File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Rich text box type control in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Rich text box type control in struts" Watch "Rich text box type control in struts" New topic
Author

Rich text box type control in struts

srinivasB vas
Greenhorn

Joined: Jun 15, 2009
Posts: 2
hi All,

I'm developing one CMS project in Struts. onf of the forms i need to provide Rich text box type control.
for that how could i provide that control since there is no built control available in struts.
Please help me, this is very urgent for me..


Thanks in Advance
Srini
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

There are a ton of rich editor controls; AFAIK they all work with Struts.
srinivasB vas
Greenhorn

Joined: Jun 15, 2009
Posts: 2
Can you gimme some examples
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

srinivasB vas wrote:Can you gimme some examples

Each rich text editor provides its own samples. Which ones have you tried and been unable to get to work?
aran tam
Greenhorn

Joined: Jun 24, 2009
Posts: 12
David Newton wrote:
srinivasB vas wrote:Can you gimme some examples

Each rich text editor provides its own samples. Which ones have you tried and been unable to get to work?

hi, David.
i tried one of JQuery editors named "RTE". it's works well and be able to upload images, but i don't know how to get the url of the image that was uploaded just now.
using ajax? i a newbie of jquery and have no idea how to modify the xx.js...
do you have any suggestions?
thanks.


Aran.
Roberto Hernandez
Ranch Hand

Joined: Apr 29, 2009
Posts: 33
If you're using struts2 you could use the struts2 dojo plugin and then you'll just have to declare it using <sx:textarea>. It's very simple and straight forward.
aran tam
Greenhorn

Joined: Jun 24, 2009
Posts: 12
I used Struts2-dojo plugin once, but there occurs performance problem.
actually, the JQuery-lightweight RTE is good enough. I just wanna upload an image , then get the returned url, and insert it into the textarea..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rich text box type control in struts