Discussions
Categories
- 196.9K All Categories
- 2.2K Data
- 239 Big Data Appliance
- 1.9K Data Science
- 450.4K Databases
- 221.7K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 550 MySQL Community Space
- 478 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3K ORDS, SODA & JSON in the Database
- 546 SQLcl
- 4K SQL Developer Data Modeler
- 187K SQL & PL/SQL
- 21.3K SQL Developer
- 295.9K Development
- 17 Developer Projects
- 138 Programming Languages
- 292.6K Development Tools
- 107 DevOps
- 3.1K QA/Testing
- 646K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 155 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.1K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 18 Java Essentials
- 160 Java 8 Questions
- 86K Java Programming
- 80 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 442 LiveLabs
- 38 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 171 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 232 Portuguese
How do I configure my application to provide access for mobile and web brow

829945
Member Posts: 2
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....
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....
Tagged:
Answers
-
Shay Shmeltzer-Oracle Director of Product Management for Oracle's Cloud Development Tools Posts: 16,867 EmployeeYou 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. -
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.