How can I link to a jsp page from another jsp page within websphere portal?

Afternoon all,
I have a websphere portlet which displays a jsp page. I want to put a hyperlink on the jsp page which when clicked will open another jsp page.
Does anyone know how to do this?
Thanks,
Alex

The anchor tag is the correct one for generating clickable links.
<jsp:forward> is for transferring control at the server end. Its when you decide to change which page you want to show the user. ie check user is logged in. If not then forward them to login page, else display current page.
I tried that. It does open the jsp page
but the place and page links in the portal theme get screwed up.Whats mucked up about them? Do they point where they shouldn't?
You might try using a <base> tag to set where relative links are resolved from.
Cheers,
evnafets

Similar Messages

  • How can I keep the formatting when converting from Word to pages?

    How can I keep the formatting when converting from Word to pages?

    Use only formatting that is supported (in the same manner) in both applications. You'll need to find which that is through trial and error. Beyond those formatting options, you'll need to do some corrections, as Fruhulda suggests.
    Regards,
    Barry

  • After upgrading to Photos, how can I work on a Book Project from another apple device?

    After upgrading to Photos, how can I work on a Book Project from another apple device?

    I'm not sure I understand what you are asking, but on the device/Settings, do you have iCloud and Photos sync turned on?

  • My Gf has my iphone. How can I see recent messages and calls from another device?

    My Gf has my iphone. How can I see recent messages and calls from another device?

    Depending on your carrier, you may be able to see recent calls by logging into your account on the carrier's web site, if they offer such a feature, though incoming calls being shown is not usual. There will, as diesel said, be no way to see messages already received, either SMS/MMS or iMessages, without having the phone.
    Regards.

  • How can I display a list of records from a JSP to my Midlet ??

    Hi there !
    I'm new in J2ME. I have been strugling with this problem for weeks now. All I find on the net is some theory and is not helping me much. Here the deal
    I have created a Midlet that shoud display a certain list which is from the remote database. The list comes from a JSP file in the server. When I use the browser I can see the list.
    The problem comes when I have to take the same list and output it in my midlet file. Then finding the selected index of the selecte item of the same list and using it somewhere else.
    I would appreciate it if somone could help me !!
    My head is speaning now !!! If you want me to post my code so one could identidy the proble, I don't mind !! Help please !!

    Here is my Code !!
                 String url = "http://10.2.25.3:8080/CreateAppointment/doctorsList.jsp";
        String dateUrl = "http://10.2.25.3:8080/CreateAppointment/date.jsp";
       String myUsername,myPassword;
       // Custom declaration code starts here
       public CreateAppointment_GUI()
                //Creating a login Form
                loginScreen = new Form("Login");
                //Login form Textfields
                username = new TextField("Username:", null, 200, TextField.ANY);
                password = new TextField("Password:", "Initial text", 200, TextField.ANY|     TextField.PASSWORD);
                loginScreen.append(username);
                loginScreen.append(password);
                //Adding the commands
                loginScreen.addCommand(loginCommand);
                loginScreen.addCommand(cancelCommand);
                loginScreen.setCommandListener(this);
                loginScreen.setItemStateListener(this);
                // Creating my selection list
                String[] selectionList = { "1.Appointments", "2.Add New Patient", "3.Patient Details" };
                listSelectAction = new List("Select Action", List.IMPLICIT, selectionList, images);
                listSelectAction.addCommand(backCommand);
                listSelectAction.addCommand(nextCommand);
                listSelectAction.setCommandListener(this);
             public void startApp() throws MIDletStateChangeException
               display = Display.getDisplay(this);
               display.setCurrent(loginScreen);
            public void pauseApp()
            public void destroyApp(boolean unconditional) throws MIDletStateChangeException
                 notifyDestroyed();
            public void itemStateChanged(Item item)
       void getDoctors(String url) throws IOException {
                    HttpConnection connection = null;
            InputStream is = null;
            OutputStream os = null;
            StringBuffer stringBuffer = new StringBuffer();
            TextBox textBox = null;
            String newStr =null;
            String newStr2=null;
            Vector v = new Vector();
           try {
              connection = (HttpConnection)Connector.open(url);
              connection.setRequestMethod(HttpConnection.POST);
              //connection.setRequestProperty(String key, String value)
              connection.setRequestProperty("IF-Modified-Since","20 Jan 2001 16:19:14 GMT");
              connection.setRequestProperty("User-Agent","Profile/MIDP-2.0 Confirguration/CLDC-1.0");
              connection.setRequestProperty("Content-Language", "en-CA");
              connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
              os = connection.openOutputStream();
              is = connection.openInputStream();
              int ch;
              while ((ch = is.read()) != -1) {
                stringBuffer.append((char) ch);
                System.out.print((char)ch);
                   }//while
              newStr = stringBuffer.toString();
                    newStr2=newStr.trim();
                    int start = 0;
                    position = newStr2.indexOf("%", 0);
                    while ((position = newStr2.indexOf("%",start)) > -1) {
                      String aName = newStr2.substring(start,position);
                      v.addElement(aName); // store the substring
                      start = position + 1; // so the next time we start checking following the space
              String[] theNames = new String[v.size()]; // create an array big enough to store the strings
              v.copyInto(theNames); // Now theNames is a String array with the list of names
               // now we can create a List using this array:
               listDoctors = new List("Select Doctor", List.IMPLICIT, theNames,null);
               listDoctors.addCommand(backCommand);
               listDoctors.addCommand(nextCommand);
               listDoctors.setCommandListener(this);
          } //try
           finally {
               if(is!= null) {
                  is.close();
               } //if
               if(os != null) {
                  os.close();
               }//if
               if(connection != null) {
                  connection.close();
               }//if
            }//final
         display.setCurrent(listDoctors);
        } //invoke
    public void commandAction(Command c, Displayable d)
                     if (c == loginCommand)
                      myUsername = username.getString();
                      myPassword = password.getString();
                         Thread thread = new Thread() {
                               public void run() {
                                   try {
                                      getDoctors(url);
                                      display.setCurrent(listSelectAction);
                                   }// Try
                                   catch (IOException ioe) {
                                      ioe.printStackTrace();
                                   }// catch
                               }// Public void
                         };//Thread
                          thread.start();
                     else if (c == cancelCommand && d == listSelectAction)
                     else if (c == nextCommand && d == listSelectAction)
                        int selectedAction = listSelectAction.getSelectedIndex();
                            Alert displayNewText =
                            new Alert("Selected","Screens are still being developed", null, AlertType.INFO);
                                displayNewText.setTimeout(1000);
                         if (selectedAction == 0)
                             Thread thread = new Thread() {
                               public void run() {
                                   try {
                                      getDoctors(url);
                                      display.setCurrent(listSelectAction);
                                   }// Try
                                   catch (IOException ioe) {
                                      ioe.printStackTrace();
                                   }// catch
                               }// Public void
                         };//Thread
                          thread.start();
                         if (selectedAction == 1)
                               display.setCurrent(displayNewText);
                         if (selectedAction == 2)
                               display.setCurrent(displayNewText);
                     }//Else
                     else if (c == backCommand && d == listDoctors)
                          display.setCurrent(listSelectAction);
                     else if (c == nextCommand && d == listDoctors)
                             Thread thread1 = new Thread() {
                               public void run() {
                                   try {
                                      getDate(dateUrl);
                                      display.setCurrent(listDate);
                                   }// Try
                                   catch (IOException ioe) {
                                      ioe.printStackTrace();
                                   }// catch
                               }// Public void
                         };//Thread
                          thread1.start();
                     else if (c == backCommand && d == listDate)
                          display.setCurrent(listDoctors);
    }That is my midlet !! Now here is the code for my JSP !!
                        <%@ page import="java.sql.*" %>
    <%@page import="java.util.*,java.text.*" %>
    <%
    String name="";
    String id = "";
    String connectionURL = "jdbc:microsoft:sqlserver://10.2.25.223;DatabaseName=NDOH_PAAB";
    Connection connection = null;
    Statement statement = null;
    ResultSet rs = null;
    %>
    <%
    try
                            Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
                    catch (Exception ex)
                            out.println(ex.toString());
                            connection = DriverManager.getConnection(connectionURL,"remotepaab_user","mohwiti2004");
                            statement = connection.createStatement();
                            String mysql ="SELECT * from physicians";
                            //out.println(mysql);
                            rs = statement.executeQuery(mysql);
    %>
    <%
          while (rs.next()) {
                 name= rs.getString("name");
                 id = rs.getString("id");
                 out.print(name + "%");
                 out.print(id + "%");
    %>
    <%
    %>
    <% rs.close(); %>In the JSP the name variable is the one that has my List. The problem is how do I say in my Midlet = display the list contained in name. Or in id. I need to use both of them "name + id". the id I will use to find out which name a user ha selected !! Not sure how !!!
    Any help would be appreciated !! Thanks !!

  • How can I put one "shape" on top of another in pages?

    Hi all:
    I'm trying to do something pretty simple.  I made some shapes using the "shapes" tool in the toolbar.  I want to put one shape on top of (or in front of) another but it gives me the masking tool instead.  I tried putting a shap in the background but that didn't work either.  it tends to snap the shape I move to it right back to where it was when I tried to move it.  How can I do this?
    Thanks!

    I really don't understand what you are doing.
    I inserted two shapes with their default settings and I got what you see.
    I unchecked the box "Object causes wrap" but it's usefull when there are text objects in the page.
    Yvan KOENIG (VALLAURIS, France) samedi 7 avril 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.3
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k

  • How can I link to a certain scene in another project?

    Hi,
    I would like to make a add an advanced action to a button that links to a cetain scene in another project.
    as an example:
    On the last scene of project B I want to link back to project A scene 3. This is back to where the initial selection to open project B was made.
    I would highly appreciate your Help!!!
    Thanks in advance,
    Stephanie

    Hi Lilybiri,
    no I am not used to Storyline!!!!
    I just dislike talking about a slide, as we are not working with PPT!!!
    An e-Learning module with interactivity should not be compared to slides as in PPT, I think as there is much more to it!!!
    Thanks for your hint to the article. I think this will help!!!
    I will know in a couple of days
    Stephanie

  • HOW TO CALL A JSP METHOD FROM ANOTHER JSP

    Hi all, I have to JSP1 and JSP2 and i would like to call a method of JS1 from JSP2. Is that possible ??
    Example:
    JSP2 Code
    somewhere in the code ...
    String s = JSP1.getName();
    out.println("EL NOMBRE ES " +s );
    thanks in advance for your help

    No, it is not possible. Infact you cannot write your own methods in JSP. What ever you write in a jsp page is part of _jspService() method. Secondly how can you instantiate another class(generated by JSP), until or unless you know the name of the class that resulted from your JSP. Your JSP page is first converted into .java file which is stored in some package e.g.
    pagecompile.jsp._yourJSPfile.
    I couldnot understand why you need to invoke a method of another JSP in your JSP.
    Hope this helps

  • How can I check my MobileMe mail & contacts from another iPhone?

    How can I check in on my MobileMe email &amp; contacts from another iPhone or iPad, not my own? When I go to Me.com, the only option it offers is to set up the iPhone with my account -- which is NOT what I want. Is there a workaround or another path to login that doesn't force the "setup"' page on me?

    What a dumb decision. It would seem sensible that a mobile visitor to me.com should be able to proceed to the "regular" website and check mail, etc., through the web interface. Obviously -- well, okay, maybe not, but it puzzles me! You might be (as I tried, yesterday) vising the site through the browser on your wife's iPhone, which is already set up with an account there (and it would require cancelling her log-in and completely resetting her iPhone to proceed on the path Apple now requires!), or ya might be using a friend's iPad (my next attempt, a few minutes later!), or etc. etc. etc.  Ooops! Brick wall! No options.
    Seems like a counter-productive decision, one that's certain to be counter to common-sense needs and goals of Apple users; I can't be the first person to find this dead-end to be frustrating and contrary to expectations.  Okay, I have my rant finished, now.
    Apple, what was the problem that you were so determined to "fix" with this, ummm, feature? Howsabout a little tiny button hidden in greyscale that allows you to contine to the website, or a forcing URL that bypasses the mobile "set-up" interception? Help?
    Thanks, gdgmacguy -- full credit for the answer! Darn it!
    Oops, for some reason it credited ME with the correct answer. I'll try to contact Apple support to get it credited to you. This is apparently a screwup in my posting.

  • How can I print directly print a report from another app?

    Hi, Can I print a report (printer schedule immediate) passing parameters from another application? Like a html page!
    Thanks a lot. R.

    I can't use the url (for example):
    http://HOST:9704/xmlpserver/servlet/scheduler?ujobname=test_print.xdo&d_printerd_p_gname0=direct&show_conf_page=true&d_method0=d_printer0&job_locale=it_IT&save_output=off&mode=schedule&save_data=off&ujobdesc=test_print.xdo&stype=simple_immediate&_xschurl=_xpt%3D%26WebDoc_Id_Page_Id%3D34132_233%26_xdo%3D%2Ftest_print%2Ftest_print.xdo%26_xpf%3D%26Store_Timezone%3DEurope%2FRome%26_xf%3Dpdf&report_url=%2Ftest_print%2Ftest_print.xdo&submitted=true&d_printerd_p_name0=bridgept1&d_printerd_copy0=1
    ?

  • How can I open tabs on one computer from another computer

    I used to be able to open a tab from my home computer while using my computer at work. Now, I don't seem to be able to do it. I have a sync account set up. How can I open a tab from one computer at a different computer?

    First, be sure you're Syncing correctly:
    https://support.mozilla.org/en-US/kb/how-do-i-set-up-firefox-sync?esab=a&s=Sync&r=4&as=s
    As far as I know, Last Session is synced, too, so you can use
    History -> Restore Previous Session
    or
    History -> Recently Closed Tabs

  • How can I remove an account and apps from another user from my Ipod. My nephew used to live with me and everytime I sync my Ipod his stuff is added to mine. I have no way to contact him for his password.

    I need to know how to remove an iTunes account associated with my computer. My nephew used to live with me but has moved out. Everytime I sync my iPod touch his stuff is added to my device. I have no way to contact him to get his password. How can I make this go away. He listened to music that is very offensive to me and I dont want it in my library or playlists. Any help would be greatly appreciated.
    Thank you in advance,
    Shelly

    You can use computer iTunes to help.
    Connect your iPod Touch to Computer's iTunes
    In iTunes, select your iPod Touch under DEVICES (left pane).
    On right pane select Music at the top.
    Now you can de-select the music/playlist or anything you don't want and click Sync button bottom right.
    You can do the above for Apps, Books, etc.
    You can of course, de-authorize the computer in iTunes menu Store.
    Note: That will make everything using his AppleID inaccessible.

  • Is it possible to call an amx page from another amx page via Golink component?

    I need to generate a dynamic list with page names where I click on a page name and it takes me to the listed page. For eg., When I declare a page as favourite, a list is updated at the back-end. Now I have this favourites' list on another amx page, and I need to take the user to the specific page when one clicks on the page name. Plz help. I don't want to create control-flow cases for every page in my app so that the navigation happens on the action string, it will be an unnecessary overhead.

    http://homepage.mac.com/thgewecke/iwebserver.html

  • How can I link to a slideshow image on a separate page?

    I would like to link images on my homepage to specific images in a slideshow on my "Work" page. Currently I'm simply linking to anchored points on the "Work" page where corresponding slideshow thumbnails are, but I would like to eliminate the step of clicking on the "Work" thumbnail to open the slideshow. Is this possible, and if so, how do I go about doing this?
    Thanks so much

    Hello,
    Unfortunately this is currently not possible to achieve in Adobe Muse.
    User would need to click on the thumbnail to view the image. Anchor links cannot take users to specific slides/images in a Widget.
    I would suggest you to post this as a feature request on our "Ideas for features in Adobe Muse" section of the forums : http://forums.adobe.com/community/muse/ideas
    Regards,
    Sachin

  • How can I link a web app item to another via Next link

    I would like to add a next link and previous link on a web app detail layout. Then people can scroll through the detail layout items without going back to the list view.
    I'm creating a portfolio with a description of the project details and links to external websites. There is no tag for that purpose.
    Any suggestions? I'm a bit new at custom web apps and editing the layouts with css.

    Hi,
    you would have to create 2 additional custom fields as text (string) field types and name them something like, "next item url" and "prev item url". Then you would have to enter the next and previous item url manually for each individual web app item. You can include the new tags in the detail view, something like <a href="{tag_prev item url}">Prev</a> and <a href="{tag_next item url}">Next</a>.
    Hope that helps.
    Nicole - BC Gurus

Maybe you are looking for

  • Maximum hard drive size for G5

    I have a Power Mac G5 2.7 I purchased in June '05. The system drive is 240 gigs. What is the largest drive I can put into the 2nd SATA slot? Thank you.

  • In need of desperate help 14yr old daughter's iPod is  a mess.

    When I plug it into the computer it is not showing up, although it makes the sound that it's connected. It just keeps saying "Do not disconnect" and is burning hot. I've tried to reset it and restore it. Now there are no songs on it. When I press sel

  • "Invalid Currency" in JE

    Dear All, When posting a JE in foreign currency  (USD)for a BP, the client is getting an error "Invalid Currency" even though the account currency is set to "USD" in the Chart of Accounts. The corresponding contra account is set to 'Multi Currency".

  • Shared pool issues

    Hi, In recent we are getting shared pool exhaust issue. I am interested to know which objects occupying more share pool.Do we have any queries which can show the most space occupied objects in shared pool do we have any monitoring tools(or queries) u

  • Why does every iPhone and iPad ring when somebody calls only 1 device? This started today.

    Our iPhones and iPads have been working fine until today when somebody called one device in our house, every iPhone and iPad in the house rang. Why WHY WHY!!?!! I have MacBook Pro 10.10.2 iPhone 4S 7.1.1 iPhone 4 8.1 iPhone 5 7.1.2 iPhone 6 8.2 iPad