Nitin Belaram

Ranch Hand
+ Follow
since Mar 24, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Nitin Belaram

Where does PDf report file is view, Does the output display in PDF file.

What to do if resultset reurturn more then one row.,Then how to dispaly them in table
15 years ago

Hi,

Please explain


1: How you are getting values for various report in dao from query resultset
2: How you are getting values in various heading
3: And from dao it is send to Action class.
4: Does your values are display in table
15 years ago

Maneesh Godbole wrote:Check out Jasper Reports and BIRT.
Moving to a more appropriate forum.




I want PDf by using itext only
Hi,

Can anyone please suggest how to generate itext PDf report for struts application.
Any source code example will be great.

Thanks
15 years ago
Hi,

Can anyone please suggest how to generate pDf report for java application.
Any source code example will be great.

Thanks
Hi,

Please suggest how to start working with struts,

Any tutorial or project explanation willl be great.


thanks:
15 years ago
Hi,

Please suggest how to start work using struts. I am new to struts technology.

Any document or projrct for help will be great ..

Thanks
15 years ago
Hi,

Please suggest how to start work using struts. I am new to struts technology.

Any document or projrct for help will be great ..

Thanks
15 years ago
I am updating record ,i am getting value in textfield by request.getAttribute (), but when i am using this in dropdown it is giving error

JSP code


servlet-- from where i am getting value in jsp.



Please suggest how to get value in dropdown for update



15 years ago

Shail Narkhede wrote:Nitin,

Generally this type of thing is done by considering primary key of perticular table.

While calling any updation or creation method, first we have to check that primary key,
if it is empty then call creation method and
if that key is non-empty then call updation method.

that means when you are getting the data from that table in bean you should get primary key,if you update some data & click on save than due to that primary key updation method is getting called.primary key you can populate in JSP by using hidden form feild.



My empid is primary key and i am getting it value ,Please suggest how to get all row value corresponding to this empid , and how to display them in form for updation
15 years ago
Please suggest me how to update record on basic of id in servclet and jsp
15 years ago
I had to update the record in the database ,but i am confuse how to do this.
I am getting empid in my servlet page but then i am confuse how to display record on basic of this empid in jsp page. and from there update these record .

My servlet is : UpdateServlet.java



Java page : UserUpdate.java


UserDetails.java
15 years ago

Mohamed Inayath wrote:Nitin,

Q) How can i pass value of check box from same jsp page to another servlet where i can update my record ,



Update: you to have all the values from the screen along with checkbox value to the UpdateServlet.
(Similar way you have done in Delete Servlet).

Q) How can i had two submit button on same page OR how to submit checkbox value without using submit button to servlet



Yes you can have two Submit Buttons.

Create a hidden parameter say userSelect within the form.
Set the value for userSelect when the user selects either Delete/Update.



The JSP page code is fetching the record from database and displaying them in table, from where i can either delete the record or update them on the basic of checkbox.
Delete is working fine as i had define input type submit and form action as delete servlet.

But how can i update the record, on click of a button i want to pass empid to my servlet where i can call my update method defined in controller servlet.

Q) how does hidden parameter will work

Without submit button; tell me at what user event you want to pass the values of the screen to servlet.

15 years ago
I had a jsp page in which i had two button delete and update ,
The user select checkbox and after clicking delete button record are deleted from database for which i had defined servlet which is working fine it is getting value of check box as i had define form action to call delete servlet. the input type of delete button is submit.

Q) How can i pass value of check box from same jsp page to another servlet where i can update my record ,
Q) How can i had two submit button on same page OR how to submit checkbox value without using submit button to servlet

My JSP code
15 years ago
I am using eclipse editor and tomcat , it was giving some error after which i reinstall eclipse and tomcat ,

But now i am getting this error


Target runtime Apache Tomcat v5.5 is not defined.
15 years ago