Win a copy of Rust Web Development this week in the Other Languages forum!

Janel Blakely

Greenhorn
+ Follow
since Mar 30, 2011
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 Janel Blakely

I found javacript that gets current username, how do I set a variable in the servlet to the javascript variable?

<script type="text/javascript">
$(document).ready(function(){
var userLogin = $().SPServices.SPGetCurrentUser({
fieldName: 'Name',
debug: true
});
$('#login').text(userLogin.toString());
});
</script>
...
public String getUserName()
{
return userLogin;
}
10 years ago
Everywhere I have researched, I cannot find how to set the Response parameter in the aspx, in fact several discussions stated that you cannot do it. So, I went down another route and found javascript code that gets the MOSS username, but can't figure out to set the servlet variable = javascript variable.
10 years ago
I don't know. I am very new to .NET programming and don't know Java. I have to update existing Java servlet code to set a variable that I can get from aspx code. We have several applications that were developed in Java to run in Oracle WebCenter portal that now need to run as webparts in MOSS. MOSS does not have a Java API. The only item the portlets need to work in MOSS is the current portal logged in user. I have aspx code that gets the current MOSS logged in user. Need to call the ASPX page in a servlet and get the username from the ASPX.
10 years ago
Is there a way to call an ASPX page in a servlet and pass data from the ASPX to servlet?
10 years ago
Sharepoint does not have a Java API. I have several portlets that were developed in Java for Oracle WebCenter portal that now need to run as webparts in MOSS. The only item the portlets need to work in MOSS is the current portal logged in user. I have aspx code that gets the current MOSS logged in user. Is there a way to call the ASPX page in a servlet and get the username from the ASPX? How to you get data from aspx to the servlet?
10 years ago