473,396 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

redirecting data from asp to jsp

1
I'm new to asp.
My requirement is:
getting the user mail id from the system and forward it to a jsp
Now i'm getting the mail id
while redirecting it to jsp i'm using

Response.Redirect("http://systemnumber:portnumber/cp/jsp/index.do?userName="&strMailID)

i'm getting strMailID from windows authentication

during the process of redirection user can change the mail id and hence can enter into the site with another user id.I have to restrict this.
how can i do it in asp?
Thanks in advance...

Regards,
ghr
Jul 16 '07 #1
2 1728
jhardman
3,406 Expert 2GB
I'm new to asp.
My requirement is:
getting the user mail id from the system and forward it to a jsp
Now i'm getting the mail id
while redirecting it to jsp i'm using

Response.Redirect("http://systemnumber:portnumber/cp/jsp/index.do?userName="&strMailID)

i'm getting strMailID from windows authentication

during the process of redirection user can change the mail id and hence can enter into the site with another user id.I have to restrict this.
how can i do it in asp?
Thanks in advance...

Regards,
ghr
The easiest way to do this is to put the data in a session-level variable.
Expand|Select|Wrap|Line Numbers
  1. session("userName") = strMailID
then this is kept with any page on your site the user visits. You could also send this data to a cookie, which the user shouldn't be able to change.

Or, if you need to submit the data, this might work.

print all the data to a form, make the fields hidden or at least read-only, then immediately submit the form, like in a onLoad attribute.

Let me know what works for you.

Jared
Jul 16 '07 #2
danp129
323 Expert 256MB
If the user doesn't need to interact with the jsp page I would use serverxmlhttp to have the webserver hosting the ASP page post the e-mail to the other page, and if neccessary read a response back to the user.

If they need to interact with the page, I'd make a private string that only the ASP and JSP file knows.. like prvKey="4klfmsmk$%#SD9_sdkl><" Then make an md5 hash of that key concatenated with the e-mail address like hash=md5(prvKey & strEmail). Then pass the e-mail and the hash from asp to jsp page. Then in the JSP page make the prvKey the same and make the hash using the same method, then compare the hash created in JSP to the hash passed from ASP to validate.


MD5 hash functions
Jul 17 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: paul koelle | last post by:
Hi list, My ultimate goal is to have a small HTTP proxy which is able to show a message specific to clients name/ip/status then handle the original request normally either by redirecting the...
3
by: nagaraj | last post by:
Hi All, Good Morning, The problem which i am facing is related with IIS 6.0 in Win2K3. The problem: I have a ASP page which redirect a zip file which resides in
3
by: lozd | last post by:
Would appreciate any solutions people could offer for this. Basically I wan't to use a frameset with an aspx page as the contents rather than a htm page and I'd like to be able to redirect the...
15
by: Matt Burland | last post by:
I'm having a problem with redirecting the StandardOutput of a process that I use to run a DOS program in my application. The problem is that I when I start my process (which I do in a separate...
0
by: shoniko | last post by:
Hi! I've implemented BHO and what I need is for it to redirect some urls t anther one's. But when I change the data in BeforeNavigate2 methd - the IE ignores it. When I tried to call Navigate2...
4
by: Greg Smalter | last post by:
Redirecting from page to page within a web project is pretty easy. However, all Redirect methods take strings as arguments, as if you mistype the string, you don't find out until run time that you...
3
by: Shreyas | last post by:
I am a new user writing some scripts to store data entered via a browser into a database. I have several content pages, and one "processing" page. A content page often has a form like this: ...
8
by: Morpheus | last post by:
I am trying to test a function that outputs text to the standard output, presumably using a cout call. I do not have access to the source, but need to test the output. Is this possible? I can...
7
by: laredotornado | last post by:
Hello, I'm using PHP 4.4.4. After processing some data, I'd like to redirect to another page for further data processing. The way I'm redirecting right now is header("Location:...
17
by: mansb2002 | last post by:
Hi, We recently moved our webserver from Win2K to Win2003. The application works fine. Only problem is that when user views a report as a PDF, IE does not show it. The following code is used to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.