• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating directory in server using jsp

 
Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way by which we can create a directory in server using jsp?

Regards,
Joshua
 
Chandra Bhatt
Ranch Hand
Posts: 1710
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you asking jsp standard action to create directory on the server.
Otherwise use scriptlet, place plain java code inside <% and %>.
[ July 19, 2007: Message edited by: Chandra Bhatt ]
 
Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok got it

here is the code that I placed inside scriptlet



Actually I was not aware of application.getRealPath

Without using application.getRealPath() what other options are available?

Regards,
Joshua
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic