I was looking for an easy way to do this once and make it work for the whole site. Now I realize I'm going to have to go into every servlet and have it choose which jsp to display.
On Oct 6, 6:43 pm, WillSpecht <willspe...@gmail.com> wrote: > My real problem is that I can't figgure out how to show war/mobile/ > home.jsp when a user types in m.mydomain.com/home. > > On Oct 6, 5:55 pm, Nichole <nichole.k...@gmail.com> wrote: > > > > > > > > > I should add that my simplified model above uses the given static > > examples without a redirect to a /site/mobile. > > By 'design for all viewports' I mean design to use floating right divs > > when possible... > > > On Oct 6, 2:50 pm, Nichole <nichole.k...@gmail.com> wrote: > > > > I'm not using a pseudo-2-site model myself anymore as I recently > > > simplified my structure. > > > For SDK 1.5.2 I had errors upon submitting for deployment more than > > > static 100 files, so keep that in mind. > > > If SDK 1.5.5 increased the max of number of static files to be > > > uploaded, or your files are within limit, > > > next keep in mind that appengine implementation of > > > javax.Servlet.Filters work upon dynamic > > > content (filters are not applied to static content at this time). > > > So if you need to sense the user agent on server-side using your > > > library of preference, make sure that > > > your welcome file is a jsp file in order for your browser agent filter > > > to intercept > > > up the request. > > > If you are instead using a static html file that includes javascript > > > to sense the > > > viewport size (= document.width) and then redirect, you won't need to > > > use a javax.servlet.Filter > > > and can replace the welcome file with your index.html instead > > > (caveat is that if you advertise, you won't be able to use that > > > default url as it will now result in a redirect). > > > > Here's how it could work w/ welcome file index.html: > > > > If you had webapp directories: > > > /site/ > > > /site/mobile/ > > > > in appengine-web.xml use: > > > <public-root>/site</public-root> > > > <static-files> > > > <include path="/site/favicon.ico" /> > > > <include path="/site/index.html" /> > > > <include path="/site/about.jsp" /> > > > <include path="/site/error.html" /> > > > </static-files> > > > > in web.xml use: > > > <error-page> > > > <error-code>404</error-code> > > > <location>/error.html</location> > > > </error-page> > > > <welcome-file-list> > > > <welcome-file>index.html</welcome-file> > > > </welcome-file-list> > > > > I'll leave the app version that uses an index.jsp welcome file and a > > > browser agent filter up to you, but it should work similarly. > > > > On Oct 6, 7:10 am, WillSpecht <willspe...@gmail.com> wrote: > > > > > Things will be slightly different on the mobile site. I have checked > > > > out jquery mobile and its how I want to write the mobile site. I > > > > think the layout of the two sites will be too different to do on one > > > > page. > > > > > On Oct 5, 9:49 pm, Nichole <nichole.k...@gmail.com> wrote: > > > > > > Have you thought of designing for all viewports from the start instead > > > > > of a redirect? > > > > > see the new jquery library > > > > > > http://jquerymobile.com > > > > > > On Oct 4, 11:57 am, WillSpecht <willspe...@gmail.com> wrote:> Can > > > > > someone give me a basic rundown of how to set up a mobile site on > > > > > > app engine. I already have a standard site set up but I want to use > > > > > > the same data store to run a mobile site. > > > > > > > I would like to redirect mobile users to m.mydomain.com. Basically > > > > > > both sites will be the same I just want to show them different jsp > > > > > > pages. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.