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 not print the text 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 "not print the text" Watch "not print the text" New topic
Author

not print the text

deep raj
Ranch Hand

Joined: Dec 11, 2009
Posts: 186
<html>
<head>
</head>
<body>
<%
out.print("xf");
%>

<form name="form1">
<input type="button" name="b" style="background-color:#FF0000 ">
</form>
</body></html>
Brij Garg
Ranch Hand

Joined: Apr 29, 2008
Posts: 234
Request is not going to the server.
you are not submitting the form. So how can code inside
<% %>
can execute.

Swastik Dey
Ranch Hand

Joined: Jan 08, 2009
Posts: 1196

So how can code inside
<% %>


Whats <%%> got to do with form submission? Which text is not getting printed, clarify your question properly.


Swastik
pradeep gamage
Ranch Hand

Joined: Aug 03, 2009
Posts: 85

<form name="form1">
<input type="button" name="b" style="background-color:#FF0000 ">
Above part in your code is not useful.






Check with this code fragment. You don't need to submit this to server. This is only jsp file. so "hello" must be print in browser.



Software Engineer(BSC):SCJP 1.5
(Knowledge is power when applied)
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56216
    
  13

Putting Java code in a JSP in this manner has been discredited for over 8 years now. It's 2010 and it's time to start writing JSP like grown-ups.

Ditch the scriptlets and learn the JSTL and EL for properly writing JSPs.

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: not print the text
 
Similar Threads
make applet as a link to show on the html page
javascript problem
NEED help on java script!!!!
combo and text box
Disable a radio button