This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
If you need to "call" (poor choice of words) an ASP page under Java code control, you'll need to issue an HTTP request to the ASP page. You can pass data to the page via request parameters on the query string. The classes in java.net can help you, or you can use a higher level library such a HttpClient.
Data is passed back from the ASP page in the response.
Joined: Mar 30, 2011
request.getParameter( <Parameter Name> );
you should be able to fetch the value in the Servlet.
What is a "response parameter"? Requests can have parameters in the URL, but responses don't. Is this an ASPX concept?