dhaval tamboli

Greenhorn
+ Follow
since Aug 02, 2010
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 dhaval tamboli

Just for others to make it work.. use one space before \t.
e.g.

10 years ago
Hi Guys,

I am not able to find out workaround of this issue.
Here is the case.
I am having hibernate xml mapping files for my tables.
I can add one-to-many relation in mapping and it works fine, but getting problem when child table has another one to many relationship.
e.g.
Segment is parent table and it has country as a child table. so i join country as


Everything is defined and its working fine here.
but now country table has a child table of states (with one to many relationship) so at com.bhn.service.segment.Country table i have list of states
and in country.hbm.xml file , I define it as



but I guess till country_id gets inserted, it tries to save state and throws error that Null value found in Not null column.
Not sure how to implement this.. after this I have cities table also as child of state with one to many relationship, so i m not sure how to implement this.

Thanks in advance


Thanks for your reply Fatih.
I can see class using that query. and yes I am using SQL Developer.
I feel Oracle JVM is giving me trouble. I'm not sure if we are allowed to change java.home for oracle or if we can include few jar files in oracle jvm classpath.
Actually it's not my class who is giving me problem. I am trying to decrypt database data which calls different provider jar files to create session with them.
to create a session with provider, I need to add few files into classpath and need to change java security policy files.

e.g. in normal jdk. I need to add jar files at jdk/jre/lib/ext dir and change local_policy.jar and us_export_policy.jar files at jdk/jre/lib/security.
but I am not sure how can I do that for oracle jvm.
12 years ago
Hi,

I am trying to run one stored java procedure from oracle client. For that I must need to access few java classes from different jar files.
so I loaded my java classes and loaded jar files also. but classes in jar files loaded with some wiered name in oracle.
e.g. if class is com.temp.create.checkProvider, then in oracle it's loaded as '/1000ed42_checkProvider'.. I don't know why that.

so, I thought to include those jar files in jvm classpath. but as it's using database server java.home. java.class.path is null even if on database server i included those jar files in classpath.
now, without setting classpath for oracle client, I am not able to go ahead with my java procedure.

I tried to set classpath using my java program using systemProperty but I figured it won't be applied as classpath is applied at jvm startup. so I am not sure, what to do now.

Pleases let me know if anybody knows anything..

Thanks
12 years ago
you are right, that file was on client machine. I added it on database server.

Thanks
12 years ago
Disregrad dbuser in giving grants.
I used ORIGDV85B only
12 years ago
Hi Guys,

May be I am making stupid fundamental mistake, but I am not able to figure out, what!!

Let me tel you briefly, What I am trying to do.

I loaded few jar files to oracle using loadjava and created one java class, to call one class(which is in jar file) and get the result.
now, that class(jar one) calls one file on disk (which is hardcoded) and depending on that it performs operation.

Firstly, I got this error (which is expected).



After that I gave grant using



so now, it should work, but now I am getting this error



Actually, It's not able to find file, but I am 100% sure I have provided right file name and path.
So I am not sure why this error!!

By the way, my oracle is at /opt/oracle11

I am not sure, what I am doing regarding giving grant is correct or not, but I verified grant by
And I can see it's enabled..

Let me know, if i am wrong somewhere

Thanks
12 years ago
yeah, i need to keep jstl1.0
servlet:2.3 and jsp:1.2
12 years ago
JSP
How would I know, which is compatible version of jstl? i'm using JRun4 as server
12 years ago
JSP
Hi,

It seems very stupid and annoying error I am getting.
I have one jsp page which already uses jstl.

now if i add any new jstl variable or new condition. whole layout of jsp page gets mess.
I'm using jstl1.0.

I'm not sure what might be the problem and what may cause it. e.g. adding messes my jsp page.
did anybody face this kind of problem?
12 years ago
JSP
Hi Ankit,

I know I am doing right, but I am not able to get anything in jsp. However I tried to see in action class if I am loading it right or if there is any other problem but there I can see each elements in order by get methods.

Here in JSP page, I tried to see its size but even that also not showing anything.

I tried

but still nothing. I dont know what to do next
please help me

Thanks
Dhaval
13 years ago
Hi,

I am using struts2.

My design is like I have Araaylist which has another arraylist in it.

i.e.
In My action class I do have



and GenericModel contains



and OptionModel contains



I have eneterd all information correctly but I am not able to show them on JSP in way I want.

my JSP Page contains



I want to show all information contained in previewList, I can see Question_Name and other but I am not sure how to access information from OptionModel list.
Above code is not working (just the oList part) I am not able to see its contents.

please give your thoughts to solve my problem

Thanks,
Dhaval

13 years ago
Hi,

I am using struts2.
Actually I am stuck at one point. I do have one form and there are 3 submit calls in same form. In last submit call, I am inserting record in database but to know which one is final submit, I need to pass some flag saying that this is final submit.

so, I though to set parameter in jsp page (when last submit pressed) and trying to get parameter in action class but it says null. so, I am confused to do what next.

Here, is my code and also if there is any other method doing so then please let me know.




Thanks
Dhaval
13 years ago
Hi,

I got your point but I dont know how to see generated html code and also I am confused regarding fetching combobox's value in javascript.

Thanks
13 years ago
HI, I think my problem is total different.

I am posting whole jsp page as such it will extend once I can find combobox's selected value.

13 years ago