Resource path issue after converting Java Studio Creator 2.1 project

View: New views
4 Messages — Rating Filter:   Alert me  

Resource path issue after converting Java Studio Creator 2.1 project

by pennstump :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I recently converted a Sun Java Studio Creator 2.1 project to Netbeans 6.01.  In doing so, the paths to my application's images were changed.  Namely, the path to the web/resources directory is different.  Studio Creator had an apparent virtual directory mappings that allowed parallel calls to the resource directory at both of these addresses:

http://localhost:29080/root/faces/resources/
http://localhost:29080/root/resources/

However, Netbeans doesn't seem to allow you to do this.  The /root/faces/resources/ directory will send back a garbage image and the image is only accessible from the /root/resources/ directory.

How has everyone handled this in their conversion to Netbeans 6?

Thanks.

Re: Resource path issue after converting Java Studio Creator 2.1 project

by Winston Prakash :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think the difference is between JSF 1.1 (Creator) & JSF 1.2.

- Winston

> I recently converted a Sun Java Studio Creator 2.1 project to Netbeans 6.01.
> In doing so, the paths to my application's images were changed.  Namely, the
> path to the web/resources directory is different.  Studio Creator had an
> apparent virtual directory mappings that allowed parallel calls to the
> resource directory at both of these addresses:
>
> http://localhost:29080/root/faces/resources/
> http://localhost:29080/root/resources/
>
> However, Netbeans doesn't seem to allow you to do this.  The
> /root/faces/resources/ directory will send back a garbage image and the
> image is only accessible from the /root/resources/ directory.
>
> How has everyone handled this in their conversion to Netbeans 6?
>
> Thanks.
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Resource path issue after converting Java Studio Creator 2.1 project

by pennstump :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

How can you advise to overcome this difference?  Do I need to create a static virtual mapping in the app server?

Winston Prakash wrote:
I think the difference is between JSF 1.1 (Creator) & JSF 1.2.

- Winston
> I recently converted a Sun Java Studio Creator 2.1 project to Netbeans 6.01.
> In doing so, the paths to my application's images were changed.  Namely, the
> path to the web/resources directory is different.  Studio Creator had an
> apparent virtual directory mappings that allowed parallel calls to the
> resource directory at both of these addresses:
>
> http://localhost:29080/root/faces/resources/
> http://localhost:29080/root/resources/
>
> However, Netbeans doesn't seem to allow you to do this.  The
> /root/faces/resources/ directory will send back a garbage image and the
> image is only accessible from the /root/resources/ directory.
>
> How has everyone handled this in their conversion to Netbeans 6?
>
> Thanks.
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@visualweb.netbeans.org
For additional commands, e-mail: users-help@visualweb.netbeans.org

Re: Resource path issue after converting Java Studio Creator 2.1 project

by Winston Prakash :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

As defined in the web.xml any context relative URL starting with /faces/* gets passed through FacesServlet. I think there is a bug against JSF 1.2 on this (i.e it garbles the images). Is it not possible to avoid the /faces/ in the image URL?

- Winston
http://blogs.sun.com/winston
How can you advise to overcome this difference?  Do I need to create a static
virtual mapping in the app server?


Winston Prakash wrote:
  
I think the difference is between JSF 1.1 (Creator) & JSF 1.2.

- Winston
    
I recently converted a Sun Java Studio Creator 2.1 project to Netbeans
6.01. 
In doing so, the paths to my application's images were changed.  Namely,
the
path to the web/resources directory is different.  Studio Creator had an
apparent virtual directory mappings that allowed parallel calls to the
resource directory at both of these addresses:

http://localhost:29080/root/faces/resources/
http://localhost:29080/root/resources/

However, Netbeans doesn't seem to allow you to do this.  The
/root/faces/resources/ directory will send back a garbage image and the
image is only accessible from the /root/resources/ directory.

How has everyone handled this in their conversion to Netbeans 6?

Thanks.
  
      
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...



    

  

--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@...
LightInTheBox - Buy quality products at wholesale price