Vrushali Gore

Ranch Hand
+ Follow
since Oct 17, 2005
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
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Vrushali Gore

I am using JavaScript to fill in elements in list on the page. My code adds all options properly to list. But when i view the new page it is by default selecting all the options in list. Wherein none of the option should be selected. Is there any solution to this problem? Is there any property to be set that will deselect all the options?

Thanks in advance.
10 years ago
I m updating bulk number of rows with Hibernate. Thats why I first tried using createSQLQuery() method for Native SQL update. But then it says that Update is supported via HQL only.

So i tried that also where I used createQuery method to go for HQL bulk update operation. Then getting ERROR as document not mapped. Can anybody please help me in sorting out this issue.
(Using postgres db)


Thanks in advance
I guess the problem is still not clear. I have a JSP from which image is generated. Here what i m doing as i don't want to regenerate request for JSP transferring the control to servlet via src atttibute and generating response. So response i.e. image which is generated is automatically printed on JSP as it is source for that image. But when i m working in servlet that time setting some values in session which i want in JSP when i come back.

Thanks in adv.
10 years ago
JSP
See i m having one JSP. From there request is given as src attribute of img to servlet. Where i m setting few values in session and a response generated goes back to JSP(Here i m not generating any request for that JSP as i dont want to reload that JSP, just want to reload that image) where i m interested in values those i have set in servlet session.

But here i get the values those i have set up in previous session.
10 years ago
JSP
I m having one servlet. There is session and i m setting some attributes and as a output it goes to JSP. Here i m not requesting to JSP. So whatever attributes i have set there not getting in JSP. When i give next request for the servlet that time when i generate the output in JSP it gives me back the values. It menas it gives me the values those were there in previous session.

How can i get the values in that session session only.

Thanks in advance.
10 years ago
JSP
Wanted to know how to place arrows dynamically at any position in HTML page. Can i change angles of arrow representations? Or i have to go with those many Arrow images with various inclinations

Thanks in advance
When i make use of MVC pattern for my J2EE application development, then i have to write if-else blocking in Controller Servlet. How we can avoid writting this? Is there any pattern available to avoid this?
10 years ago
Need a help on this topic.

Suppose i have to declare List using Generics how i will declare is -

List<Object> myList = new ArrayList<Object>();

Why it can't be like this?

List<Object> myList = new ArrayList<Emp>();
OR
List<Emp> myList = new ArrayList<Object>();

Emp is my defined class.

Thanks in advance.
10 years ago
Thanks.

But when i am executing batch updates then even if i have not said commit() it is committing the changes to DB(Oracle) even if the setAutoCommit() is set to false.

I didnt get this how this is happening?

Thanks once again.
I am making use of Oracle and Type-IV driver.
When i am trying to perform any operation on scrollable and updatable resultset I am getting SQLException saying resultset exhausted. When exactly this exception comes?

Do queries in batch updates are automatically committed even if setAutoCommit() is set to false. Do it won't be taking any effect on batch updates?
Hi all

Can anyone help me in knowing what exectly we do when we specify url-pattern as *.do? What that do indiactes? Does it mean that struts framework gives .do extension by default to every page?

Thanks in advance.
10 years ago
Line no 35 is -

I guess there is some problem with execution of select query only. Because this problem is there for select query only.

rs = st.executeQuery(sql);
10 years ago
This is all code that i am having in doGet method. If i replace with insert query it works fine. It gives only problem if i fire query directly from doGet() method. This happens only for select query.

Thanks.
[ February 28, 2007: Message edited by: Ben Souther ]
10 years ago
When i fire a select query in doGet method of servlet is gives me this error. If i change the query with insert query it works perfectly fine. What is the problem query and servlet. Even if i put it in class and then invoke from the servlet even it works fine. Only problem is when i try to do it from direct servlet.

Using weblogic6.1 to deploy my servlets.


java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1],
[0], [], [], [], [], [], []

at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:889)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.jav
a:1681)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1870)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:
538)
at SelectQ.doGet(SelectQ.java:35)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:265)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:200)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:2495)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Inside SQLException.....

Thanks in advance.
10 years ago