• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rich text box type control in struts

 
srinivasB vas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are a ton of rich editor controls; AFAIK they all work with Struts.
 
srinivasB vas
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you gimme some examples
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic