On Oct 31, 2:21 pm, varikin <[EMAIL PROTECTED]> wrote:
> On Oct 30, 5:12 am, "[EMAIL PROTECTED]"
>
>
>
> <[EMAIL PROTECTED]> wrote:
> > Hi everyone I am newbie to django and I am italian so excuse me for my
> > english :P
> > I have to execute a java program very simple look something like this:
>
> > public class Book {
> > public static void main(String[] args) {
>
> > int year = 2008;
>
> > List list = Booklist.fetchbook(year);
> > Iterator it = list.iterator();
>
> > while (it.hasNext()) {
> > Book book = (Book) it.next();
> > System.out.println( book.getTitle() + " " +
> > book.getAuthor() );
> > }
>
> > } }
>
> > and I have to retrieve 2 strings ( book.getTitle() and
> > book.getAuthor() ) for use its in django application.
> > How Can I do that? Do I have to use JVM ? How ?
>
> > thanks :)
>
> Also, take a look at Jython which is Python written on top of the JVM
> so you can call Java libraries within Python. Django 1.0 works with
> Jython.
thanks I'll try subprocess and jython but I have heard that django
with jython is slow. Is it true ?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---