Nandita Tiwari

Ranch Hand
+ Follow
since Aug 18, 2012
Nandita likes ...
Java Netbeans IDE Oracle
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nandita Tiwari

actually the problem is..
I'm getting an 404 error on URL -- http://localhost:8084/InstrumentLayout/JSP/login.jsp

here, InstrumentLayout is my webapp.
And here, is my form action, <form name="loginform" method="post" action="/InstrumentLayout/login" >

and here is my web.xml

<servlet-mapping>
<servlet-name>LoginServlet</servlet-name>
<url-pattern>/login</url-pattern>
</servlet-mapping>

Where am I going wrong?
5 years ago
context path?
5 years ago
What path should I give in the action attribute of form tag?
1. If I want to hard code it
2. How to go about it using web.xml?
5 years ago
Thanks Bear, Lot more to learn.
:)
5 years ago
JSP
I'm trying to pass an arraylist from servlet to jsp. I want to print items from this arraylist in <input> tag.



How is the syntax supposed to work here? My IDE is showing an error at this one? I'm new to this, how does the syntax actually work? :confused:
5 years ago
JSP
Thanks Bear, .
Finally All I want to know is, if I send a array or a arraylist to my xyz.jsp (containing all cell values of my excel sheet). How do I segregate this one single object into my original single cell values and display it?
5 years ago
Alright, I'm new to this concept. There is one more doubt I have that is, do sendRedirect() method just sends you to the next page or It can send data from abc.java to xyz.jsp?
How do I send data from abc.java to xyz.jsp? Also I don't just wanna display it, but display it in tabular format. So, where do I do all the formatting of the data? On abc.java or xyz.jsp?
5 years ago
I have a servlet, data from this abc.java servlet is extracted from abc.jsp. This data is worked upon and sent to xyz.jsp to display it to the client. From xyz.jsp the data is sent to a servlet to insert it into a database to store.

What should I use in abc.java? RequestDispatcher or ReDirect?? If it requestDispatcher then forward or include??
5 years ago
Ok, then how am I suppose to obtain and use these contents?
5 years ago
Any idea on how am I suppose to upload the file? I think the option of obtaining the file path is closed then, right?
5 years ago
Any idea on what changes should I make? I want to upload the file on my servlet, work on it and display it on another JSP.
5 years ago
I have given <input type="file"> tag in my .jsp page. I want to send the filepath to my servlet. Any idea how it is done?
I'm getting the filepath as ---> C:\fakepath\filename

Please help guys.
5 years ago


I got this code from my friend. Can someone please help me in understanding how this while loop is working?
Here I'm trying to upload a file and write it's content in my JSP. Here's my code :

Here my string file appears to be empty. Can someone please tell me where am I going wrong?
Because while debugging I can see the file being uploaded to the servlet but I'm unable to retrieve contents of the file. Please help.


Here, I'm done with my web.xml file and I don't want to hard code the path. How am I supposed to go about it.
5 years ago
JSP