Rosu Thomas

Greenhorn
+ Follow
since Jun 19, 2012
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 Rosu Thomas

HI,
thanks for responding to my query.actually i don't want to convert my data to hex.i just want to store it in my column of type BINARY(3).
for example,i am getting "23" from my textbox..and i want to store it in my key-id column of type BINARY(3) as 23 itself..i am using preparedstatement for inserting it in my table.
please revert ASAP.
thanks in advance
4 years ago
hi ,
i am getting a string "0x01" from textbox of my jsp page.i want to store it in my table as binary.how to do this using preparedstatement of mysql. Also like this i need to store binary of variable length in my table.please give me a solution.
thanks in advance
4 years ago
hi.................
i got solution..............
<s:div cssClass="mrc_trdt"><s:property value="u.unit_of_measure"/></s:div>
just call attribute of UOM class using instance of UOM in itemmaster class...................
hope you understood what i meant...........
thanks a lot for helping me.....see you soon..
5 years ago

Rosu Thomas wrote:hi,
here is the modified code as you suggested.......thanks for your reply.....................

i am using struts2 integrated with hibernate.i have an itemmaster class with itemuom attribute as foriegn key from UOM master class.
here is my classes.



ITEMMASTER CLASS

UOM

JSP page



ACTION class


controller class


i want to display all the fields of itemmaster in JSP page.....but i am able to display all the fields except item_UOM which is foreign key from UOM .also please note that item_UOM is a join cloumn(no getters and setters in itemmaster)
please give me a solution ASAP

5 years ago
please reply ASAp................................................i need to get the value of my join column(item_UOM). when im using getU() im getting an object as org.Model.UOM@155994c......im not able to convert that into String..........please help me.................................................................thanks in advance
5 years ago
hi,

i am using struts2 integrated with hibernate.i have an itemmaster class with itemuom attribute as foriegn key from UOM master class.
here is my classes.



ITEMMASTER CLASS

UOM

JSP page



ACTION class


controller class


i want to display all the fields of itemmaster in JSP page.....but i am able to display all the fields except item_UOM which is foreign key from UOM .also please note that item_UOM is a join cloumn(no getters and setters in itemmaster)
please give me a solution ASAP
5 years ago
hi
i am using @tablegenerator annotation for sequential generation of my primary key...i am using MySQL innodb engine........the problem is even if i set initial value = 1000 and allocation size = 100 i am getting id starting from 1,2,3...also next high value as 1.....please help me to find out whats the problem.
thanks and regards
whenever user take a deal from my site, i want to send him a mail with pdf file (coupon) in embedded form .......so that he can take print of the mail instead of downloading my attachment.....................this is my requirement......sorry for my bad English............
thanks in advance
5 years ago
hi
is it possible to embbed a pdf file in message body of email?(not as attachment)with apache commons or in any way? i don't want to convert my pdf image to any other format(. jpeg/any)

please help me........
thanks in advance..........
5 years ago
hi thanks for helping me................i got it.................hibernate 3.5 and above only support hibernate validations...................................................have a great day
hi,

i tried like this

@Min(0)
@Max(2)
public int getGi_qa_status() {
return gi_qa_status;
}
public void setGi_qa_status(int gi_qa_status) {
this.gi_qa_status = gi_qa_status;
}

but still that column is accepting numbers not within that range..i tried @ not null annotation also............that also not working.........................i am using java version 6...and added following jar file.......hibernate-validator-4.1.0.Final

please help me :'(
hi

i need to set a check constraint for my column (such as.order_status must be either 0 or 1.).........it should give error message if i enter any other integer...
i am new to hibernate with jpa.............so please help me asap..............

thanks in advance
thank you all...........logout problem solved.........thanks to coderanch
5 years ago
JSP
yes i did like that.....that is ok now.......but now the problem is when i click back button after logout, its loading from browser cache..my page is not loading.......i tried setting header but its not working .....please help me...........
5 years ago
JSP