pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luiz Gustavo <luizgustav...@gmail.com>
Subject Re: Pivot Web Application Example
Date Fri, 26 Mar 2010 14:59:49 GMT
Hi Todd,

my mistake. The lib directory isn't under WEB-INF as I said.
It's in the same directory as the index,jsp page, and I can access the jar
files when request then in the browser.




2010/3/26 Todd Volkert <tvolkert@gmail.com>

> The applet will make an HTTP request for the jar files, and anything under
> the WEB-INF folder isn't publicly accessible via HTTP, so that could be the
> problem.  Can you point your browser to the URL of the jars that you specify
> in the HTML page and get the jar file in response?
>
> -T
>
>
> On Fri, Mar 26, 2010 at 10:07 AM, Luiz Gustavo <luizgustavoss@gmail.com>wrote:
>
>> Hi Greg,
>>
>> here is an image of the example projects I've made:
>> http://dl.dropbox.com/u/756850/public_imgs/pivot_projects.png
>> I created a library of the Pivot jars in eclipse and used it on the
>> application that have the classes and markup files. Additionally I've copied
>> the jars in the web app lib directory, under WEB-INF.
>> When I deploy the web app (with the application jar in the lib, too) I
>> have the erros.
>>
>> Thanks for the other links!
>>
>>
>> Cheers,
>>
>> Luiz Gustavo
>>
>>
>> 2010/3/26 Greg Brown <gkbrown@mac.com>
>>
>> Where are you putting the Pivot libraries? In the app I am currently
>>> working on, I use Pivot on both the client and server. I put the client
>>> libraries in a /lib directory in my application's web root, and the server
>>> libraries in /WEB-INF/lib.
>>>
>>> On Mar 26, 2010, at 8:37 AM, Luiz Gustavo wrote:
>>>
>>> Hi Todd,
>>>
>>> thanks for your answer.
>>> Following your sugestion, I created two projects. One for the Pivot
>>> classes and markups (this is the application jar file) and another project
>>> for the web application, that uses the pivot application jar file.
>>> The imagens show project details and the main page, that would load the
>>> applet. I'm getting errors because the applet isn't able to load the
>>> dependencies.
>>> Am I missing something?
>>>
>>>
>>> Cheers,
>>>
>>> Luiz Gustavo
>>>
>>>
>>> 2010/3/26 Todd Volkert <tvolkert@gmail.com>
>>>
>>>> Hi Luiz,
>>>>
>>>> The only real requirement is that your jar files are locatable via HTTP
>>>> on the same domain as your HTML page containing the applet.  Then, you will
>>>> generally use Sun's Java Deployment Toolkit (a Javascript file containing
>>>> cross-browser JS) to detect the user's Java plug-in version and write out
>>>> the applet tags (or force them to install the Java plug-in).  Examples of
>>>> this can be found in the online Pivot demos (e.g.
>>>> http://pivot.apache.org/demos/kitchen-sink.html for a full-screen app,
>>>> and http://pivot.apache.org/demos/decorators.html for a non-full-screen
>>>> one).
>>>>
>>>> The only thing that springs to mind with your EJB question is that you
>>>> might have to sign your jar files to perform cross-domain requests legally
>>>> from within the applet.
>>>>
>>>> Let me know if you have any questions about the parameters that are
>>>> being passed to the applet in the examples.
>>>>
>>>> Cheers,
>>>> -T
>>>>
>>>>
>>>> On Fri, Mar 26, 2010 at 2:02 AM, Luiz Gustavo <luizgustavoss@gmail.com>wrote:
>>>>
>>>>> Hi!
>>>>>
>>>>> Could anyone post in some place (or send me) some example or reference
>>>>> of a web application based on Pivot?
>>>>> All the examples on the project site are desktop based, and it would
be
>>>>> nice to have some clear explanation on how to configure a web based project.
>>>>> For example: How to organize artifacts in a project and how to configure
a
>>>>> web page to load the components. And, even more, how could I comunicate
with
>>>>> EJB components if I decide to deploy the web application based on Pivot
in a
>>>>> machine, and deploy EJB components in another machine?
>>>>>
>>>>> Sorry if these sounds like stupid questions or necessities, but since
>>>>> the tecnology aims to be used in both platforms, web and desktop, its
>>>>> necessary to show examples in both cases for a fast evaluation.
>>>>> In my specific case, I have to set up an architecture possibly using
>>>>> Pivot, and its being difficult to find direct examples for a fast prototype.
>>>>>
>>>>> Thanks in advance!
>>>>>
>>>>> Best regards.
>>>>>
>>>>>
>>>>> Luiz Gustavo S. de Souza
>>>>> Analista de Sistemas - Desenvolvedor Java
>>>>>
>>>>> http://luizgustavoss.wordpress.com
>>>>> http://luizgustavoss.blogspot.com
>>>>> http://twitter.com/lugustso
>>>>>
>>>>
>>>>
>>>
>>>
>>> <error.png><pivot_projects.png>
>>>
>>>
>>>
>>
>>
>> --
>> Att,
>>
>>
>> Luiz Gustavo S. de Souza
>> Analista de Sistemas - Desenvolvedor Java
>>
>> http://luizgustavoss.wordpress.com
>> http://luizgustavoss.blogspot.com
>> http://twitter.com/lugustso
>>
>
>


-- 
Att,

Luiz Gustavo S. de Souza
Analista de Sistemas - Desenvolvedor Java

http://luizgustavoss.wordpress.com
http://luizgustavoss.blogspot.com
http://twitter.com/lugustso

Mime
View raw message