Ganesh Ramani

Greenhorn
+ Follow
since Aug 07, 2007
Merit badge: grant badges
For More
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 Ganesh Ramani

Yeah, I discovered that after few day I posted that. Nevertheless, thenks for your support :-)
Hi Friends,

Is there any offers prevailing currently on SCJP 5 exam voucher? Or is there any offers coming up near future...? Please let us know.

Thanks,
Ganesh
Hi Devesh Chanchlani,

I am too stuck with the IN clause usage in HQL. BTW, I am using Hibernate 3.1 and couldn't find the method you specified "setBindParameterList".

Please write back as how you implemented IN clause in the Java program for setting the parameter binding???

Ganesh
Hi,

I am looking to use IN clause in my HQL. I referred some forums and couldnt get an optimal idea for this.

One approach i tried is to set the parameter of HQL as shown below:

My HQL: SELECT prd FROM ProductORM AS prd WHERE prd.productID in (:selPrdIDs)

Java code: hqlQuery.setParameterList("selPrdIDs", prdIdList); //prdIdList is List<Integer>

But this resulted in SQLGrammarException: could not execute query ; SQLException: Invalid parameter binding(s)

Please help to implement IN clause in HQL...

Thanks,
Ganesh
Thanks for the response :-)

I still have a question at this point, with AJAX response as XML.

It is known that AJAX request & response uses XML format, the response data can be obtained as XML using xmlHttp.responseXML.

During an AJAX call, if we write a byte stream in servlet response, can't the xml response be interpreted to any other form? Can this interpretation makes its possible to get different type of content, by customizing the content_type & request headers?

Please explain as how AJAX XML processing happens...

Thanks in advance.
Hi,

I am looking to export data from a struts application to excel format. Without AJAX, I was able to do it using the response content type & header settings.
When i tried to implement this using AJAX, I am puzzled as how the AJAX response can be made to display the download dialog box on downloading the file from server...

Please help by explaining as how this procedure of exporting a data file to client browser can be done using AJAX.

Thanks,
Ganesh
Thanks for the reply.

I have a form bean with ArrayList properties to populate a <html:select> field. I am able to submit that form successfully.

The same approach when i used in another form bean with an ArrayList property to populate a <html:select> and submit the form, its throwing the BeanUtil.populate() error.

What could be the reason???
16 years ago
Continuation of previous post: Below is the exception stack trace...

javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
16 years ago
Hi,

I have a struts form bean with set of String properties and a value DataBean(POJO). I included this data-bean in my form-bean to populate some business info. I was successful in loading the form with the info from the business data-bean. But when I try to submit the form, it throws error in BeanUtil opulate().

I know this is because of that data-bean being unable to be populated by the html:form, due to type mismatch. I saw in Struts FAQ about this - it suggested to use all properties as Strings.

I need your idea as "How we can successfully submit the jsp form(struts form) which has a value DataBean as property?"

Please help.

Thanks,
Ganesh
16 years ago
Dude,

If you remember, I just spoke to you over phone few minutes back. Now tell me how we can transact. In this post, I specifically mentioned Bangalore people, since the transaction can be done in person.
You being in Hyd, how you think you want to sell that to me in Person...?

If you are okay to send the voucher 1st, I can promise you of the payment honestly...Let me know...

Ganesh
Hi,

If any one from BANGALORE is selling SCJP voucher, you can reach me on 99805 24881. I am from Bangalore, looking to buy a voucher...

Thanks,
Ganesh
Hi People,

Please let me know if Assertion topic is included in SCJP-5 ???

1 more question wrt Whizlabs simulator: The trial version had expert level questions in it. Will the real exam SCJP-5 follow the same pattern?

People cleared SCJP-5 recently, please answer my 2nd question.

Thanks,
Ganesh
I have a situation where the page has a table sreucture of text-box 2D array. The page must allow dynamic addition/removal of rows.

This is typically a kind of 2D element-array, which is array of text-boxes.

In struts, how this situation can be handled to retrieve data from form - where the rows are dynamic.

how action-form can be built to capture the data from the 2D text-box array?

Please help.
16 years ago
Hi,

I want to create an array-of-elements (textboxes) for which i want to include the text tag in an iterator which will produce an array-of-textboxes in my form.

Is there any optimal way to do this? How logic:iterate can be used here without a collection attribute? Please help.

Ganesh
16 years ago