Results 1 to 6 of 6
- 04-12-2012, 10:13 AM #1
Member
- Join Date
- Aug 2011
- Posts
- 62
- Rep Power
- 0
Question regarding website architecture
Hello,
I am a JSP newbie and I want to make a website with an image map that contains some links. If you click on one of those links, you get detailed information, which is displayed in a separate window. The information itself is loaded from a XML file.
Now I have a few questions: Which XML library can be recommended? How should the website be composed? Where should I use JSPs and where are Servlets a better choice? Thanks for any advice.
- 04-12-2012, 10:47 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: Question regarding website architecture
I can probably only answer the last bit.
JSPS are for display, so should not hold any "business logic".
Servlets do the bulk of your work and then pass the relevant data to the JSP to display.Please do not ask for code as refusal often offends.
- 04-17-2012, 09:00 AM #3
JavaDoctor
- Join Date
- Apr 2012
- Location
- Internet
- Posts
- 7
- Rep Power
- 0
Re: Question regarding website architecture
Please write an element tag in the xml file for the image. Then, create a rollover with the XPath code in jsp something like the following:
<img name="itemrollover" src="<%out.println(pics.item(i). getTextContent());%>" onMouseOver="changeImage('<%out. println(rollN.item(i).getTextCon tent());%>')" onMouseOut="changeImage('<%out.p rintln(pics.item(i).getTextConte nt());%>')" >
- 04-17-2012, 09:37 AM #4
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Re: Question regarding website architecture
Pardon?
Are you hijacking a thread and asking someone to do your work for you?
That's impressive...Please do not ask for code as refusal often offends.
- 04-17-2012, 09:42 AM #5
JavaDoctor
- Join Date
- Apr 2012
- Location
- Internet
- Posts
- 7
- Rep Power
- 0
Re: Question regarding website architecture
Excuse Me I didn't understand what you meant! I was suggesting the method to create a rollover with the data fetching from Xml file.
- 04-17-2012, 10:31 AM #6
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Similar Threads
-
Question about website hosting
By fam2315 in forum Forum LobbyReplies: 1Last Post: 07-24-2011, 06:39 AM -
How to go to a website using variables then read whats on the website?
By technoreject in forum New To JavaReplies: 4Last Post: 07-02-2011, 03:28 AM -
Question about architecture
By sdmente in forum Advanced JavaReplies: 7Last Post: 07-28-2010, 01:07 PM -
Java Architecture Question
By ronakppatel in forum Web FrameworksReplies: 1Last Post: 10-01-2008, 12:13 PM -
How to add or code for 'Question and Answer' on product page of website
By 82rathi.angara in forum Advanced JavaReplies: 1Last Post: 08-29-2008, 01:54 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks