Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Mahendra Suda

Greenhorn
+ Follow
since Apr 22, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
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 Mahendra Suda

Hi Kory,

Can you please give your contact mail id, I want to send my resume to you.
10 years ago
You can find a tutorial on PDF bookmark here
11 years ago
A framework is the collection of design patterns.
11 years ago
The code seems to correct only, Could you trace the exception you are getting and paste it here.
11 years ago



As your requirement you are running while loop at wrong place, so in your code only one values will be there in all the property, instead you have to generate the report data inside while loop.. Try above code of replacement of while loop and Html string... Should work.
11 years ago
javax.sql.DataSource is the correct one., What version of Struts you are using?
11 years ago


The problem in above code, You are passing 'request' object, But form where you are getting this object? either you directly use inside the execute method and pass the HttpServletRequest object to getDataSource() method Or Pass the HttpServletRequest object to your createConnection() method..

After refactoring your code the method createConnection() should look like this.


11 years ago


and



Above are the methods available in struts 1.x Action class.

The getDataSource() method is the part of struts's Action class, You can directly call this method inside any of your Project class which is extending Struts's org.apache.struts.action.Action class.

I think this may help you.
11 years ago
Hi,

You can find in which time zone your are. how to calculate time zone, you can refer http://www.java-connect.com/date/SimpleDateFormat-RFC-822-Time-Zone-Example.html
11 years ago
You are getting String pageNo=req.getParameter("pageNo") as 'null' string, thats why it is going inside null check, but pageNo is not null ie it is value 'null' as string, and definitely the number format exception will come for input as "null" or any string which does not include any number.

you need to check where you passing the parameter pageNo, it is passing properly or not.
Use style="border:0" inside tag
11 years ago
JSF
Hi..

I am getting the issue while displaying ajax response in grails

I am doing the simple Ajax submit call to submit the form data using as below code



My action in controller class is as




You can see in action code aim rendering the template /common/errors/ where the i am rendering all the errors inside user instance. and i have the template code as below



The problem template code is coming with layout rendered code and updating the div as well, but it is appending the default layout I do not want. i just want to display the errors messages

Could somebody help please where i m doing wrong.






11 years ago
Hi,

You can use the Ajax for your requirement, there is lot of library available for ajax.

you can refer ajax jsp tag library also.

see the 'Select' example in this page http://ajaxtags.sourceforge.net/usage.html.
Ok, It seems you are using the correct Driver type, but still i can say it is the Driver issue.

Could you please mentioned which version of DB and Driver type you are using,

Before this you put the latest oracle jar file in your application's lib directory also and deploy.