How to transfer parameters in jsp files

what i want is :
there is a jsp file named errorMsg.jsp, and in the file a variable msg which type
is String is used, and the value of msg will be display on web browser.
now, i want transfer a string to the errorMsg.jsp in another jsp file named try.jsp.
that mean i can decide which string be transfered dynamically, and transfer it to
errorMsg.jsp to show on the user's browser.
i want not to use the url something like this .../errorMsg.jsp?msg=hello.
any other method is there for using.
thx.

If the page involves form, another alternative is to use hidden fields for that.
<form name="errorMsg.jsp" method="POST">
<input type="hidden" name="message" value="hello">
... other fields here....
</form>
=> and in errorMsg.jsp retrieve the value using
String msg = request.getParameter("message");

Similar Messages

  • How can i access the jsp file in a asp file

    Hi every one..
    we have two projects one is developed in ASP and one is developed in JSP both are running in two different locations.
    now i want to include a jsp file from one project to ASP file in the other project.
    please tell me how can i insert the JSP file in ASP application.
    thanx in advance.

    Wouldn't that be an ASP question for an ASP forum?

  • How to transfer more than one files over internet at once?

    hi, friends,
    I just wonder how to transfer more than one files from one computer to another over internet at once. Not using ftp. pls any one give me the solution.

    This isn't hard to do, but it depends on your exact need. I did something very similar to let me upload all my mp3 file from home to work using sockets (don't have the code anymore..).
    What I did was implement a "pull" approach rather than a "push" approach. In other words, everytime my server got a request from a client, it served up the next file. It didn't know or care that the client was always the same.
    If you can set up a server to serve one file when a client attaches, then basically just put that code in a loop.
    If this doesn't meet you need, it might still be helpful as a starting point...

  • How to transfer video and audio files from windows PC to new ipad?

    How to transfer video and audio files from windows PC to new ipad?

    iTunes: Syncing media content to iOS devices and iPod
    Sync with iTunes.
    Connect the iPad to the PC and launch iTunes.
    Click on the iPad name on the left side under devices.
    Click on the Music Tab on the right.
    Click on all of the albums, artists, playlists that you want to sync
    Click on the Sync Music Heading.
    Click on Apply in the lower right corner of iTunes
    Follow the same procedure for Movies.

  • How to authorize my Login.jsp file to create LoginContext, deployed in war

    I am currently doing a login process and I need to know how to give my Login.jsp file the permission to create a LoginContext. I packaged everything in a war file and deployed it to the server.
    Specifically this is the error that I am getting:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: access denied (javax.security.auth.AuthPermission createLoginContext.studentportal)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    root cause
    java.security.AccessControlException: access denied (javax.security.auth.AuthPermission createLoginContext.studentportal)
         java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         java.security.AccessController.checkPermission(AccessController.java:427)
         java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         javax.security.auth.login.LoginContext.init(LoginContext.java:224)
         javax.security.auth.login.LoginContext.(LoginContext.java:403)
         org.apache.jsp.Login_jsp._jspService(Login_jsp.java:55)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:585)
         org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
         java.security.AccessController.doPrivileged(Native Method)
         javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
         org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
    note The full stack trace of the root cause is available in the Sun-Java-System/Application-Server logs.
    In my code in Login.jsp this is what I have at the top of the page:
    <%@ page language="Java" import="portal.*,javax.security.auth.login.*" %>
    <%
    String s = request.getParameter("loginButton");
    if (s != null) {
    out.println("The user attempted to login");
    String user = request.getParameter("username");
    String psw = request.getParameter("psw");
    AscCallbackHandler cbh = new AscCallbackHandler(user,psw);
    LoginContext ctx;
    try {
    ctx = new LoginContext("studentportal",cbh);
    } catch (LoginException  le) {
    out.println("Sorry, could NOT create context");
    }The admin page tells me that portal is deployed at location:
    ${com.sun.aas.instanceRoot}/applications/j2ee-modules/portal
    My entry in the server.policy file looks like so:
    grant codeBase "file:/home/jay/sun/Creator2_1/SunAppServer8/domains/creator/applications/j2ee-modules/portal/WEB-INF/-" {
    permission javax.security.auth.AuthPermission "createLoginContext.studentportal";
    permission javax.security.auth.AuthPermission "modifyPrincipals";
    permission javax.security.auth.AuthPermission "getLoginConfiguration";
    Which gives the error shown above
    Please help
    Message was edited by:
    jay_dawg
    Placing code tags

    java.lang.NoClassDefFoundError: org/jdom/JDOMException
         java.lang.Class.getDeclaredConstructors0(Native Method)
         java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
         java.lang.Class.getConstructor0(Class.java:2671)
         java.lang.Class.getConstructor(Class.java:1629)
         org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1164)
         org.apache.jasper.compiler.Node$UseBean.accept(Node.java:1116)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
         org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
         org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
         org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
         org.apache.jasper.compiler.Generator.generate(Generator.java:3305)
         org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)and following by this

  • How to transfer more than 1 file usong bluetooth t...

    Can anyone tell me how to transfer more than one file via Bluetooth. I am using Lumia 720.

    Hi,
    My theory is that Windows get confused when it is opening the program file and the following intsructions should create a unique copy. I have produced the instructions in detail because I am never sure how much people are use to - forgive me you know much of it.
    Open Windows or Folder Explorer
    Navigate to C:\Program Files (x86)\Adobe\Photoshop Elements 12
    Look for PhotoshopElementsEditor.exe
    Right click on the file and select Copy
    Right click on a blank space and select Paste - you should get a prompt asking if you want to continue - you do - this should produce a copy of the file
    Rename PhotoshopElementsEditor - Copy.exe to PSE 12 ED  - you should get a prompt asking if you want to continue - you do
    Close the Explorer
    In the Windows Control Panel, select Default Programs
    In Default Programs, Select Associate a file type … - it will take a while to display the list
    Scroll down to the type you want to select - say .jpg and select it
    Click on the Change program button
    Click on the Browse button
    Search for the PSE 12 ED file renamed in 6 above, select it and then click on the Open button
    Click on OK and close the Default Programs
    Now try your tests. I can get multiple files to open as well as retain Expert mode.
    Good luck
    Brian

  • How to transfer my .bbb format file to iPhone5?

    Hello there,
    Could you, please, show me how to transfer my BlackBerry backup file to an iPhone 5?
    I feel it's a little bit difficult.
    Thank you.

    Hi FoxDie85
    Welcome to the Community
    You can't transfer. bbb file to Iphone nor android as it's for BlackBerry devices only. But, you can transfer Contacts, Calendar items, Pictures, Videos, Files and documents to Iphone using 'Device Switch'.
    On your old device, tap Search and type Device Switch in the field. For more information, visit www.blackberry.com/deviceswitch
    Good luck.
    • Click Likes to appreciate those who helps you
    • If your issue solved, mark the best post in your thread as Solution

  • How to transfer parameters from one ivew to another-both are in diff. page

    Hi All,
    My requirment is pass the parametrs from one ivew to another ivew(both are different PCD paths). now i am able to see the value in second ivew using java script .Here my problem is come.
    How to transfer varibles from one i vew to another ---Afetr seeing so many forums in SDN.I came to know that EPCM is Best. Using EPCM i am able to transfer the varible and able see the vlues in javascripts(Using alert command).
    From java script how to transfer varible to bean-----afetr seeing forums i came to know that using HTTPSession we can pass parameters to bean. but i am unable to code where i need to call httpsession api methods,it mean that i need to code under  java script , JSp and controller page.
    it is very urgent for me,
    thanqs in advance

    Hi,
    Goto LT01 transaction with Movment type = 999 and stock category = Required stock category. Create a PCN and process the remaining process so as to change the stock type.
    Regards,
    Dilli Babu R

  • Problem with accessing init parameters from JSP file

    Hi,
    I have my init parameters and Jsp configured in web.xml
    <servlet>
              <servlet-name>TestJsp</servlet-name>
              <jsp-file>/Test.jsp</jsp-file>
              <init-param>
                   <param-name>username</param-name>
                   <param-value>Balboa</param-value>
              </init-param>
    </servlet> How do I access 'username' field from JSP file.
    Kindly help.
    Thanks.

    you can do this in the jsp
    <%=config.getInitParameter("username")%>or do it in the jspInit method in the jsp:
    <%!  String userName = null; 
      public void jspInit() {   
        ServletConfig config = getServletConfig();   
        userName   = config.getInitParameter("userName ");  
    %>
    Hello <%=userName%>

  • How to transfer a 8GB .MOV file from MacBook Air (late 2013) via external HD (Samsung S2 Portable) to a Dell laptop ?

    Hi guys and galls,
    How can I transfer a 8GB .MOV file from MacBook Air (mid 2013) via external HD (Samsung S2 Portable) to a Dell laptop ? The mentioned file currently will not let me transfer it to my ext HD. I want to upload it afterwards to a Dell laptop with Windows software installed.
    Reformatting the drive doesn't seem to be the sollution, since this will erase all the data stored on the ext HD, and it will only allow me to use the drive with either Apple or Microsoft equipment.
    Please HELP, running out of options here... Thnx, "Apple-Dummy"

    Apple-Dummy wrote:
    How can I tell whether my External HD is formatted NTFS?
    Attach the HDD to your MBP.  Click on the icon on the desktop COMMAND+I. It will produce a display such as this and look what it says by FORMAT.
    How do I format my External HD: FAT or ExFAT?
    Do this on a PC.  You will have to use the Windows equivalent of Disk Utility.  I am not a Windows user so I cannot give you detailed information regarding this.  I have seen on these forums that there are at times compatibility problems if formatted on a Mac.
    Which one is preferred, FAT or ExFAT? And why?
    Use ExFAT.  FAT has a file size limitation of 4 GB.
    Ciao.

  • HT1473 How to transfer audio or vedio file from my computer to  iphone 5S

    I have an iphone 5S. I tried to transfer Audio and video file from my Pc to my iphone using itunes, but it is nor added to ituned or in my pc. I saw some video  in youtube regarding the use of itune for file transfering .But it is totally confusing me.
    Please help me

    Read the User's Guide as it clearly states how to add content to an iDevice.

  • How to pass parameters to configuration files

    Hello,
    I have an application which uses several libraries and frameworks like log4j and hibernate.
    Each library/framework is configured via its own configuration file, some configuration files are in xml format and others are in properties format.
    Each configuration file has lots of specialized parameters that should not be exposed to the user but there are also one or two parameters that must be configured by the end user.
    For example:
    The log4j configuration file has lots of specialized parameters that the user should not see, but there is one parameter that the user must configure: the path for the application log file.
    Another example:
    The hibernate configuration file has lots of specialized parameters that the user should not see, but there is one parameter that the user musr configure: the path to the application database.
    It would be great if we can have an user-configuration-file that contains only the parameters that should be configured by the user and leave the complicated and specialized parameters in their corresponding files.
    I want to pass the properties defined in the user-configuration-file to the specialized configuration files.
    Any ideas to achieve this?
    Thanx

    Thank you very much to all for the replies.
    Ok, I can read the specialized-configuration-file into a Properties object, then read the user-configuration-file and merge the appropriate properties to get a complete Properties object.
    If the library/framework can't be configured with the Properties object, then I will need to write down the properties into a new file and tell the library/framework to load that file.
    I have used Properties objects and files before, but I don't have experience with xml configuration files.
    Is the same applicable to xml files?
    How can I load a XML files to an object and then update/add a particular property?.
    If that's possible, then: how can I write down the XML object to a new file?
    thanx
    Edited by: JoseLuis on Oct 23, 2008 11:28 AM

  • How to transfer parameters to Webdynpro Java application ?

    Hello guys,
    I had developed a Webdynpro Java application "ZWD", it's URL is
    "http://jt-pldev:50000/webdynpro/dispatcher/local/ZWD_FLIGHT/ZWD".
    "ZWD" had 2 input parametere "InputField" and "InputField1" .
    Accroding to SAP Online Help  document, we can transfer parameter Webdynpro application .
    I want to transfer parameters to application "ZWD"  via URL
    "http://jt-pldev:50000/webdynpro/dispatcher/local/ZWD_FLIGHT/ZWD?InputField=Frankfurt" .
    But it failed.
    My questions:
    1. How to transfer parameter to Webdynpro Java application "ZWD" ?
    2. Does it possible that transfer input parameter to Webdynpro application and run the applicaiton via specific URL ?
    BR,
    Louis

    Hi Louis,
    You can refer to the following Bertram's article:
    [Inter-Application-Navigation in Web Dynpro|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/library/user-interface-technology/wd%20java/wdjava%20archive/inter-application-navigation%20in%20web%20dynpro.pdf]
    The process of accessing the Application URL parameters is explained for Target Component.
    Regards,
    Alka.

  • How to transfer parameters to ProcessingPage?

    Hi,
    I want to transfer parameters to ProcessingPage,How to implement it?
    Thanks!

    Hi Kevin,
    you can put the parameters in the OAPageContext object and retrieve the parameters in the processing page
    pageContext.putSessionValue(parameterName,parameterValue)
    pageContext.getSessionValue(parameterName)
    regards
    Ivar

  • How to run/build the JSP file using Eclipse

    Hello,
    I want to build a new project for running the jsp file in eclipse.
    Can you help me in doing that?
    with some structure format?
    where to create web.xml file
    how to configure that fiel with our eclipse java poject?
    like that...
    Thanks,
    Soorya

    On New Project creation, choose 'Dynamic Web Project'. Then the structure will be created for you.

Maybe you are looking for

  • Boris Title 3D freezing?

    Greetings Sometimes when I open up Boris Title 3D to copy the text box and put it into a word document, it freezes on me. Any suggestions? Thanks!

  • Error encountered while loading data into an Essbase cube from oracle DB

    Hi All, I am trying to load data into an Essbase cube from Oracle db. Essbase is installed in an 64 bit HP-UX machine and oracle database on HP -UX 11.23 B server. While performing the above I am getting the below error messages: K/INFO - 1021013 - O

  • Profile for Client Copy

    Hi all, I have to do a local client copy but i am confused as to what profile to be used. we have two clients 200 & 210 with master data in both. now we want to overwrite 200 client with the config, user-profiles and all but no master data of 210 so

  • EO Extension question?

    Hello, I am pretty new to the OA Framework extensions, and have a task of extending one of the self service pages on eBusiness suite. Could anybody please suggest a good approach for this one. Requirement is to extend a self-service page to add more

  • Tracking who is login in sap b1 through the fms..

    hi. i need a small information.. ie. through the fms i want to know who is login into the sap b1... SELECT T0.[U_NAME] FROM OUSR T0 WHERE internal_K = $[user] i am running above quey it is working fine the answer is 'manager' ok i have one more requi