Forum Stats

  • 3,827,529 Users
  • 2,260,790 Discussions
  • 7,897,291 Comments

Discussions

How do I configure my application to provide access for mobile and web brow

829945
829945 Member Posts: 2
edited Jan 10, 2011 1:30PM in JDeveloper and ADF
Hi everyone.

I have one application and I need to provide access for mobiles and desktop browsers, and I don't know how do I configure my application to do this.

Let me explain:

In my jDeveloper I have One application and 3 projects:

-Mobile (here is my mobile application)
-Model (here is my model)
-ViewController (here is my Web Browser application)

In Mobile I have
JavaEE Web Application name: mobile-Mobile-webapp
JavaEE Web Context Root: mobile

ViewController I have
JavaEE Web Application name: mobile-ViewController-webapp
JavaEE Web Context Root: myapplication

When I run some page of ViewController I have this URL "http://localhost:7101/myapplication/index.jspx".
When I run some page of ViewController I have this URL "http://localhost:7101/mobile/index.jspx".

My problem is that, I want to have Just one landing URL like that "http://localhost:7101/myapplication/index.jspx" and when I get this URL by Desktop Browser my ViewController is showed, and when i get by Mobile the Mobile project is showed.
Someone knows how do it?

Thanks....

Answers

  • Shay Shmeltzer-Oracle
    Shay Shmeltzer-Oracle Director of Product Management for Oracle's Cloud Development Tools Posts: 16,867 Employee
    You can find out which client accessed your page with a line like this:
    String agent = req.getHeader("User-Agent");

    In a servlet filter for example and then forward to the right URL.
    Shay Shmeltzer-Oracle
  • 829945
    829945 Member Posts: 2
    Yes, I can, thanks for response.

    But, don't have some configuration in Oracle for this? I've been thinking do this with java or JavaScript, but I was looking something more beautiful for this.

    Java or JavaScript is the only way?
This discussion has been closed.