Jigar Gohil

Greenhorn
+ Follow
since Dec 04, 2008
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 Jigar Gohil

Dave Tolls wrote:When running an executable jar file the CLASSPATH environment variable is not used.
It only uses the classpath as defined in the Manifest.

And...how old is your Oracle instance?
classes12.zip has not been the driver for must be close to 15 years now.



Thanks Dave, for quick reply

Oracle 10g and classes12 works for it when I use it with independent class file. My problem is when i package that file in a jar and try to refer it from outside.

- Is there a way by which I can keep the dependent jar outside and set it in the classpath? Like here I do not want to keep the classes12 as part of my App jar and wants to refer it from outside.

Regards,
Jigar
9 years ago
Hi,
I am trying to execute a jar with classpath configuration via bat file:



-- Projects
-- Projects\run_app.bat
-- Projects\Demo-App.jar
-- Projects\lib\classes12.zip

Issue: It is not able to load the classes12.zip. I checked with -verbose. I even tried with complete path instead of relative path.

9 years ago
I suggest you read the concept of Reflection in detail... there are methods available for fetching the methods & variables...
12 years ago

Vishal Hegde wrote:
D:\ooo>javac -d .OtherClass.java




use space between "." and your java file...
Obviously ".OtherClass.java" is not a directory...
You command should be this way....

12 years ago

vivek kumar jaiswal wrote:
Update.jsp

<td>
<select id="aa">
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
</td>
[/code]



try adding "name" attribute to your select tag....
12 years ago
you can directly access session (JSP implicit Object) for accessing Http Session attributes...
12 years ago
Correct way access it is by using struts 2 property tag



12 years ago

Seetharaman Venkatasamy wrote:

Hello J World wrote:
Hi, In spite of overriding equals, why HashMap is allowing duplicate entries...?



you should override hashCode method too. because HashMap entry checks the equality of both hashCode and equals . if any one fails then HashMap add the new entry value. @see HashMap#put(K, V)

<edit> also your overridden equals method can be fragile . have a look how to override an equals method</edit>



yaa..I know i must apply instatnceof check as well...but
What about the default implementation of hashcode...?
As per my understanding it puts all the elements in a single bucket...doesn't it...?


Thanks...
12 years ago
I want to run two applications on different different ports. Can I do the same on a single instance of tomcat...???
If yes, how...?



Thanks In Advance.
(*~_~*)
13 years ago

Thank You Paul and Cameron...
First of all the reason for using triggers for id generation is... m having no. of procedures which inserts data into the tables.. its not only the application through which data is getting inserted. So, I wanted the sequences to be shared between application code and back-end procedures.

n e ways...I have applied one solution which i could think of...i.e
I have used sequence as my generator type & modified my triggers with one condition as follows:




Its simple with hibernate insert query...already there will be an id value... so no need to use the sequence again....


Any one with better solution than this would be appreciated...

Thank You, CodeRanch.



Hello All,
I have a situation in which I am having a database with one sequence & trigger per table. The trigger simply sets the Primary key of a table before inserting any record using the sequence created for that table.
Using sequence as generator type doesn't work coz of the triggers i have placed. The sequence gets incremented twice

I want that primary key to be returned while saving the object.

can anyone suggest which generator type can i use..?

Thanks in advance.
Hi all,
I am new to struts 2 n trying to use java template in struts 2 application....

refering this link of apache...n trying to use the plugin but getting following error...



can anyone tell me how to resolve it...?
14 years ago
hi...i am trying to execute the following query...



and getting following error...

org.hibernate.hql.ast.QuerySyntaxError: unexpected token: tblSuperProfMapping near line 1, column 56 [delete from com.moneymax.hibernate.TblSuperProfMapping tblSuperProfMapping where vcreatedBy='MMADMIN']


can any body tell me why am getting this error....

[ December 04, 2008: Message edited by: Jigar Gohil ]
[ December 04, 2008: Message edited by: Jigar Gohil ]