hi!
thanks for the reply James.

i should probably clarify myself. This thing i am building is like a webpage builder, you choose everything and the person should then get a resulting html file, which he should be able to download.

so how do you convert the jsp (resulting from the choices he made) to html? Say when i make a request for a jsp page, the server processes the request and what gets outputted to my browser is html. How can i force that to happen and pipe the output to a file?

with regards to tiles, it sounds like a good way of doing things and i am still looking for something like this that has been done before. Haven't come across any open source product so far, and i am not interested in the proprietary ones.

Ajay


From: James Neville <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: ui generation
Date: Wed, 26 Nov 2003 11:52:54 +0000

Ajay,


he should as such be able to select layouts, choose what goes where, colours etc and in the end it should generate a html page for him.

We're doing something pretty similar here, but not using the Tiles stuff (for now anyway).
Basically, we have user selectable themes, which write the appropriate css file to the page.
There are *some* user definable colours, fonts etc, the values of which are pulled from the DB on login, stored in the session, and written to the page as styles that override the default, or user selected css theme file.


my questions are:
1> is it possible for me to generate a jsp page using struts tags, feed that to a parser and get the resulting html, like what would happen if i made a regular jsp/struts page and then a user clicks on it, and the page is processed and html spewed to the user's browser. How do i make that happen from within a page. ie, in one page a user selects all these layouts etc and clicks some generate button and a file with the resulting html gets stored somewhere on the server which the user can then download.

I'd assume that you would want a variety of layouts such as top/left/right navigation, one/two/three column body etc.


We do something similar where a user has selectable templates for layout as well as the themes.
We simply have jsps for each template, and dependant on the user requesting the page the Action redirects to the appropriate template.
At the moment, most of the relevant content is split into smaller jsp fragments, and incuded on the template pages, so that we don't need to rewrite the view in multiple places.
We also intend to have customisable content (a-la Yahoo portal), where the template simply checks which content is required for the user, and includes the relevant page fragments where necessary.........



2> can i dynamically write a tile definitions.xml, depending on the layout and the components chosen and have that fed to the parser from q1.

....... i'm also keen to know whether we can do something like this with Tiles, but I have no experience of using them just yet.
Has anyone else has success doing custom UI generation with Tiles, possibly pulling the layout definition from a DB?


There surely must be something that does this out of the box already, no?

Cheers,
James


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Hot chart ringtones and polyphonics. Go to http://ninemsn.com.au/mobilemania/default.asp



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to