473,378 Members | 1,417 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

How to compile and java file by the use of Jsp or Servlet ?

Sir/Madam,

I want to compile and run my java file by the use of jsp.

Kindly help me .
Aug 10 '10 #1
2 1531
Dheeraj Joshi
1,123 Expert 1GB
Why you want to compile and run the file. You can put the java logic within <% %> tags right (I mean using scriplets)?

Expand|Select|Wrap|Line Numbers
  1. <%
  2. // Your java logic.
  3. %>
  4.  
Regards
Dheeraj Joshi
Aug 10 '10 #2
Dheeraj Joshi
1,123 Expert 1GB
If you still want to use a Java file you can use useBean of JSP.

This may help you.

Regards
Dheeraj Joshi
Aug 10 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Kåre Rasmussen | last post by:
As fare as I know, the Linux/GNU compiler i able to compile a .java-file into a .exe-file which is able to run on a linux without the JRE installed. Is the same thing possible on windows and how is...
3
by: SOAP | last post by:
how to compile java with assert statement I failed to compile this simple example public class Foo { public void m1( int value ) { assert 0 <= value; System.out.println( "OK" ); }
1
by: Zean Smith | last post by:
I am working on a project to migrate a JavaBean + JSP application (running on Oracle application server) to Microsoft ASP.NET + SQL server. In order to see how the original code works, I need to...
0
by: dashprasannajit | last post by:
package djvusearching; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import org.apache.lucene.analysis.cjk.CJKAnalyzer; //import...
5
by: Torben Laursen | last post by:
Hi Often I just want to compile one c++ file in a project the check it for errors. Now I can right click on a *.cpp file and select "Compile" But is there a way and short cut to compile a file...
5
by: rahana | last post by:
Hello , Presently for compiling a simple java prog i am placing my .java file in C:---->j2sdk1.4---->bin----->rahana----->my .java progs. but my friend was suggesting not to keep...
3
by: Nick048 | last post by:
Hi to All, In order to create a Date Picker that I need to use in Oracle forms, I have modified some element in the source of original calendarPJC provided from Oracle. Following the...
5
by: Torben Laursen | last post by:
Hi Is it possible to write a macro that compiles a file set (cpp/h). I can find it on the menu if I right click on a cpp file but it would be nice to just have a macro that I could call using a...
2
by: jpr | last post by:
I have 2 classes saved as 2 different java files.(eg- class ABC.java & PQR.java) ->ABC.java classABC extends JTextField { ABC(int i) { super(i); ...
1
by: bsonline | last post by:
I have to modify a .java file in a project. But I dont have any editor to compile java. I use putty to connect server(Solaris). And using putty console I modify .java file and save it. Then I down...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.