Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Ishitha Dyanil

Greenhorn
+ Follow
since Jan 18, 2012
Ishitha likes ...
Hibernate Eclipse IDE Java
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 Ishitha Dyanil

can you tell me the solution..How to get the submit value without null?
8 years ago
JSP
I tried to put all lower case letters but still same problem,
submit is giving null value.
Can any one solve my problem so that i can go forward.

8 years ago
JSP


Hi,

I'm new to jsp and java world,
here I'm trying to use some form and getting those parameters and I'm using simple logic that if the submit values are null send that to again same page rytelse
printing the values.
But the problem is getting evey time submit value null.
tried with hidden value but not worked for the logic.

So can anyone help me please,how to get the values of type=submit...



8 years ago
JSP
Hi,

I downloaded newer version of Tomcat 7 and I deployed my application folder in it.
and I started the tomcat.
I saying like this.



so what is the problem with my deployment folder.
my folder structure is

C:\Users\Krishna\Desktop\JAVA\Tomcat7\apache-tomcat-7.0.25\webapps\Sessions\com\example\
has only one file

FSession.java



C:\Users\Krishna\Desktop\JAVA\Sessions\WEB-INF\classes\com\example
has .class

and my web.xml is here
C:\Users\Krishna\Desktop\JAVA\Sessions\WEB-INF



what is wrong with my deployement.Did i make any mistake in it..which I am not identifying!

can any one solve this for me please...

8 years ago
I deployed the same way that has explained in the Head First Servlets&Jsp book.
I followed the .do of my form ie .html to match in the web.xml and I also the servlets to match up.
so my deploying directory is in tomcat as I shown in my last post.

So am I correct for deploying? or there is another way?
Can you please tell me.
8 years ago
Thanks for replying...Sure..
My Application directory is :

C:\Users\Krishna\Desktop\JAVA\Tomcat7\apache-tomcat-7.0.23\webapps\Sevlets-Practice

and

all servlets are here

C:\Users\Krishna\Desktop\JAVA\Tomcat7\apache-tomcat-7.0.23\webapps\Sevlets-Practice\com\example

and

classes are here

C:\Users\Krishna\Desktop\JAVA\Tomcat7\apache-tomcat-7.0.23\webapps\Sevlets-Practice\WEB-INF\classes\com\example

and my forms are here

C:\Users\Krishna\Desktop\JAVA\Tomcat7\apache-tomcat-7.0.23\webapps\Sevlets-Practice

and my web.xml is




Upto cookies it worked well.I mean container did recognize my folder when I tried to run session..It stopped to identify my folder and when I am trying to run older simple servlet,then also it is not identifying my folder.
I'm using Internet explorer.
Can you please tell me what couble the problem?
8 years ago
Hi,

I'm new to servlets and I'm running servlets using tomcat.
I installed tomcat new version tomcat 7.0.23. I did run some servlets using tomcat they did work well..I did tried some examples on servlets using cookies and some basics.
They all worked well using same tomcat..
Now I'm trying to work on sessions..topic..I wrote simple session program.Followed same directory..deployed..in web.xml.Everything fine in Deploying..
When I'm opening them in the browser using the container of tomcat..It is not recognizing my application directory.
but tomcat is working well and good..

So I don't understand what is the problem with my directory.Upto some applications it worked well..and try to run same old servlets It is not recoginizing!!giving 404 error..!!


can any one help me please...


Thanks!!
8 years ago
Thank you so much..My eye gone blind..!!
8 years ago
Hi,
I am trying to compile the BeerSelect.java
I am getting an error saying


com\example\web\BeerSelect.java:32: error: cannot find symbol
request.setAtrribute("styles",result);
^
symbol: method setAtrribute(String,List)
location: variable request of type HttpServletRequest
Note: com\example\web\BeerExpert.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error


here is the BeerSelect.java



can you tell me the solution please..

8 years ago
Wow...!!!
Amazing...It worked ..I set *.java It compiled and I can see BeerSelect.class in my folder...

Thank you so...much...

I want to know the reason..what is the reason it is taking all *.java ..but not simply..BeerSelect.java..
Can you please explain me.
8 years ago
Hi,
I am new to servlets and I am learning servlets from Head First servlets and Jsp.
I am trying to compile BeerSelect.java file and It is giving error cannot find the BeerExpert.java. I followed total structure and set all the class paths.
I even followed the post in coderanch that some one asked before.I did everything.
I did try to complie the file from src directory and I also set the classpath for BeerExpert.java also.
here it is.

C:\Users\Krishna\Desktop\JAVA\beerV1\src>javac -classpath C:\Users\Krishna\Deskt
op\JAVA\Tomcat7\apache-tomcat-7.0.23\lib\servlet-api.jar;C:\Users\Krishna\Deskto
p\JAVA\beerV1\src\com\example\web\BeerExpert.class com\example\web\BeerSelect.ja
va

com\example\web\BeerSelect.java:3: error: cannot find symbol
import com.example.web.BeerExpert;
^
symbol: class BeerExpert
location: package com.example.web
com\example\web\BeerSelect.java:23: error: cannot find symbol
BeerExpert be=new BeerExpert();
^
symbol: class BeerExpert
location: class BeerSelect
com\example\web\BeerSelect.java:23: error: cannot find symbol
BeerExpert be=new BeerExpert();
^
symbol: class BeerExpert
location: class BeerSelect
3 errors

I put both files in same directory and I did everything.
BeerExpert.java compiles good but BeerSelect is not recognizing BeerExpert even though keeping in the same directory ..setting tha classpath...compiling from src...

please can any one help me on this..please..

Thanks!
8 years ago
Hi,
I'am also getting same problem,even though compiling in the same folder.
Can any one tell me the reason.
8 years ago