Author |
Message |
Proofdada
Bewarse ke Bewarse! Username: Proofdada
Post Number: 31982 Registered: 03-2004 Posted From: 195.3.113.149
| Posted on Thursday, December 01, 2005 - 6:36 pm: | |
mama ee db loo java specy lu leeru anukunta mama vunna vallaloo.. naluguriki nachinadi nakasalee ika nachadu roo... |
Nks
Pilla Bewarse Username: Nks
Post Number: 57 Registered: 08-2004 Posted From: 66.188.220.251
| Posted on Thursday, December 01, 2005 - 6:28 pm: | |
hmm evaru lera |
Durga
Desanike Pedda Bewarse Username: Durga
Post Number: 10370 Registered: 03-2004 Posted From: 12.144.110.131
| Posted on Thursday, December 01, 2005 - 3:35 pm: | |
sree mama DURGA-- Vinni Viddi Vicci |
Nks
Pilla Bewarse Username: Nks
Post Number: 56 Registered: 08-2004 Posted From: 129.42.161.36
| Posted on Thursday, December 01, 2005 - 3:23 pm: | |
annalu evaranna help cheyandi kastha. recent ga jr. level position vasthe java rakapoyina Jr. level ani cheranu. ippudu oka kastam vachi paddadhi. please evaranna help cheyandi. nenu work chesthunadhi JSP/Servlets/Beans nenu A.jsp, AHandler.java, ABean.java files raayali. ee project architecture ela vundhante... user request nu batti handlers.properties nunchi corresponding handler nu oka MainServlet.java call chesthundhi. so ippudu user http://address.com/A.jsp ani type chesthe daani corresponding AHandler.java invoke avuthundhi. appudu aa AHandler request object nu theesukoni Bean populate chesthundhi. tharuvatha A.jsp display avvali. andhulo konni dynamic elements vuntayi vaati values <jsp:usebean /> nunchi vasthayi. ippudu nenu jsp, handler, bean ela rayola artham avatam ledhu. Bean simple just getters and setters raasesanu. main ga stuck iyinadhi handler lo. AHandler must implement MainHandler interface. MainHandler lo 2 abstract methods vunnai 1. public resultBean handleRequest(HttpServletRequest req, HttpServletResponse res) 2. dispatcher (HttpServletRequest req, HttpServletResponse res, resultBean rBean) now AHandler implements MainHandler... nenu aa 2 methods implementation raayali. nenu ila raasa implementation. public resultBean handleRequest (HttpServletRequest req, HttpServletResponse res) { // instantiate my own bean, ABean.java ABean myBean = new ABean(); //release is a private variable in my ABean.java, which has getter and setter myBean.setRelease(release) // release will come from request object //Instantiate resultBean - coz this method should return resultBean, so i cant return my own bean resultBean rBean = new resultBean(); //Now add myBean to the resultBean rBean.setProperty("AddMyBeanTOResultBean", myBean); return rBean; } public void dispatcher (HttpServletRequest req, HttpServletResponse res, resultBean rBean) { } <--- deeni implementation emi rayaledhu... emi raayalo kuda artham kaledhu. inthavaraku nenu raasanu, now in A.jsp <jsp:usebean id="myBean" class = "ABean" scope = "request" /> myBean.getRelease() <--- using this statement i can display the release. ippudu nenu ee A.jsp page ela display cheyali? MainServlet.java functionality: 1. it looks handlers.properties 2. If requestname is A.jsp then AHandler invokeHandler = new AHandlerL(); resultBean rBean = new resultBean(); // call handlerequest method of the handler which returns resultBean. rBean = invokerHandler.handleRequest(request, response); // Now in rBean i have the property called "AddMyBeanTOResultBean" --- rBean.setProperty("AddMyBeanTOResultBean", myBean); naaku ikkada emi rayalo artham kavatam ledhu. how can i call the A.jsp page here? // now do I have to call dispatcher? invokeHandler.dispatcher(request, response, rBean) // or can I just call ServletConfig.getRequestDispatcher("A.jsp").forwar d(request, response) here do i have to use forward(request, response)? endhukante A.jsp lo neu usebean use chesthe value vasthundhi inka mari request object tho panenti? evarikanna emanna idea vunte please help me. asalu artham kakunte cheppandi sarigga explain cheyataniki try chestha. thanks annalu |
|
|
|