• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp doubt  RSS feed

 
vasanth raman
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<input type="File" name="Browse" value="<%=path%>">
this is possible in jsp
 
Amit Vinod Dali
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, this is possible in jsp.
JSP intro
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65898
135
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

A title such as "jsp doubt" is not helpful. What would happen if all posts had such a title?

Please go back and change your post to add a more meaningful subject by clicking the button on your post.
 
vasanth raman
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my code i received the str value but it can't assign to file object

<%
String str=request.getAttribute(path);
out.println(str);
%>
<input type=file name=browse value="<%=path%>">
 
Prafulla N. Patil
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do you think this has to work ?

you cannot access request variable directly in expression, in the above code you are directly trying assign value from request variable path, which is not possible.
 
Harpreet Singh janda
Ranch Hand
Posts: 317
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try with this:

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!