• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

a problem with servlet url mapping

 
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post.
My problem is about using a Chart library which works well in jsf application
but it does not works in JSF portlets.
I think i find the problem but i do not know the solution.
to use this charting library we should add a servlet to web.xml

something like :



so , when we try to load a chart , it will make the chart image source something like :

http://localhost:28080/Adv/jenia4faces/chart/OAReport.jspBarChart3d_id0.png


in the above sample , adv is the name of web application which is deployed in a servlet container.
and filter applied to make the chart render-able.


to use the chart library in jsf portlet , i add the servlet description as i did for web application , so i add



to my portlet web.xml file.

when we have portlet , the url to access that portlet (which indeed is a web application) changes
for example url for a sample portlet with same web application name will be like
http://localhost:28080/pluto/portal/Adv/

as you can see there are some prefix to web application name in the url , but when i use chart component to show
same chart , it still look for the chart in url like :

http://localhost:28080/Adv/jenia4faces/chart/OAReport.jspBarChart3d_id0.png


As you may already sugest , the image will not render because browser is looking in wrong place.
now i think if i find some way to map that servlet to correct url pattern it will works.

my question is :
1-what will be new servlet url pattern ?
2-is my assumption correct ?


Thank you very much for reading such a long post
[ January 22, 2006: Message edited by: Bear Bibeault ]
 
Why fit in when you were born to stand out? - Seuss. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic