Brendan Laing

Greenhorn
+ Follow
since Mar 22, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Brendan Laing

Thanks Bear,

Sorry I did miss read Stefans reply.

I'll read up on JSTL tonight!

Thanks
Brendan
14 years ago
JSP
My company are looking for a seasoned professional java architect to advise us on a contract or part-time basis. If you are looking for a flexible filler, or just like an easy part-time life, please contact brendan.laing@biise.com.
14 years ago
Thanks for you reply, suggesting xslt confirms my thoughts from an ongoing support point of view, what about the performance costs, compared to other options?
14 years ago
JSP
Hi,

We'd like to make use of JSP's and I'm sure we do not have an unusual business case but we can't see how we can due to the following technical challenges. I'm sure there is an expert who has better experience on this, can you advise us?

The challenge:

We have an object (say a car object) that has properties (the driver is) with values (person objects). The car object may have other properties (has passengers) with no values at all. We want to display to a web browser user the car object.

The car object belongs to the car class so we know all the properties the car should have. It is from that class we are able to build up an XHTML using a div for the object with a table containing rows for each property. Then we need to map the object's property values into the cells of the table. There may be mulitple values (i.e. 4 passengers), and we want to display each value using a div with an image (to allow drag and drop).

I can see several ways of solving this.
1) The car object is a class and has a method parse which returns it's own XHTML logic. The car object has a hashmap containing the properties and each property has a hasmap containing the values. For example:

object
parse
<DIV>
<TABLE>
loop through properties and parse each one
</TABLE>
</DIV>

property
parse
<TR>
<TD>label</TD>
<TD>
loop through values and parse each one
</TD>
</TR>

property value
parse
<DIV>
<IMG src="..">
</DIV>

This builds up the final example XHTML for the object:

<DIV id="car">
<TABLE>
<TR>
<TD>p_driver</TD>
<TD>
<DIV>
<IMG src=".Bob.">
</DIV>
</TD>
</TR>
<TR>
<TD>p_passengers</TD>
<TD>
<DIV>
<IMG src=".Fred.">
</DIV>
<DIV>
<IMG src=".Wilma.">
</DIV>
</TD>
</TR>
</TABLE>
</DIV>


2) Do the same as above and build an XML instead of XHTML. Then parse using XSLT:

<Object id="car">
<TABLE>
<Prop>p_driver</Prop>
<ObjectValue>.Bob.</ObjectValue>
<Prop>p_passengers</Prop>
<ObjectValue>.Fred.</ObjectValue>
<ObjectValue>.Wilma.</ObjectValue>
</Object>


3) Since we may want to present the same objects in different formats depending on the user i.e. we may want to use a column for each property instead of rows (transpose the table). We like the idea of seperating the generation of the presentation (XHTML) logic from the data preparation stage (reading both the class, object, and properties). JSP's would be perfect for this. But we would like to modularise the JSP so that for example the property values are their own reusable JSP's. In this case we would need to pull together many JSP's to produce the final XHTML. One way to do this (but surely not the best way by far) is for the servlet to read the JSP (or file based XHTML definition) and then dynamically build up the XHTML using the JSP's as templates (this sounds too much like XSLT). Otherwise how would you do the following:

Define 3 JSP's:
Object_Container.JSP
Property.JSP
Objecy_Value.JSP

The Object container would be used for the car. Then it would need to read the servlet bean and loop through the properties, and then insert the property jsp for each one found. The property JSP would then need to read the servlet and loop through the objct_value JSP for each value found.

4) Use JSF. We want more control on the gui components that JSF will allow, so this is not an option.

So in the end we can't see how to do option 3 in a sensible way so for the time being we've stuck with option 1. Option 2 may be an option but we're concerned about performance and first like to exhaust the JSP option. Any tips, traps, or insults for our stupidity...?

Brendan

[ May 10, 2006: Message edited by: Brendan Laing ]

[ May 10, 2006: Message edited by: Brendan Laing ]

[ May 10, 2006: Message edited by: Brendan Laing ]

[ May 10, 2006: Message edited by: Brendan Laing ]
[ May 10, 2006: Message edited by: Bear Bibeault ]
14 years ago
JSP
post updated, see above.
14 years ago
Please send me your contact details brendan.laing@biise.com
14 years ago
Two commercially experienced java developers are required to build tomorrows business solutions. These positions are to work on modular, multi-tiered entreprise applications through multiple releases over the next 3 years. This is a unique opportunity for individuals wanting to grow and develop their skills with a young dynamic company. Given the importance of these roles you will be offered an intersting share of the business and initially a base salary of 24k to cover the basic cost of living. You will have 5 years commercial software development experience and a minimum of 3 years experience in building production quality solutions using a combination of RMI, JavaScript, EJB, Unix, XML, AJAX, XHTML, multi-threaded programming, CSS, and JAAS technologies. You should be have a strong educational background, be Degree qualified, have strong OO design skills, and be fluent in English.

Contact: Brendan.Laing@biise.com

[ March 29, 2006: Message edited by: Brendan Laing ]
[ March 29, 2006: Message edited by: Brendan Laing ]
14 years ago
"A first class Senior Enterprise Architect required to design and build tomorrows business solutions. You and your team will be responsible for delivering a modular, multi-tiered entreprise application through multiple releases over the next 3 years. This is a unique opportunity for a software expert with team management experience to get involved in an up and coming venture. Given the strategic importance of this role you will be offered an exciting share of the business and initially a base salary of 36k to cover the basic cost of living. You will have 10 years commercial software development experience and a minimum of 5 years experience in building production quality solutions using a combination of RMI, JavaScript, EJB, Unix, XML, AJAX, XHTML, multi-threaded programming, CSS, and JAAS technologies. You should be have a strong educational background, be Degree qualified, have strong OO design skills, and be fluent in English."

Contact: Brendan.Laing@biise.com
[ March 29, 2006: Message edited by: Brendan Laing ]
14 years ago
Thank you for your feedback. This has been noted and a new post submitted.

Brendan Laing
14 years ago
Hi,

I'm looking for someone who's got a mass of experience with multi-tiered archtiecture knowledge to help with a new venture that's been in incubation for 18 months and now close to a beta release. I'm only interested in "senior geeks" who know their stuff and would be interested in working on an exciting new concept that potentially could be financially attractive in the long term for any serious candidates.

The company is based in Surrey UK and I'm looking for local people. The deal I can offer so far is to work on contract for 2 months (starting April/May). This gives us time to evaluate each other and then we can work out how to proceed from there. If I had to give the work a title it would be "senior solution architect", but in a start up we all have to get stuck in and do whatever it takes to make it fly. Please contact me by reply if you you are interested or please forward to a colleague if they may be interested.

I'm not a head hunter or agency, this is one-to-one and a serious offer. More details can be discussed face-to-face under non-disclosure.

Regards
Brendan Laing
07979 305 890
bdn_01@hotmail.com
14 years ago