bala kiran

Ranch Hand
+ Follow
since Jun 11, 2004
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 bala kiran

I am writing Spring DAO and I am looking for some tools which generates DAO and other stuff, for given table(s). Any such tools available? I searched online, but couldnt find any.
I was under the assumption that it will be passed over to the next controller as we declared it as reference bean for the first controller. Do I need to explicitly set in the session?
I have a problem here in getting MVC work between two pages. I have a login form, that is authenticating the customer and then gets the customer information based on the login details. This populates object called "Customer" and hands off to another controller, AccountController, who just displays account.jsp. I am trying to access this Customer object on the account.jsp, but for some reason, I see the object is getting null on account.jsp, however i see Customer object is set with all values before the request is handed off to AccountController.

Here is the code snippet from my xxx-servlet.xml
<bean id="accountController" class="com.controller.AccountController" />
<bean id="logonForm" class="com.controller.LogonFormController">
<property name="commandName"><value>login</value></property>
<property name="commandClass"><value>com.business.Login</value></property>
<property name="validator"><ref bean="logonValidator"/></property>
<property name="formView"><value>login</value></property>
<property name="successView"><value>account.htm</value></property>
<property name="customer" ref="customer"></property>
<property name="serviceManager" ref="serviceManager"></property>
</bean>

---------------
Code from LogonFormController:

public ModelAndView onSubmit(Object command) throws ServletException {
Login login = (Login) command;
String custid = login.getCustomerid();
logger.info("custid in onSubmit is:" + custid);
customer = serviceManager.retrieveCustomer(custid);
if(customer!=null) logger.error("customer name is: " + customer.getFirst_name());

return new ModelAndView(new RedirectView(getSuccessView()));
}

====================

I see the name here spitting out without any problem. But, on account.jsp,
<c ut value="${customer.customer_id }" />

This doesnt show any value when I execute the app.

Any help on where I could be wrong is greatly appreciated.
Any books/articles that cover Spring DAO with iBatis? I want to call some stored procedures with Spring and iBatis. Any examples I can refer to?
Nobody has a clue on this? In that case, I guess I have to buy jboss support.
15 years ago
I am losing mysql connection from jboss very frequently. Mysql db is in the same network, but on a different IP. After researching thru jboss documentation, I added this line to my mysql db xml file,
<connection-property name="autoReconnect">true</connection-property>

still its losing connection after 6-7 hrs of not using. The connection re-establishes if i restart jboss.

Any help is greatly appreciated.
15 years ago
Please let me know what are the best JSF tutorials online. My JSP skills are rusty now, want to upgrade myself to JSF.
15 years ago
JSF
I know..but, if i redirect the request, i might lose the session. Any other option?
15 years ago
JSP
I'm developing a JSP application, in which I want to send the customer to a secured page (https://) from a non-secure page(http://). How can I do that without forwarding the request? If i have forward the request, will I lose session?
15 years ago
JSP
Hi, I tried going thru the jcaptcha tutorial. Unfortunately, I could not make it work. Any help is appreciated.

Thanks
how do I read RSS feed using java? any tools available?
16 years ago
I dont know much about JSF. Can somebody explain the advantages of JSF?
16 years ago
JSF
can you please get me sample code?
16 years ago
JSP
Well, what i meant was: when i was using mimeypte as: application/vnd.ms-excel, it is prompting me to save in XLS format, but when i change the mimetype to: text/csv or text/plain, I assume it will prompt me to save it csv format (filename.csv), but it was displaying the results on my web page. How can I save the file in csv format, not in excel.
16 years ago
JSP
That did not work for me. Did you use it before? Any further help is appreciated.
16 years ago
JSP