Venki Ananth

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

Recent posts by Venki Ananth

Hi All,

I have built an application using JSP & Servlet. I can send emails using Java MailAPI.
But i would like to call a java method to perform a database action like insert or update when a new mail arrives to a particular
email id.

For an Example, I have a mail id like "[email protected]". My java program has to listen that email id and perform
an action whenever new mail arrives to that email id.


I am using tomcat 6.0, MySQL,JSP & Servlet. Please help!

Thanks in Advance.
14 years ago
Hi all.
I found a solution . I used form.submit() script and sending hidden parameters to next page. Fine now its not visibile with url.

Thanks to all.
15 years ago
JSP
Thanks Guys!

I used " request.getQueryString()" and it worked.

Thanks for your reply guys.
15 years ago
JSP
Hi,

I am passing some parameter with url. When i try to get that in servlet its not working.
This is the exact parameter ("http://website/something%2Ftags") that i am passing with url like
"http://host:portnumber/mysite/index.jsp?url=http://website/something%2Ftags" but when i try to get this parameter in servlet its not passing in the same format.

Getting url parameter in Servelt :


but the url in servlet is passing like this "http://website/something/tags". I know jsp is changing "%2F" into "/". The problem is i dont want this change. I need the parameter as ("http://website/something%2Ftags") it is.

How can i do it?

Help guys!!!
15 years ago
JSP
Hi ankur,

Thanks! I can not use forms in my pages and also i dont want to use post method . User should click only on "hyper links" and next page should load according to the parameters.

Any ways to "rewrite URL" ?
15 years ago
JSP
Hello All,

I developed a webapplication and it is running properly. But in most of the places i used reference link like "http://host:portnumber/project/some.jsp?employee_id=123" so an end user can trace my parameter(employee_id).

But i would like to show my url without any parameter like "http://host:portnumber/project/some.jsp" in the same time i should get parameters also.

My Jsp Code:


Is there any simple way to rewrite my url?
15 years ago
JSP
Cool! Got clear idea! Thanks Sagar.
15 years ago
JSP
Thanks Sagar!

Could you please explain me little clear! What is "user"? and how can i get "user1" in my page to identify a user so i can show his/her data alone!

15 years ago
JSP
Hi all,

Is there any way to set a distinct URL for every users without making new jsp or passing a parameter(user ids) along with url.

Lets imagine this my project "http://hostname:portnumber/project". Any one can register here then i have to show the user's page like "http://hostname:portnumber/project/user1".

I tried in another way "http://hostname:portnumber/project/userpage.jsp?userid=1233" its working also. But client need distinct url what i mentioned above ("http://hostname:portnumber/project/user1").

Any idea?

Thanks in advance!
15 years ago
JSP
i would like to change url image when i run my j2ee application on tomcat6.0 server. Need help!!!
Hello all,

Can anyone explain what is major difference between JSP and JSF? why we need JSF?

Any sample application please!

16 years ago
JSF
Hi pradeepa! why did you use two different radio button names? User can select both if you did like this.

code:
--------------------------------------------------------------------------------

if((R1==Checked)&& equals("Male"))

--------------------------------------------------------------------------------

How will you check this condition before getting radio button value? check if else brace! Insane code!
16 years ago
JSP
Hi!
This is my jsp code.
<%
String id="cnd001";
out.println("<a href='ViewProfile2?applicantid=" + id+ "'>"+ id+ "</a>");
%>
When i run this jsp code it will show the direct URL with the parameter like this "http://localhost:8080/MyProject/ViewProfile2?applicantid=cnd001".
But i dont want to show my parameter (applicantid) to the user. How can i hide or encrypt that parameter! I used "first.jsp" and servlet "ViewProfile2".

Thanks in advance!
16 years ago
JSP
Hello Shanthi!

Do you have any data. Please Check your table and DB Connection! Print
rs.getString(1) and check!
Hello Joe!

Thanks for the reply! Worked well!
16 years ago