How to pass header to a jsp when doing response.sendRedirect
Hi,
It is possible to pass header to a jsp when doing response.sendRedirect ? how to do it?
thanks
Thanks Luis for your suggestion but it doesn't work in my case.
in my implementation, user logs in from Novell iChain single sign-on. My initial jsp page gets the user information from request header, then should pass the user information to next page via my JSF servlet.
How this can be done ?
Similar Messages
-
How to pass parameter to intro.jsp page ?
Hi all,
Anybody please tell me how to pass parameter to intro.jsp page.
Is there any param name defined in <forward > syntax ?
I have made following configuration in struts-config.xml file.
I want to pass parameter to intro.jsp page
<global-forwards>
<forward name="invalidsession" path="/intro.jsp" redirect="true" />
</global-forwards>
please reply soon.
Thanking you.Hi all,
I have a similar kind of question..
Iam trying to pass a string variable from JSP to servlet thro URL..
Im using tomcat5
COde:
String fname=request.getParamter("filename");
<jsp:forward page="/servlet/coreservlets.filedownload?name=" +fname />
It is generating a unterminated tag error..Please help.. -
How to pass the value to "Assignment" when submit the program RFITEMGL?
Hello friends,
I want to submit program RFITEMGL (t-code FBL3N) with some screen fields, some fields are OK to fill such as u201COpen at key dateu201D, u201CG/L accountu201D and u201CCompany codeu201D。 But for the field "Assignment" (It will appear after cilck Dynamic Selection), I don't know how to pass value to it.
Could you help me about how to pass the value to "Assignment" when submit the program RFITEMGL (t-code FBL3N) ?
Thanks a lot!Hi,
Well you can create a small BDC.
Regards,
Harsh Bansal -
MVC2.0-- how to pass bean object to jsp
Hi All,
Anybody please tell me how to pass bean class object from controller to jsp ?
I am developing an application in MVC2.0.
I am creating an object of bean class in controller servlet and want to pass this object to jsp so anybody please tell how to pass this object to jsp.
ControllerServlet--
Bean obj = new Bean();
Bean --
public String aMethod() {
return data;
I have to use this method in my jsp and I am creating an object of this bean in controller servlet.
Please help
Thanks
Please reply soonHi,
Thanks for your response. I knew it is possible with session objects. But I want to perform this operation with out using session objects. Is there a way to accomplish this with out using Session objects.
Please help.
Thanks -
How to pass containers to a task when I want to invoke the task?
Hi experts,
Does any1 have any ideas about how to pass containers to a task when I want to invoke the task? Because the task has 2 required import element.
Points will be rewarded.
Vincent.Hi
Check the links
Workflow automates the steps and activities in a business process according to predefined procedures and rules.
Workflow presents information and documents to the appropriate knowledge worker or agent (another entity such as a program) to make a decision or perform an activity.
Workflow tracks each and every step in the process flow and maintains an ongoing status.
Workflow also collects and reports all of the metrics associated with the execution and completion of the process.
Check the below links u will get lot of info..
http://www.sap-press.com/product.cfm?account=&product=H950
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
Go through the following links on FORK :
http://help.sap.com/saphelp_nw04/helpdata/en/24/e2283f2bbad036e10000000a114084/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/8d/25f1e7454311d189430000e829fbbd/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/c5/e4a930453d11d189430000e829fbbd/content.htm
http://www.insightcp.com/res_23.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
For more reference on workflow: http://****************/Tutorials/Workflow/Workflow.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/04/9277a346f311d189470000e829fbbd/frameset.htm
Check these links.
http://www.sapgenie.com/workflow/index.htm
/people/ginger.gatling/blog/2005/12/01/link-workflow-business-objects-to-your-collaboration-tasks
http://help.sap.com/saphelp_nw04/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
http://help.sap.com/saphelp_bw33/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
http://help.sap.com/saphelp_bw31/helpdata/en/8d/25f94b454311d189430000e829fbbd/content.htm
http://www.sap-press.com/product.cfm?account=&product=H950
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
Workflow tutorials with step-by-step and with screenshots are available at http://www.****************/Tutorials/Workflow/Workflow.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/42/c14a9b55103116e10000000a1553f7/frameset.htm
http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm
http://www.sapgenie.com/workflow/
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2857887
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2855919
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2735228
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMDEMO/BCBMTWFMDEMO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPM/BCBMTWFMPM.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
Debug a workflow.
This has a step by step procedure :
http://fuller.mit.edu/workflow/debugging.pdf
www.erpgenie.com/sap/workflow/debugging.htm
http://www.erpgenie.com/workflow/debugging.htm?2b5de440
Workflow tutorials with step-by-step and with screenshots are available at
http://www.****************/Tutorials/Workflow/Workflow.htm
http://www.sapgenie.com/workflow/
http://www.sap-img.com/workflow/sap-workflow.htm
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
http://www.sap-basis-abap.com/wf/sap-business-workflow.htm
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2857887
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2855919
https://forums.sdn.sap.com/click.jspa?searchID=791580&messageID=2735228
http://www.sapbrain.com/TUTORIALS/TECHNICAL/WORKFLOW_tutorial.html
Reward points for useful Answers
Regards
Anji -
How to pass information from one JSP to another JSP? help please
hi there
my question is how to pass some information such from one JSP to another one. for exmple, on one page there is a form, and i need to pass some values from the form to another jsp, or some values that were calculated on one JSP and need to be passed to another one. thanksYou can do this in several ways...here is a simple one...
When you call the second page url, use this
http://www.mysite.com?myVariableFromPageOne="hello"
on the second page use this:
String firstPageVariable = request.getParameter("myVariableFromPageOne");
Thanks -
How to pass an object from jsp to other jsp using SendRedirect
How to pass an object from one jsp to the other jsp using ssendRedirect with out using the session
I am having 2 jsps
x.jsp and y.jsp
From x.jsp using sendRedirect iam going to y.jsp
From x.jsp i have pass an object to the y.jsp
Is it possible without putting the object in session
Is it possible using EncodeUrl
Please help me Its UrgentIs it possible without putting the object in sessionAnything is possible. Would you accept that it is very difficult?
When you send a redirect, it tells the browser to send a new request for the target page. That means any request parameters/attributes are lost.
Is it possible using EncodeUrl response.encodeURL() puts the session id into a url if the browser does not support cookies. It is purely for retaining the session.
There are two ways that you can communicate across a sendRedirect.
1 - use the session
2 - pass a parameter in the url.
parameters are string based, so passing objects is almost out of the question.
Potentially you could serialize your object, encode it in base64 (so it is composed completely as characters) and pass it as a parameter to the other page, where you retrieve it, unencode it, and then load the serialized object.
Or you can just use the session. -
How to pass parameter between two jsp pages using web link (not form)
Hi Friends,
I have two jsp pages and would like to pass a parameter from one JSP page (one.jsp) to another JPS page (two.jsp)
in one.jsp
<a href="two.jsp?ant="<%=ant%">"> <%=antName%> </a><br>
I don't know how to pass value of parameter "ant" to two.jsp from one.jsp.
Can anyone help this? Thank you in advance</a>Looks like you've got it almost right - just an extra unneeded "
<a href="two.jsp"?ant=<%= ant %>"><%=antName%></a>
which should render on the page as something like
My Ant Task
When you click the link, it should pass that parameter, and you can get it via request.getParameter(). -
How to pass javascript variable to jsp function
i want to check which table header (that is <th> in html )is clicked and based on that a jsp funtion do a query in database and should show records in sorted way according to which column head is clicked.
Table is created in html.
My function is
Vector varray = workcaseid.getWorkcaseId(Long.parseLong(MasterAccountNumber),SelectedColumn);
<table border="1">
<th ><label onClick="<%SelectedColumn="workcase_id";%>">Workcase Id</label></th>
<th><label onClick="<%SelectedColumn="status_id";%>">Status</label></th>
<tr><td>etc</td></tr>
</table>im using bean for business login, following mvc model,and i think mvc is one of good design practice to use.
<jsp:useBean id="workcaseid" scope="session"class="beanFiles.SearchWorkcaseId" />
varray = workcaseid.getWorkcaseId(Long.parseLong(MasterAccountNumber),SelectedColumn);
just tell me whether it is possible to pass javascript variable to jsp variable or not.i can do it by using hidden input type,using form and submit button. -
How to pass an Array to jsp:param
Hi,
I am trying to find out how to pass an array to a jsp:param tag abnd then retrieve
the values in the next page. Please help soon. Thanks
Here's my code - Assume the books array has more than 1 value
String[] books = request.getParameterValues("book");
<jsp:include page="<%=contentPage%>" flush="true">
<jsp:param name="bookSelected" value="<%= books %>" />
</jsp:include>
The 'contentPage' takes me to the next page where I have the following to retrieve
the value of 'bookSelected'
String[] bookSelected = request.getParameter("bookSelected");
I tried accessing the array like this
if(bookSelected.equals("book1"))
but did not succeed.
I tried accessing the array in a loop but it did not work. Here's what I tried.
<jsp:include page="<%=contentPage%>" flush="true">
<%for (int i = 0; i<books.length; i++){
%>
<jsp:param name="bookSelected" value="<%= books %>" />
<% } %>
</jsp:include>
Hi
tell me how you redirect from __confirmdelete.jsp:__ to deleteServlet.java..
and post detail code of __confirmdelete.jsp:__ -
How to set Header variables through Jsp
Hi,
Can anybody help me with the code.
I need to send user id in http header variable from jsp to a third party tool, which will read user id from the http header.
i am tryng to test if ui can set the variable using th efollowing code
<%response.addHeader("REMOTE_USER" ,"user1"); %>
and to get that i am using response.getHeader("REMOTE_USER");
The header variable is not set.
can you let me know if is possible , can we set user defined header variables??
Any help will be highly appreciated
Thanks in advanceHi,
If you'd like to send some additional headers from your jsp it would make sense to add it to your request than the response. Unfortunately, neither a servlet or jsp is allowed to modify the request object. You would need to write a filter to achieve this.
See the below url for more information on creating filters.
http://java.sun.com/products/servlet/Filters.html
cheers,
vidyut -
TS1292 how can i redeem a gift card when the response is non activated card
How can I find the problem with itunes giftcards when the response is card not activated?
Ask the people at the store the gift card came from or the iTunes Store staff for assistance.
(96009) -
How to copy UserProperties from origin message when doing reply, forward or reply all?
is there a way to auto copy the UserProperties from origin message when doing reply, forward, reply all or any other operation? (if exists)
And to handle the Reply / Forward / ReplyAll events, you need to track the selected items (use Explorer.SelectionChange event) and messages displayed in inspectors (use Application.Inspectors.NewInspector event). Keep in mind that more than one message
can be selected or displayed at a time, so you will need to dynamically track the list of items that can fire the Reply / Forward / ReplyAll events.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/redemption
Redemption - what the Outlook
Object Model should have been
Version 5.5 is now available! -
hi,
I am getting this error java.lang.IllegalStateException when i am trying to send response to a jsp page
here is my code
try{
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","root");
PreparedStatement statement = con.prepareStatement(sql);
int i = 0;
i = i+1;
statement.setString(1,designation);
i = i+1;
statement.setString(2,Address);
i = i+1;
statement.setString(3,name);
statement.executeUpdate();
statement.close();
con.close();
catch(Exception e){
e.printStackTrace();
response.sendRedirect("employee.jsp");Shoebhere is the error
java.lang.IllegalStateException
org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:433)
employee.doPost(employee.java:55)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
try{
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","root");
PreparedStatement statement = con.prepareStatement(sql);
int i = 0;
i = i+1;
statement.setString(1,designation);
i = i+1;
statement.setString(2,Address);
i = i+1;
statement.setString(3,name);
statement.executeUpdate();
statement.close();
con.close();
response.sendRedirect("employee.jsp");
catch(Exception e){
e.printStackTrace();
} -
How to pass parameter to my jsp apge included in adf inlineframe
Hi,
I would like to know how could i pass parameter to my adf inileframe src.
Because when i try to do this
<af:inlineFrame id="if1" source="/frontBackOffice/Scanning.jsp?param0=#{....}¶m1=#{....}" />
I have a error
ADF_FACES-30179:Pour plus d''informations, consultez le journal d''erreur du serveur à une entrée commençant par : l''élément UIViewRoot est NULL. Exception fatale lors de PhaseId : RESTORE_VIEW 1
Could you help me pleaseyou map the source to a backingbean.. and in the bean you just manipulate the parameters..
chk this link for an idea - search for af:inlineframe
http://biemond.blogspot.com/2009/02/facebook-adf-task-flow.html
<af:inlineFrame source="#{FaceBook.facebookLoginUrl}"
inlineStyle="width:99%; height:99%;"
shortDesc="Loginpage"/>
in the bean do this
private String facebookLoginUrl;
public String getFacebookLoginUrl() {
if (sessionID==null){
try {
client = new FacebookJaxbRestClient(APIKEY, SECRET);
token = client.auth_createToken();
facebookLoginUrl= "http://api.new.facebook.com/login.php?api_key=" + APIKEY + "&v=1.0&auth_token=" + token;
} catch (FacebookException ex) {
ex.printStackTrace();
return facebookLoginUrl;
}
Maybe you are looking for
-
Suddenly, today I needed to know what's the size of the backup tars from my linux-vserver based vps running fully up-to-date arch linux and I can't seem to find out why 'du' is acting like this. ┌─[23:39:09]-[root@stavrovski]-[~] └─› du -csxh /tmp/*
-
HT201412 iPhone 4 in recovery mode
My iphone 4 is in recovery mode and i don't know how to get it back working, every time I connect it to itunes a message comes up telling me that my computer has detected a iPhone in recovery mode, my only choice then is to let it update it and then
-
Inserting PIP video into captivate demo - audio problems
Hello, I am using CP6 and have captured a 1 second demo then imported an FLV file into the demo as a PIP file. It works fine except for some reason it has chopped 1.7 seconds off of the audio at the beginning of the demo: Any help would greatly be a
-
C3 "need permisson to create directories" error
HI, Our host provider forced us to change all ftp passwords. In C3 I was unable to find a place to set the password under connections, so was maybe a bit to hasty to delete the current connection and reset a new connection... When I first went in, I
-
Im having trouble calling my file dsn within my code .. sample code provide
HERE IS MY CODE:: // cusomters rs.getString(5) // customers rs.getString("emp_no") import java.io.*; import java.sql.*; public class Test { // QuickBooks variables // parameters for QuickBooks database static final String url = "jdbc:o