Link to home
Start Free TrialLog in
Avatar of princehyderabad
princehyderabad

asked on

Need good idea and logic

hi experts,

I have a Q&A application pretty much simiar to this site, but much difference. My app. is based on gobal University studies where students can post Q and Proffesors will A it. So I'm planning to using JSP/Servlet. I already had Left Menu and top banner in place as jsp includes for each pages. Correct me if my approach is wrong. I dont wanna use frames. What I'm looking is the great idea and logic to implement the main page content.

What I'm thinking is every day professors will answer the Question from Admin Section from back side the app. Weekends and holidays they will not answer or so.
How to fetch the records with current or lastest answered from DB ? Also I wanna display part of Q like the one on this website, when click on it, it will direct to full question / answer page.
--------------------------------
 top banner
--------------------------------
Left      |    Main Content
Menus  |
           |
           |
           |
           |
--------------------------------

thx,
PH
ASKER CERTIFIED SOLUTION
Avatar of bloodredsun
bloodredsun
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of princehyderabad
princehyderabad

ASKER

>>...having 2 fields in your db table...
Who will enter the 1st field with just Q heading ???? Manually or Automat.....
2nd field having full Q put up there I hv no probls as it will be done by my servlet.

>>sort by the date the question was submitted
I think its been to sort by Answer date. let say if there was only 1 answered on some particular day. So will it be good to display just 1 record on whole Main Content page. How can I make up on this so that the main content looks not empty or so.
>>Who will enter the 1st field with just Q heading ????
The user does. Look at how EE does it, it's two separate form elements: "Question Title" and "Question Body"

>>>>I think its been to sort by Answer date.
No, it's by question asked date. You can only make it not look empty by first checking if your resultset is empty and then going back a day each time until you find a question.

>>No, it's by question asked date. You can only make it not look empty by first checking if your resultset is empty and then going back a day each time until you find a question.

Okay sort by Q date, but display current date as label in main content that will make sense correct. Okay I got ur point if rs is empty go back and check what if rs is not empty and it has only 1 record to show ? Will it be good to just show one Question and 75% of Main content empty ??


Yeah your sitemesh is good. Just went to imp. point on that. But can U just tell me basci feature comparing jsp including to sitemesh. Which should be most more and why.

thx for ur help
I read abt sitemesh. What I look was some advance features like <print> etc., but overall the server executing process is same. Infact sitemesh has a extra step compare to struts or so.

Can you tell me what could be the draw back to use <jsp:include> with respect to sitemesh.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial