File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes JSP displays source Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "JSP displays source" Watch "JSP displays source" New topic
Author

JSP displays source

bala kan
Ranch Hand

Joined: Aug 20, 2012
Posts: 44
Hi Friends,

Very good morning to you, i would like to display html page using jsp.. so, i use the following code..



it doesn't work properly.. it prints the above coding instead of loading the html page.. please help me..


Regards,
K.Bala

harshvardhan ojha
Ranch Hand

Joined: Jul 26, 2007
Posts: 157
    
    1

Hi bala, everything except this expression seems correct to me.

<%=this is my first JSP page.%>

you can only use expression for printing value of variable. remove above expression and try again.
Pyla Rao
Ranch Hand

Joined: Jul 10, 2012
Posts: 50
Hi bala,

In your code, every thing is fine.except the jsp:Expression tag.
first jsp expression tag is used to written the output stream of the response like out.println()


<%=this is my first JSP page.%>

you can only use expression for printing value of variable. remove above expression and try again.



you don't remove the code as above .just try as below.




Thanks,
PYLA.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56192
    
  13

Be sure that the file type of the file is .jsp and not .html.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: JSP displays source
 
Similar Threads
Very simple error
http error404
JSTL not working
alert is not working
Component javax.faces.component.UIViewRoot is no