• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 150
  • Last Modified:

Running/converting normal application in JSP

Hi,

I have two classes which I instantiate with a test.java file and then get a String as output using the command line in windows.

I would like to output the string to a dropdown list in a jsp page. Would I have to implement the two classes as bean/s and then call them as normal from the jsp page?

Or is there another method?

Regards

0
barnarp
Asked:
barnarp
1 Solution
 
bloodredsunCommented:
You could just import them and use them in a scriplet if you wanted...
0
 
barnarpAuthor Commented:
what would be the easiest way?
0
 
TimYatesCommented:
Just call them like you would in your java code...

ie:

<%
   org.whatever.YourFirstClass a = new org.whatever.YourFirstClass() ;
   org.whatever.YourSecondClass b = new org.whatever.YourSecondClass( a ) ;
%>
<%= b.getString() %>
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now