JSP and Facelets same application issues.

Hi guys,
I am trying to add Faceletes into an existing application using jsf, tiles and jsp.
I have been reading several articles about how to move into Facelets without success.
These are the urls I have reviewed.
http://wiki.java.net/bin/view/Projects/FaceletsFAQ#How_do_I_use_Facelets_and_JSP_in
http://osdir.com/ml/java.facelets.user/2006-12/msg00064.htmlWill this work and how do I achieve it?
Thanks
Phil

Thanks for your reply. I agree with you that we need to move to Facelets. We have a large application and it is hard to sell a total rewrite today. All new development is to be done with Facelets.
My question is why I am having a problem using jsp with jsf tags together with facelets ?? I have followed the wiki advice. When I try to load the app I get a 404. There are no errors in the log files. We are using Jboss.
This is what I put in my web.xml.
<web-app>
  <context-param>
    <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    <param-value>.jsp</param-value>
  </context-param>
  <!-- Facelets pages will use the .xhtml extension -->
  <context-param>
    <param-name>facelets.VIEW_MAPPINGS</param-name>
    <param-value>*.xhtml</param-value>
  </context-param>    
  <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
  </servlet>
  <!-- Use prefix mapping for Facelets pages, e.g. http://localhost:8080/webapp/faces/mypage.xhtml -->
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
  </servlet-mapping>
</web-app>This is in my faces-config.xml
  <application>
    <locale-config>
      <default-locale>en</default-locale>
    </locale-config>
     <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
  </application>Thanks
Phil

Similar Messages

  • JSP and Client/Server Compatibility Issues

    For the new application that we have to design we have two groups of users
    - Group A requires admin access, high response time, better user feel and special previledges and are a few in number at limited locations.
    - Group B requires limited functionality, but are spread all over the world and they are huge in number.
    We are planning to provide Applet/Swing based client server architecture for Group A and JSP/EJB based J2EE architecture for group B users. common webserver would be used.
    Please advise what are are potential issues in this approach or do we have a better approach to achieve the same.

    GUI based applications are good but do you think that will it be maintainable and portable?.. Some of the GUI based applications are build on higher Java like 1.5.. i Presume you have the latest and other workstation have only 1.4 or 1.3, this can be n issue on GUI based applications especially on installation on each workstation.

  • X11 and open source applications issues

    I have a brand new iMac 20 w/ OS X 10.4.8/ Core Duo 2.16/ ATI X1600 w/ 256 mb vram/ 1 gb of system ram. I have been using open source systems for almost two years and would like to continue to use some of the applications which are provided for Macintosh. When attempting to install any of the X11 applications, I get a message saying that I need to have X11 installed in order to install and run the apps. I downloaded the Apple X11 1.0 installer because I did not see X11 on my system. When trying to install it, I got a message saying that it could not be installed because there is a more up to date version already installed.
    So, the installers for applications such as, Open office and Gimp Shop, do not see that I actually have X11 installed and they will not install because of it. I do not know enough about OS X to work through this issue.
    Any help will be greatly appreciated.
    Thanks,
    zeusx64

    I did not see another version of X11 but I did go into the installation of the optional items and did not see it listed. I am fairly well versed in using computers, so I am not a complete noob but I am fairly new to Mac itself.
    I have FreeBSD experience, which in itself, gives a bit of X11 experience.
    That said, I have already looked for needed packages to install, tried to install and as I said before, I recieved the message during the attempted install of X11, which said I already had a more up to date version installed.
    If I have by chance missed something along the way, feel free to provide a link to the needed package.
    I am open to learning all that I can and realize that we all are in a never ending process of that learning.
    Thanks for the replies and I hope we can figure out what I have not on my own.
    I will check my mail when I am at home after work.
    Thanks again.

  • JSP and the Sun Application Server. Is it really nessecary?

    Downloaded Creater 2, and love it. I really didn't realize how easy JSP is. Though I would be interested in knowing: Does the Sun Application Server needs to be running in order to use JSP.
    Talking to my Hosting Provider, they have a plan in which JSP is included but the Sun Application Server is not. If I decide to get their JSP Hosting plan, do I truly need the Application Server to run my JSP forms and all the other great things that Creater 2 has to offer?
    Thanks in Advance!
    Josef

    No you don't. You're app will run in any JEE server like Tomcat, Jetty, JBoss, Jonas, etc. If you are using EJBs, however, the server you choose must have EJB support.

  • I've closed Firefox. When I go to reopen it, it says "Close Firefox: A copy of Firefox is already open. Only one copy of Firefox can be open at a time". I've then shut off my laptop; restart it and this same Firefox issue continues.

    I can't seem to reopen Firefox.
    I HAVE, in fact, closed Firefox. I've even "force quit" it. When I shut down my computer and restarted it, I got Firefox back, but then when I went off and tried to come back on, the problem reoccurred. When I try to reopen it, the same message comes across.

    See "Hang at exit":
    *http://kb.mozillazine.org/Firefox_hangs
    *https://support.mozilla.com/kb/Firefox+hangs
    * http://kb.mozillazine.org/Profile_in_use
    * https://support.mozilla.com/kb/Firefox+is+already+running+but+is+not+responding

  • Cannot start 2nd form on same application server when starting script in 1s

    Hello,
    we have a forms application running on a productive application server and the same application for different testing db's on a test application server.
    Within this application I can start a stored procedure that writes a spreadsheet via utl_file. Depending on the parameters used this might last 1 - 2 hours. When I start the procedure the forms application is blocked as expected until the procedure is finished. This would be no problem if there wouldn't happen a strange thing to some users: When they start the procedure every forms application on the same application server is blocked. This means they can work in production when they start the procedure in test environment but they can not open another test application and vice versa.
    As this only happens to some users (yet always the same) I'm lost where I have to search. I found no differences on the client machines, these are installed by a central administration tool.
    Has anyone an idea where I can start searching?
    Regards
    Marcus
    Forms 9.0 (Form Compiler) Version 9.0.4.3.0 (Production)
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    PL/SQL Version 9.0.1.5.0 (Production)
    Oracle Procedure Builder V9.0.4.3.0 Build #0 - Production
    Oracle Virtual Graphics System Version 9.0.1.11.0 (Production)
    Oracle Multimedia Version 9.0.4.1.0 (Production)
    Integration der Oracle-Werkzeuge Version 9.0.4.0.0 (Production)
    Oracle Tools Common Area Version 9.0.2.12.0
    Oracle CORE     9.0.1.2.0     Production

    Hello,
    I first wondered why this is happening only to some users. Now I found that it depends on the habit how the application is called.
    The applications are called from IE with separateFrame=TRUE.
    While I have a link in my XP start menue for every application and therefore start IE anew every time, other users use a website which has the same links. The difference I saw is, that I get a Java console for every application, whereas applications started from the same instance of IE share the same Java console.
    So now we have a workaround (start IE again) but I still don't know why this is happening at all.
    Regards
    Marcus

  • Complete BI Beans JSP Application Issues

    Hi,
    I have few issues with using BI Beans in a JSP based web application
    1) I have created a new project of Complete BI JSP Application in Jdeveloper 10. When I run this application there are NULL Pointer exceptions logged on the console. But it doesnt effect the application and the application runs smoothly. Can any one suggest what is causing these NULL pointer exceptions.
    2) Secondly, I want to use my custom logging using log4j for this application, but since everything is done in jsp itself in this application, there is no scope of java classes for logging. Can anyone advise me what is the actual way of doing it.
    Regards,
    Vigo

    peter is right, Use the same driver version as that of your database. Copy the classes12.zip and nls_charset12.zip from database_home\jdbc dir to your application directory.
    Hope it works
    regards
    Mukesh Harjai

  • Interesting single sigon application project using jsp and servlet....Help.

    A customer login's to my website using Enterprise login. I am supposed to have a link on my website to this other website(that also uses our Enterprise login details but hosted by other vendor/company on their server), and when I click this link the customes should automatically get logged in to this other website and get a welcome page(instead of login page).
    Below are the sequence of steps that the other website wants me to perform to get to his welcome page(i.e bypass his login page).
    FYI, I am planning to build a jsp page with a link to this other website. Can some body tell me how should I build the application(i.e) how jsp and servlets be build to interact to perform these operations. Any hep is greatly appreciated.
    1.When a user clicks on to other website link(available on my website), the browser generates an HTTP GET request to the Other website's session servlet. User's name is one of the parameters of this request.
    2.Other website receives the HTTP request and generates a unique session identifier for this user. An HTTP response to the end-user is then sent. The user's name and the session identifier are passed back as parameters in the redirect URL.
    3.The browser sends the HTTP request (GET) to the Verification Service that was specified in the redirect message. The parameters (user name and/or session id) will be passed as URL parameters.
    4.The Verification Service(of other website) authenticates the user. A redirect URL to it's sigon servlet(with parameter's User id and key) is then sent back to the user's browser.
    5.The end-user's browser will perform the redirect (performing an HTTP get operation to Other website's signon servlet with the username and the digest key).
    6.The other website will check if the parameter's passed is the same as the one passed earlier, if the user is who he says he is then he is redirected to the main page of the application.
    7.The browser will then redirect the user to Other website's main page (welcome.jsp).
    There seems's to be many calls to this other website that needs to be performed behind the scenes once a user clicks the link on my website.
    Please suggest and help me out.........
    Edited by: 836726 on Feb 21, 2011 3:41 PM

    Why are you trying to build a whole federated single sign on framework from scratch when you can just use/buy an existing and proven solution instead? There are a lot of security implication and trust issues involved for this so unless you already understand all of those I'd advise you not to re-invent the wheel. There are a lot of products available that do this. Try searching for '<vendor name> Access Manager' or OpenSSO.

  • Hey guyys .if some 1 from firefox team can help it wud be great......I was using firefox 3.6.3 on Mac OS 10.5.8 and Today I installed firefox 3.0(besides application folder) but not in same application folder like firefox 3.6.3 ...so now i had 2 firefox v

    hey guyys .if some 1 from firefox team can help it wud be great......I was using firefox 3.6.3 on Mac OS 10.5.8 and Today I installed firefox 3.0(besides application folder) but not in same application folder like firefox 3.6.3 ...so now i had 2 firefox version 3.6.3 and 3.0....I had 3.6.3 already open ..i closed it to... open 3.0 ....when i opened 3.0 it asked me to import settings i said no....it opened well.....then i close 3.0 and tried to open 3.6.3 version ...now it was a problem everything got lost sessions, bookmarks, add ons, etc....it went back to default ....when i had 2 profiles in 3.6.3.....can any pls help me on dis 1...is there a way to restore my sessions, bookmarks and add ons ??? I have uninstalled 3.0 version now....??? pls pls pls ....help
    == This happened ==
    Just once or twice
    == today

    It turns out that the problem had to do with network accounts, even though it was not clear at first.  Redirecting the program to the local machine's cache with a network home redirector script fixed the issue.  Thanks anyway.

  • Facing some runtime problem in new AIR 2.0Beta2 SDK and same application work in OLD AIR 2.0Beta1 SD

    Severity:
    Runtime Error
    Reproducibility:
    Every Time
    Discoverability:
    High
    Found in Version:
    SDK Flex 3 (Released)
    Affected OS(s):
    Windows              - XP
    Steps to Reproduce:
    « Hide
      Steps to reproduce:
    1. Run the Application 
    2. At the creation complete I am referring "StorageVolumeInfo" i.e. StorageVolumeInfo.storageVolumeInfo.addEventListener(StorageVolumeChangeEvent.STORAGE_VOL UME_MOUNT, onVolumeMount);
    3.
      Actual Results:
      I am getting runtime ERROR as below:
    VerifyError: Error #1014: Class flash.filesystem::StorageVolume could not be found.
    at _FreepandasV2WatcherSetupUtil$/init()
    at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::docFrameHandler()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:3213]
    at mx.managers::SystemManager/docFrameListener()[C:\autobuild\3.4.0\frameworks\projects\fram ework\src\mx\managers\SystemManager.as:3065]
      Expected Results:
       I am using ADOBE AIR 2.0Beta2 version SDK.
    The same application is run in Last SDK i.e AIR 2.0Beta1
      Workaround (if any):
      I am using ADOBE AIR 2.0Beta2 version.
    Can you please help me out...
    Thank you

    My settings with air 3.3:
    <renderMode>gpu</renderMode>
    <aspectRatio>portrait</aspectRatio>
              <autoOrients>false</autoOrients>
            <fullScreen>true</fullScreen>
            <visible>true</visible>
            <softKeyboardBehavior>none</softKeyboardBehavior>
        </initialWindow>
    It only displays a white screen with a small gray square (1/5 of the screen size - top left).
    A scrollbar is visible if you drag the screen and the sound is playing...
    I tried this settings:
    <aspectRatio>portrait</aspectRatio>
            <renderMode>gpu</renderMode>
              <autoOrients>true</autoOrients>
            <fullScreen>true</fullScreen>
            <visible>true</visible>
            <softKeyboardBehavior>none</softKeyboardBehavior>
        </initialWindow>
    It won't work...
    Edit:
    I also tested the new sdk http://www.adobe.com/products/air/sdk/ with gpu mode.
    iPhone works fine but the iPad version always crashes.
    The app opened up but if I try to load a level created with box2d the app always closes (crashs).
    I think that is a gpu ram issue?
    Is this a iPad issue or air?
    Edit 2:
    I changed the creationcomplete event to viewactivate. The transition now looks really worse but the levels are loading.
    I also deleted all the elements before changing the view (removeElement and removeChild).
    The third step I made was to use weak eventListener obj.addEventListener("event, function, false,0,true);
    I think that iOS systems have the problem of less gpu ram than android devices ...

  • How to use jsp and xhtml files in an application

    This is web.xml file,
    <web-app>
    <context-param>
         <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
         <param-value>.xhtml</param-value>
    </context-param>
    <context-param>
    <param-name>facelets.DEVELOPMENT</param-name>
    <param-value>true</param-value>
    </context-param>
    <servlet>
         <servlet-name>Faces Servlet</servlet-name>
         <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
         <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
         <servlet-name>Faces Servlet</servlet-name>
         <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
    <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
    </context-param>
    </web-app>
    If i configure like this, i am not able to work with jsp file.
    So, how to configure web.xml file to work with both jsp and xhtml file.
    Thanks,
    Vinutha.

    Hi Sam,
    To Use properties file you need to keep the properties file in a location and in the code you need to mention the path from where it should read in the runtime.
    Fuego.Io.PropertiesFile propfile;
    propfile.load(fileName : "<Path: C:/sample.properties>"); //Path: Place the properties file in the respective directory/drive and mention the path
    String val = propfile.get(key : "One"); //One - is the key against which the value should be mentioned in the properties file like <One = 1>. It should return 1
    logMessage("Value: " + val);
    To use the Enum in your project first create a Module in your catalogue component and then right click on module create New Enumeration say ProcessStatus
    Uncheck the Is Sequential if you want to keep key/value as pair. Click on add +* and mention the Name and Value say ABORTED as Name and Value as Aborted. To use it in your project conditional path write the condion as somevariable == String(ProcessStatus.ABORTED)
    Hope this will help you.
    Bibhu

  • Problem with JSP and Java Servlet Web Application....

    Hi every body....
    I av developed a web based application with java (jsp and Java Servlets)....
    that was working fine on Lane and Local Host....
    But when i upload on internet with unix package my servlets and Java Beans are not working .....
    also not access database which i developed on My Sql....
    M using cpanel support on web server
    Plz gave me solution...
    Thanx looking forward Adnan

    You need to elaborate "not working" in developer's perspective instead of in user's perspective.

  • Using EE and XE in the same application?

    After reading the license, it doesn't appear that there is any stipulation against using XE databases alongside an EE database within the same application.
    I have a business app which runs with a centralized database, but clients in many geographically dispersed locations. The idea has been bumped around lately of trying to cache data locally to speed things up. The approach is not so much replication, but of acquiring modification priveleges from the central database, making a copy of the relevant data to a local one, and working with it there for a time. Modifications are then copied back into the central database. This scheme would be aimed at improving response times, and also helping increase the scalability of the overall application. (And yes, our applicaiton adheres strongly to the principle of locality.)
    Thus far, we acquired licenses to BerkeleyDB in order to implement these local data repositories. Oracle XE seems like a more effective route because it presents the immediate benefit that the application would not need to have it's OCI code changed..
    Given that XE supports replication as a client, I hope that this sort of thing has already crossed the minds of Oracle and that it is an acceptable use of XE?

    I am not from Oracle but I cannot see anything in your use case that would violate the license agreement. The usage of XE is free for any purpose and you are allowed to use database links, export / import and even create materialized views from another oracle database directly.
    Regards,
    ~Dietmar.

  • I have an iPhone application already developed and it works great ,now i need to make that same application for my iPad .can someone please tell me step by step instructions on how to make it .

    i have an iPhone application already developed and it works great ,now i need to make that same application for my iPad .can someone please tell me step by step instructions on how to make it .

    Try the developer's forum:
    https://discussions.apple.com/community/developer_forums

  • ITunes closes down due to new registry error message.  Says to reinstall, I do and still same issue.

    All of a sudden iTunes is giving me a message when opening - "registry settings for importing and burning CD are missing.  Please reinstall iTunes.".  I did and still same message - then shuts down totally.  New problem, nothing changed/  Help?

    Hey clueless2661,
    Thanks for using Apple Support Communities.
    If iTunes for Windows won't open, try using the steps.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Have a nice day,
    Mario

Maybe you are looking for