• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to load a file in JSP

 
yogendra kumar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I have a JSP where on left side i m displaying a tree structure of some folder which can have multiple sub folders and files , This is on Remote registry...
On right side I have a Text Area. If someone click on the file link on tree, files content should be displayed in TEXT AREA..
Does anybody knows how to DO this ..
Thanks
Yogi
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
post the page back an fill the page when it loads, or use a client side code. If you use client side, then all of the information has to be loaded into the page right away.

Eric
 
Ranga Reddy shreya
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
You can do like this: Make all files as urls, and give the proper destination in jsp to that link .
Then when u click on the link u will get text cntext right side..
i think this will solve u rproblem
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ranga,

JavaRanch is a community of people from all over the world, many of who are not native English speakers. While using abbreviations like "u" instead of spelling out "you" is convenient when text messaging your friends on a cell phone or in a chat room, it presents an extra challenge to those that are already struggling with English. Additionally, such shortcuts may confound automated translation tools that patrons of the Ranch may be making use of.

I would like to ask for your help in making the content of JavaRanch a little easier to read for everybody that visits here by not using such abbreviations.

thanks,
bear
JSP Forum Bartender
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!