yugandhar reddy

Greenhorn
+ Follow
since Oct 31, 2008
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 yugandhar reddy

now i got the point. thanks william
11 years ago
JSP
can i use something like this?

<%String user_name = DBClass.getUserName();
session.setAttribute("user_name", user_name);%>

As the user doesn't close the browser the session will be same i think

and using the dispatcher i can switch to other application. am i right?


11 years ago
JSP
these applications are totally different so we have deployed them as a different applications
all they need is the user who has logged in. From one application we want to take the user
to other application(is this possible?) and also share information like user_name.
so my question is can we take the user from one application to other(same server) and can
we send the infomation also?

thanks for replying me "Bear Bibeault" and "William Brogden"
11 years ago
JSP
hi guys,

I am new to web applications and i think i am at the right place to clear my doubts.

ok.. I have three applications deployed in tomcat and I have the requirement that I need to
pass data like "user_name" from one application to the other application. These three applications are sitting
in the same tomcat server. how can i send data to other applications sitting in the same server? Is that
do i need to use request or response. please a little bit of code response will help me a lot.

thanks

11 years ago
JSP
Hi ,
We have deployed our applcation on tomcat server built on servlets and jsp.

We have also set the domain name and are redirecting the domain name to Static Ip where our application.

Everything is working fine in Firefox.But in IE6 and IE7 we are facing issues related to sessions.

Example:
it works when we access directly
http://143.21.14.75:8080/myapp

previously we were using response.sendRedirect() now that is changed to
request.getRequestDispatcher().forward() and the application is working fine
but when i hit refresh it takes me to the index(login) page.
I see in my browser address bar that mydomain.com is only visible even when
I visit different pages(it doesn't show mydomain.com/support.jsp or mydomain.com/careers.jsp)

the company who redirect to our static IP use frames as show below
<html>
<head>
</head>
<frameset border="0" rows="100%,*">
<frame frameborder="0" src="http://143.21.14.75:8080/myapp">;
</frame>
<frame noresize="" frameborder="0">
</frame>
</frameset>
</html>

i hit refresh at resource.jsp and i see in the status bar http://143.21.14.75:8080/myapp/? and finally the index(login.jsp) page
is viewed.

I am unable to take my application live because of this issue.

Please help me to solve. Thankyou for your time and consideration
11 years ago
if i rightclick and do refresh i am in that same page but if i press refresh
that goes to the index page. I am using request.forward() in the servlets.
In the address bar I see xxxx.com is constant it is not changing. Suppose
I login and go to resources.jsp the address bar is not showing xxxx.com/resources.jsp but I see that in other sites.

why when i visit all the pages xxxx.com is constant at the address bar?
can anybody help this?
I have simple application using jsp and servlets. someother company redirects to my server if any request is there. The user type xxxx.com at his browser the request goes to someother company who is using a frameset as
below and displays every page in this format.
<html>
<head>
</head>
<frameset border="0" rows="100%,*">
<frame frameborder="0" src="http://myIP:tomcatPort/myfolder/?">;
</frame>
<frame noresize="" frameborder="0">
</frame>
</frameset>
</html>

Now I am able to login and surf the pages but if I press refresh button(browser IE) at any page the index page(login page) is viewed again. Again i need to provide user name and password to login.
Thanks.
hey thanks detective.. seems like good names gets the correct replies. let me change my "javaRanchmaniac" to my name
I have an application that runs in my server. I registered that with the name xxxxx.com. The middle company who will redirect to my server when a request comes or somebody type xxx.com in the browser. The middle company uses frameset and displays my pages in the frame. Now when I type xxxx.com and login and when i press browser refresh at any page it is taking me to the index.html

Did anybody face this problem? Can anybody has the solution?