Win a copy of Rust Web Development this week in the Other Languages forum!

Neha Deshmukh

Ranch Hand
+ Follow
since Apr 04, 2007
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 Neha Deshmukh

Hello,

I am developing 1 web application for which I need to call some functions in .java file from .jsp file. I tried <%@page import="mypackage.myclass" %> but its saying ClassNotFound Exception.

Some details of application are:
I am using Weblogic 9.2.

I am deploying myjsp.jsp in \bea\weblogic92\samples\server\examples\build\mainWebApp\Trial\myjsp.jsp

.java file in

\bea\weblogic92\samples\server\examples\build\mainWebApp\Trial\mypackage

compiling this file as package (i.e. using javac -d ).
While compiling I am giving .class file to be generated in \bea\weblogic92\samples\server\examples\build\mainWebApp\WEB-INF\classes\mypackage\

Is this approch correct? as I am getting:

Error 500--Internal Server Error

java.lang.NoClassDefFoundError: mypackage/myclass

Please help me as soon as poosible.

Thanks.
11 years ago
JSP
Hi,

Is anybody having source code for Apriori algorithm?
If yes Please share it.
11 years ago
Hello All,

I am developing an application in which I am sending a ResultSet from servlet to jsp page. ResultSet contains result of "select" query and I wanted to dispaly the output of this query in jsp page in table format.
In servlet the output of query is stored in ArrayList and I am sending this ArrayList using <jsp:forward page > tag.
In my jsp page I am getting ResultSet result using request.getParameter("param1").
Now I wanted to convert this request.getParameter("param1") to ArrayList and get its Attribute.
Can Anybody tell me how to achieve this?

Code for reference:





when I am printing values in JSP page using out.println(request.getParameter("param1")); are

[{STATUS=open, FUNCTIONAL_AREA=IT-Software, COMPANYNAME=TCS, JOBLOC=Pune, SALARY=5000, CONTACT_NO=1238, EMAIL=n@tcs.com, WORK_EXP=4, SKILL_SET=Java, COMPANYLOC=Pune}, {STATUS=Open, FUNCTIONAL_AREA=IT Software, COMPANYNAME=tcs, JOBLOC=pune, SALARY=4000, CONTACT_NO=12345, EMAIL=np@gmail.com, WORK_EXP=7, SKILL_SET=Java,J2EE, COMPANYLOC=pune}, {STATUS=open, FUNCTIONAL_AREA=IT-Software, COMPANYNAME=TCS, JOBLOC=Pune, SALARY=5000, CONTACT_NO=1238, EMAIL=p@tcs.com, WORK_EXP=4, SKILL_SET=Java, COMPANYLOC=Pune}]

Can anybody tell me How to extract values from this output and show it in table format?
11 years ago
JSP
Hey Jan,

Here are answers:

do you connect to the same database with 'JDBC' and with 'database directly'?

Yes

do you use the same user in both situations?
Yes
- can you show us the exact query you used in 'database directly'?
select * from userinfo where email='nehad@gmail.com'
- can you output the value of strQuery , and show it to us?
select * from userinfo where email='nehad@gmail.com'
- can you run this query from your code and see if that gives the same error (without the where clause ): "select * from userinfo"
I tried with select * from userinfo but same error

PS: I wrote another select query for same application but in other java file for same database as follows. This code is working fine.
Hello,

I am developing one project in which I need to connect to Oracle 10g thr JDBC.
And then querying the database through java code.
My java code for executing select query is:


but I am getting following error.
PS: When I tried to fire this query in database directly its giving me proper reslut.

Can anybody please help me to solve this problem.

java.sql.SQLException: ORA-00942: table or view does not exist

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:207)
at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:
790)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStateme
nt.java:1037)
at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.jav
a:830)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
nt.java:1132)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:
1272)
at jsp_servlet._jobportal.__saveuser._jspService(__saveuser.java:275)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run
(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
tyHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
a:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:3244)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS
ervletContext.java:2010)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC
ontext.java:1916)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j
ava:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

Hello,

I need to download latest version of bea weblogic. can anybody tell me from which site can I download the same for free of cost ASAP.

11 years ago
Thanks Jan for your reply.
I really appreciate your concern.
I post this message because I was not able to think how to design.
I guess people post on this site only after they are unable to fix their approch.
I hope you understand my situation.
Once again Thanks for your concern.
Keep smiling.
11 years ago
Hello,

I need to develope a "Job Portal" project as my assignment.I need to use SQL/Oracle as DB
Can anybody help me in this task?
Hello All,

In my academics I need to develope a "Job Portal" project with SQL/Oracle as Database.
Can anybody help me designing this project?
11 years ago
Hi,
I am facing problem in opening a open dialogbox to open a .csv file..
So provide me any API or some that can help me out.
Thanks in Advance.

Neha
13 years ago
Hi ,
In my application agent has got mail in his inbox.It has content type as HTML.
Now while replying to that mail I have added some tags ex. <mytag>MY TAG </mytag> in the mail.
I want this tag to be preserved as it is and content type of whole mail should be TEXT.
How to do this?
Can anybody help ma as early as possible?
14 years ago
Hi,
When I am trying to run typeperf through runtime.exec() it is giving error -
ejava.io.IOException: Cannot run program "typeperf": CreateProcess error=2, The
system cannot find the file specified.
I guess typeperf is not available on machine so can you suggest how to download or use it?
14 years ago
Hi,
Can you please tell me how to typeperf throght Runtime.exec.
I really don't know how to use Runtime.exec and typeperf so can you please help me in this matter?
14 years ago
Hi,
I want to read CPU Usage percentage from task manager in a file.
Can anybody tell me can we do this and if yes how to do this?
14 years ago
Hi,
I am facing problem while displaying the table format data in Jasper

I am sending a mail which has table in it to my agent.
When I run that report the resilt produced is not in table format.
For example
Data in mail is:
User Account Address
-------------------------
A ICICI Pune
-------------------------
B HDFC Pune
------------------------
C HSBC Mumbai
--------------------------
D ICICI Mumbai
------------------------

The data while running report(For which I am using Jasper) is:


User
Account
Address

A
ICICI
Pune

B
HDFC
Pune

C
HSBC
Mumbai

D
ICICI
Mumbai

E
ICICI
Pune

Can anybody help me solving this problem ASAP?
14 years ago