Rebecca Green

Greenhorn
+ Follow
since Dec 25, 2009
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 Rebecca Green

Hi All,

I am implementing the jQuery Easy UI plugin for checkbox tree. I am having a problem while loading the node data from my action class. The url property does not seem to accept the parameters -

If i give i'm able to get the data. But if I give

my action class is not able to get the nodeId parameter.
Any solution?
It is very much relevant to Vijay Tidake's post. I came up with this doubt after reading Vijay's post.

Vijitha Kumara wrote:Hi Rebecca Green,

Is your question is same as Vijay Tidake's? If not please create new thread for yours'.

@Vijay Tidake, Your code shows how to create dynamic tables, but once these tables are created, how will i access them, I mean i need to create hbm files and also, i should include it in the hibernate.cfg file. How will I do that?

Vijay Tidake wrote:Hi,

I'm following may be one way to create the table at run time using hibernate.



Hope this helps
Thanks

I am trying to display a table using Display tag. I am confused with the naming conventions. Can anyone explain in detail what 'name' and 'requestURI' should be set to...??

I know that requestURI should contain the path to my action class. But how am I supposed to mention it...?? Should I write it in struts.xml...?? Actual path to my action class is com.proj.action.CarDetails- how should i write this in 'requestURI'...??

In my action class, I'm fetching data and storing it in a List called cars. Should I place this in a session...?? I did read a lot of posts about the display tag, but am still confused about 'name' and requestURI'. Please explain.
13 years ago
I am trying to delete a user record using Hibernate query. Deletion should occur based on user_id. But an SQLGrammarException is thrown.

My actual query is :

I even removed the quotes for selId, but still its the same.
Here is the stacktrace:
I found the solution... rather simple one ;)
I just retrieved the multiple select values into a string array using getParameterValues and used another string array to store all these values (comma seperated). I then inserted this string into the database.
Can you give the exact query ?
I am using it in a JSP page... so thought I might tel it here...
Hi,

I want to know whether there is any mysql query to insert mulitple values taken from a jsp page... (Languages known : English, Spanish) into a single column. I mean, how do i insert both these values into the Language column in the database ?

Can anyone tell me the answer?
Problem solved!! Thanks Anusha!!
The problem was a small one. I had to place the <form> tag inside the while loop and thats it



This was the change made. If anyone wants teh complete code, feel free to PM me.
14 years ago
JSP
I sent it to the mail id mentioned in your profile... is that correct...??
14 years ago
JSP
Sure... will send it right away

Thanks
14 years ago
JSP

anusha chaitanya wrote:And one more thing is I think you are selecting multiple checkboxes and clicking the delete button. If I am right, then for that kind of job this logic is not correct. Use this one.



I tried this... now i'm getting "java.lang.NullPointerException " once i click on the delete button
14 years ago
JSP
Its not placed peoperly??
Can you elaborate it a little more...??

And the 'else' part is displaying once i click on the 'Delete' button... i mean, "Error while deleting" is being displayed.
14 years ago
JSP
I finished the first part of the assignment... the add option... thanks guys
Your answers helped a lot. But I still need to do a lot of work and add a 2 more options - Modify and Delete. I did that to some extent, but its not working!
I will paste my code here. please tell me where the error might be...
I have taken a seperate servletfor deleting called DeleteDb.
I have placed a 'Delete' button in the jsp page which is used to retrieve the table from the database.

In the jsp page, I have added checkboxes and have placed a delete button such that upon clicking, it goes to the DeleteDB servlet :



Here is the DeleteDB servlet code :


please point out what might have gone wrong. Also, what all changes shoyld I make to this code in order to implement 'Modify' option...

Thanks
14 years ago
JSP

Sebastian Janisch wrote:How exactly are you supposed to solve your task ?

The general approach is to have a servlet do the work (your fields go into a java bean) and the JSP only display the results.



Yeah... I also need to have a servlet which does the work...
And I am going through several examples but have not started to write anything...
14 years ago
JSP