Running/converting normal application in JSP

Posted on 2005-04-19
Last Modified: 2010-04-01

I have two classes which I instantiate with a 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?


Question by:barnarp
    LVL 29

    Expert Comment

    You could just import them and use them in a scriplet if you wanted...

    Author Comment

    what would be the easiest way?
    LVL 35

    Accepted Solution

    Just call them like you would in your java code...


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

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
    For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now