JSF with JavaScript ! Problem with OnLoad()

Hello,
I have a .js (javascript) file which has one function. I want to call this function in my jsf-jsp page form.
The javascript run successfully without onload. But when i use onlod it is giving me error like "
com.sun.rave.web.ui.appbase.ApplicationException: org.apache.jasper.JasperException: /Webcam.jsp(11,109) Attribute onload invalid for tag body according to TLD
1. How can i use the onload event with forms or body with jsf ?
After this, i want to use some if else code with my jsp page. Normally we do this using scriptlets in jsp. So how can i do this on the jsf-jsp. Should i use backing bean to write the same code ?
Actually i want to invoke different applications based on coditions on the return of my javascrit function.
Can anybody has tips, solution on this ?
-Sachin
EpiComm Technologies Ltd.

BalusC,
If we want to set focus to a particular element, then
this won't work.
If runScript() function is referring to any form
element we get an error stating that
"document..forms.formname.elements is null.
any ideas how to set focus when the form loads?Then put the script in the bottom of the JSF code, straight before the end body tag. At this place all JSF components are finished with generating.
<html>
    <head>
    </head>
    <body>
        <f:verbatim>
            <script>
                setFocus('</f:verbatim><h:outputText value="#{myBean.focusId}" /><f:verbatim>');
            </script>
        </f:verbatim>
    </body>
</html>

Similar Messages

  • HT1349 Hi all,I have just purchased new iphone but have difficulty in completing the itunes download with message : problem with Windows installer package. A program run as part of the setup did not finish as expected.

    Hi all,I have just purchased new iphone but have difficulty in completing the itunes download with message : problem with Windows installer package. A program run as part of the setup did not finish as expected.
    Would appreciate help...its driving me up the wall!!

    Perhaps let's first try updating your Apple Software Update.
    Launch Apple Software Update ("Start > All Programs > Apple Software Update"). Does it launch and offer you a newer version of Apple Software Update? If so, choose to install just that update to Apple Software Update. (Deselect any other software offered at the same time.)
    If the ASU update goes through okay, try another iTunes install. Does it go through without the errors this time?

  • Why can't I receive help with my problems with Match? A service I pay for??

    Why can't I receive help with my problems with Match? A service I pay for??

    Hi,
    THis is a user help forum. If you tell us what your issues are, maybe someone can offer advice. Otherwise, read this https://www.apple.com/uk/support/itunes/itunes-match/
    JIm

  • Javascript problem with "opener" object

    Hello again,
    In my quest to reuse some automatic generated bsp code to my own advantage, i encounter a problem with the javascript "opener" object.
    I open a new window(win2) for a value help, this should return a value to the calling window(win1). It does so by calling a function in win1. My problem is that i get an error, stating that access to win1 is denied.
    opener.focus() works: it sets focus on win1
    so the opener object seems fine, pointing to the richt window
    opener.functionWin1() does not work:
    when i want to call a function from win1 i get the message "access denied", this also happens when i want for instance call a propertie of win1 with for example alert(opener.location);
    Does anybody know if there is a special parameter i should set, before i can call functions on the opener page? Or has anybody encountered the same pronlem?
    Kind regards,
    Martijn de Jong.

    If you want to set a input field value from a value help page you can write a JS function in the value help page itself, which will take of populating the field in the root page.
    See this example script:
    <head>
    <script language="JavaScript" type="text/javascript">
              function fun()
                   s=window.opener;     
                   txt=s.document.getElementById("<input filed id of the parent page>");
                   if ( document.form1.row_sel1.value )
                   txt.value = document.form1.row_sel1.value;
                   window.close();
        </script>
    </head>
    Refer this thread for further details:
    Re: F4 help using javascript
    Regards,
    Ravikiran.

  • Javascript problem with Internet Explorer 6

    Hi together
    I have a problem with IE6 on a JSP page. I want to disable a HTML button calls
    'fehlerdetails' if one of radiobutton list has a value "FIID NOK".
    This Java script sample below is running with Netscape 7.0 but Internet Explorer get no objects back.
    Has everyone a idea how can I read a value from list:
    document.GetFailedPostingPositionListW3InBean.checked[i]
    with Internet Explorer 6??
    HTML Radiobutton (Struts):
    <html:radio styleClass="radioButton" name="GetFailedPostingPositionListW3InBean" onclick="checkAccountNr();" property="checked" value="<%= String.valueOf(j) %>">
    </html:radio>
    HTML Button:
    <td><input class='pushbuttonlarge' type="button" value="fehlerdetails" onClick="document.GetFailedPostingPositionListW3InBean.submit();" name="fehlerdetails"/></td>
    Javascript:
    function checkAccountNr() {
         document.GetFailedPostingPositionListW3InBean.fehlerdetails.disabled = false;
         var radioButtons = document.GetFailedPostingPositionListW3InBean.checked;     
         if(document.GetFailedPostingPositionListW3InBean.checked > 0) {     
              for(i=0; i < radioButtons.length; i++) {
                   if(radioButtons.checked) {
                        radioButtonAccountNr = radioButtons[i].AccountNr;
                        radioButtonFiidText     = radioButtons[i].FiidText;
                        if (radioButtonAccountNr == "ABACUS-NR NOK" || radioButtonFiidText == "FIID NOK") {
                             document.GetFailedPostingPositionListW3InBean.fehlerdetails.disabled = true;                                                  
    Thank you very much for you help.
    Cheers Robert

    first, this is a Java forum, not Javascript, and aside from the first 4 letters, the two have nothing in common.
    Second.. if there's more then 1 radio button named 'GetFailedPostingPositionListW3InBean', this:
    var radioButtons = document.GetFailedPostingPositionListW3InBean.checked;
    will be an error.
    var radioButtons = document.GetFailedPostingPositionListW3InBean;      
    for(x=0; x < radioButtons.length; x++) {
       if(radioButtons[x].checked) {
          ... check the value and disable
    }

  • Javascript problems with framesets

    Hi,
    we face some serious problems when using Firefox 4 with a SAP frameset-based webshop. It's using Javascript methods to access frames per name. It was working for all versions of Firefox up to 3.6.xx without any problems. Now, sometimes the frames are 'undefined', though they are loaded. As I'm the developer, the customer is asking me to solve the problem. But until now, I was not able to find a solution.
    Is there a known bug with Javascript and framesets or has something changed in Javascript handling and I need to change the coding?
    Thanks in advance,
    mmdev

    Update:
    The web shop is based on a Struts framework. With the help of the Add-on 'View frames' I found out something strange. If an action is loaded in a frame (something.do) instead of a JSP directly, the frame's name is 'object' instead of the real name in Firefox 4 (see screenshot). That explains why the frames are undefined, but not why they are not named correctly? What could be the reason? Any idea?
    Thanks,
    mmdev

  • OBIEE10G - Javascript problems with graphs

    Hi,
    Is there any known problem with using javascript and the display of graphs? I have a report where i have a pivot table where i use some javascript to format that table. Below that table i have 2 graphs that are different reports from the one with the pivot table (see images below).
    Version working well
    http://imageshack.us/f/41/graphworkingok.jpg/
    Version with problems
    http://imageshack.us/f/220/graphwithproblems.jpg/
    I guess the problems may be related with javascript because when i remove the javascript from the pivot table (i have it in a static text view) the graphs seem to work ok.
    I'm not an expert (far from that) with javascript and i was playing around with it so i could format the pivot table the way i wanted but i don't have enough knowledge of it to understand what may be causing the problem.
    Thanks

    I didn't do that because the line i want to format is a "manually" built line. I want to format the last line (total line) but that line wasn't made using the total feature of OBIEE but built by myself. What i do in that line is changing the background color of all the cells in that last line and changing the font-size as well.
    Would i be able to do this just by using CSS? From what i read i think i can't that's why i used JS.
    Btw, what i did is related to this other thread i created where i explained my problem, this may help:
    OBI10G - Format a specific cell of a pivot table
    Edited by: Pedro F on 19/Mar/2012 4:15

  • Netflix having JavaScript problem with Firefox 7

    FireFox was working fine with 6 before the update to 7 with Netflix, and after the update Netflix no longer plays which Netflix tells me to enable JavaScript which it is with FireFox 7.

    Can you detect any pattern to it, whether related to messages with attachments, or particular advertising on the page, etc.?
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    1. Clear Firefox's Cache
    orange Firefox button ''or'' Tools menu > Options > Advanced
    On the Network mini-tab > Offline Storage : "Clear Now"
    2. If needed, delete the site's cookies here
    While viewing a page on the site, right-click and choose View Page Info > Security > "View Cookies"
    (Usually the dialog will refer to live.com rather than hotmail.com, that's normal.)
    Then try reloading the page and logging in again. Does that help?

  • Struts \ POI \ Javascript Problem with IE 7

    Alright folks, I'm having a problem migrating my application from IE 6 to IE 7. We have search functionality in the app that triggers off of javascript calls when a button is pressed in the search. Once the data is retrieved, an export button becomes enabled that allows the user to export those results to Excel using POI. On the back end, we're using struts running in WAS 6. When the results are exported, the action class manually writes the excel workbook to the output stream as below:
         protected void print(HSSFWorkbook a_wb, HttpServletResponse a_response)
              throws IOException, ServletException {
              // generate output
              a_response.setContentType("application/vnd.ms-excel");
              ServletOutputStream out = a_response.getOutputStream();
              a_wb.write(out);
    Then the action returns null to signify to struts that the response has already been handled manually.
    Everything works perfectly in IE 6. In IE 7, however, everything is not so great. The search works to retrieve the results and I can export them to Excel. The problem is that after I export them to Excel, all the Javascript on my page ceases to work. Basically, what I've been able to determine is that upon receiving the Excel document response something is causing the document Javascript variable to become undefined. This causes all my javascript -- things like:
    document.getElementById('actionIndicator').value ="Clear";
    to completely fail because document is undefined. Mind you, the page is still sitting there rendered in IE, and I can do things like window.frames and programmatically see a list of the frames defined on the page -- but the document variable is completely gone.
    At this point I'm kind of at a loss as to what to check or test next, so I'm open to any suggestions. Thanks!

    Hey Gina
    we have not seen broken images like you did, but have seen dramatic reduction in respose time with IE 7 (~20 times slower than normal). A bunch of IT folks tried various settings and configurations, with no success. Finally, we figured that different versions of IE 7 acd differently. Version 5700 was running fine. Version 5713 (or something like that, the latest one) was slooooow.
    Our Office of Information Resources does not "support" any other browser than IE. So, in addition to problems with Office 2007 I described previously, we may get a double whammy from Microsoft. Don't get me started.
    Vojin

  • Getting hidden value with javascript problem

    <html>
    <body>
    <form>
    <input type="hidden" id="code" value="123">
    </form>
    </html>
    when open the html file and type "javascript:alert(document.getElementById("code").value)" in the address bar, I get a message box with "123".
    but when i do in the jsp with
    <input type="hidden" id="code" value="<%=request.getParameter("code")%>">
    and type the javascript in the address bar, i get "object not supported".
    Can anyone tell me how to get hidden value in jsp with javascript?
    thank you.

    There is no difference between a JSP or plain html, since javascript executes on the client side after the JSP is done processing. There is obviously something wrong with the HTML content after you input the request value, so check the generated HTML in your browser to see if there are any unwanted quotes in there or something.

  • Can some one help me with this problem with my frame???

    i have gt a veri strange problem with my program,that is teh graphic changes only when i resize the the frame,if i dun resize,it will remain the same.However what i intended is that when i click on the radio button,it will change immediately to the respective pages.A simple version of my code is below,can someone helpl me solve it??(there is 3 different class)
    import java.awt.event.*;
    import javax.swing.*;
    public class MainPg extends JFrame implements ActionListener{
         private javax.swing.JPanel jContentPane = null;
         private javax.swing.JPanel buttons = null;
         private javax.swing.JRadioButton one = null;
         private javax.swing.JRadioButton two = null;
         private javax.swing.JPanel change = null;
         public MainPg() {
              super();
              initialize();
         private void initialize() {
              this.setSize(300, 200);
              this.setContentPane(getJContentPane());
              this.setName("mainClass");
              this.setVisible(true);
         private javax.swing.JPanel getJContentPane() {
              if (jContentPane == null) {
                   jContentPane = new javax.swing.JPanel();
                   jContentPane.setLayout(new java.awt.BorderLayout());
                   jContentPane.add(getButtons(), java.awt.BorderLayout.WEST);
                   jContentPane.add(getChange(), java.awt.BorderLayout.CENTER);
              return jContentPane;
         private javax.swing.JPanel getButtons() {
              if(buttons == null) {
                   buttons = new javax.swing.JPanel();
                   java.awt.GridLayout layGridLayout1 = new java.awt.GridLayout();
                   layGridLayout1.setRows(2);
                   layGridLayout1.setColumns(1);
                   ButtonGroup group=new ButtonGroup();
                   group.add(getOne());
                   group.add(getTwo());
                   buttons.setLayout(layGridLayout1);
                   buttons.add(getOne(), null);
                   buttons.add(getTwo(), null);
              return buttons;
         private javax.swing.JRadioButton getOne() {
              if(one == null) {
                   one = new javax.swing.JRadioButton();
                   one.setText("One");
                   one.setSelected(true);
                   one.addActionListener(this);
                   one.setActionCommand("one");
              return one;
         private javax.swing.JRadioButton getTwo() {
              if(two == null) {
                   two = new javax.swing.JRadioButton();
                   two.setText("Two");
                   two.addActionListener(this);
                   two.setActionCommand("two");
              return two;
         private javax.swing.JPanel getChange() {
              if(change == null) {
                   change = new javax.swing.JPanel();
              change.add(new One());
              return change;
         public static void main(String[] args){
              new MainPg();
         public void actionPerformed(ActionEvent e) {
              change.removeAll();
              if("one".equals(e.getActionCommand())){
                   change.add(new One());
              else{
                   change.add(new Two());
              change.repaint();
    import javax.swing.*;
    public class One extends JPanel {
         private javax.swing.JPanel jPanel = null;
         private javax.swing.JLabel jLabel = null;
         private javax.swing.JPanel jPanel1 = null;
         private javax.swing.JLabel jLabel1 = null;
         private javax.swing.JLabel jLabel2 = null;
         public One() {
              super();
              initialize();
         * This method initializes this
         * @return void
         private void initialize() {
              this.setLayout(new java.awt.BorderLayout());
              this.add(getJPanel(), java.awt.BorderLayout.NORTH);
              this.add(getJPanel1(), java.awt.BorderLayout.WEST);
              this.setSize(300, 200);
         * This method initializes jPanel
         * @return javax.swing.JPanel
         private javax.swing.JPanel getJPanel() {
              if(jPanel == null) {
                   jPanel = new javax.swing.JPanel();
                   jPanel.add(getJLabel(), null);
              return jPanel;
         * This method initializes jLabel
         * @return javax.swing.JLabel
         private javax.swing.JLabel getJLabel() {
              if(jLabel == null) {
                   jLabel = new javax.swing.JLabel();
                   jLabel.setText("one");
              return jLabel;
         * This method initializes jPanel1
         * @return javax.swing.JPanel
         private javax.swing.JPanel getJPanel1() {
              if(jPanel1 == null) {
                   jPanel1 = new javax.swing.JPanel();
                   java.awt.GridLayout layGridLayout2 = new java.awt.GridLayout();
                   layGridLayout2.setRows(2);
                   layGridLayout2.setColumns(1);
                   jPanel1.setLayout(layGridLayout2);
                   jPanel1.add(getJLabel2(), null);
                   jPanel1.add(getJLabel1(), null);
              return jPanel1;
         * This method initializes jLabel1
         * @return javax.swing.JLabel
         private javax.swing.JLabel getJLabel1() {
              if(jLabel1 == null) {
                   jLabel1 = new javax.swing.JLabel();
                   jLabel1.setText("one");
              return jLabel1;
         * This method initializes jLabel2
         * @return javax.swing.JLabel
         private javax.swing.JLabel getJLabel2() {
              if(jLabel2 == null) {
                   jLabel2 = new javax.swing.JLabel();
                   jLabel2.setText("one");
              return jLabel2;
    import javax.swing.*;
    public class Two extends JPanel {
         private javax.swing.JLabel jLabel = null;
         public Two() {
              super();
              initialize();
         * This method initializes this
         * @return void
         private void initialize() {
              this.setLayout(new java.awt.FlowLayout());
              this.add(getJLabel(), null);
              this.setSize(300, 200);
         * This method initializes jLabel
         * @return javax.swing.JLabel
         private javax.swing.JLabel getJLabel() {
              if(jLabel == null) {
                   jLabel = new javax.swing.JLabel();
                   jLabel.setText("two");
              return jLabel;
    }

    //change.repaint();
    change.revalidate();

  • Why did my calendar view suddenly change? Using iOS 7.1 and I've been using this version for a few weeks with no problem with my calendar. Now the view has changed and I can't view a list mode without seeing the month too

    Why did my calendar view suddenly change in iCal? I've been using ios7 fôr a few weeks now with no problems. Suddenly, without any updates or anything, the calendar view changed and I can no longer view it as a list without having the entire month seen as well.

    Hey Gattypyle,
    Thanks for the question. You simply need to go back to Day/Week view, then tap the list-view icon once more.
    Calendar at a glance - iPhone
    http://help.apple.com/iphone/7/#/iph3d110f84
    View a list of events. In month view, tap to see a day’s events. In day view, Tap the to view a list of events.
    Thanks,
    Matt M.

  • Can anyone help me with a problem with Photoshop 7.0?

    I have the old Adobee Photoshop 7.0.1 and I recently ran into a problem with my Type tool that I can't figure out.
    Suddenly the type tool won't type. When I hit the type tool a LARGE cursor appears that's almost the full length of the picture I'm typing on, and it can't be scaled down, and it won't type words. After a few days of frustration I totally removed Photoshop from my system and reloaded it, but the huge cursor still exist.
    Can anyone give me an idea as to how to fix this? Please?
    DM

    Reset the type tool.
    Click on the Type tool, then click on down arrow of tool icon in upper left corner of screen.  The click on the right arrow to reveal dropdown box to reset tool.
    Earlier discussion on this: Photoshop 7.0 type tool malfunctioning

  • Can you help with technical problems with the stereo imagry option

    can you help with a technical problem with the stereo imagery option ? it won't take out lead vocal in a stereo mp3'

    Because this forum software is so absolutely USELESS now, you don't get to see the whole of the question in this view. In the other (non-list) view it says:
    "can you help with a technical problem with the stereo imagery option ? it won't take out lead vocal in a stereo mp3"
    And the answer is that if you can't isolate the vocal in the stereo field, or it is one of these odd ones where it's used inverted polarity in different parts of the stereo signal for the same vocal, then you won't be able to. But without a sample, it's impossible to tell. If you can post a link to one, that might help. It has to be external to this site though - Adobe in their infinite wisdom don't allow the posting of audio files on their audio U2U forum. Helpful, that, isn't it?

  • New with initial problems with Dreamweaver

    I am working on a large project, think of a multimedia-pedia.
    As I wish to do it by years, from 1950 to present, with 7 sub
    pages for each, I will end up with about 500 pages to horse around
    when I am done, which I expect to take a year or so. I have put up
    the first three years to test things and see how search engines see
    it and that kind of thing. It will not be viable of course until I
    am done with 1969 and I will have something to sell, THE SIXTIES.
    If you would like to see the project:
    http://1960.yearthatwas.com
    Perhaps someone could give me a few conceptual ideas on how
    best to do this in the first place...
    I only have a day looking over Dreamweaver but I have run
    into one problem that I need resolved before I can commit to it and
    DELETE that sorryass Frontpage I been messing with for most of ten
    years. :)
    This concerns just HTML at the moment.
    I loaded the 1960 page created in FP into DW.
    I created new tables at the top, moved the content into them
    and deleted the old tables. Hopefully ridding myself of bad old FP
    code.
    There are lots of new things I am having problems with but
    most will be resolved as I move along.
    But this one is stopping me in my tracks
    Design window:
    Returns to add lines between text and text and text and jpgs
    and jpgs and jpgs often do not show properly in IE and FF, and a
    few style formats, like center show differently in IE and FF.
    I can look at the code and the added lines are there, but a
    few never show up in the review.
    I am using
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    If that has anything to do with it.
    Sure FP with WYSIWYG is flaky, but I know how to deal with
    it, do I have to learn new flakyness all over again? :)

    > Sure FP with WYSIWYG is flaky, but I know how to deal
    with it, do I have
    > to
    > learn new flakyness all over again? :)
    >
    There is no such thing as WYSIWYG on the web or in web
    authoring.
    What you need to learn all over again is HTML and CSS, as
    recommended by
    Michael. DW will be a walk in the park with even an
    introductory
    familiarity with these notions.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "rack22" <[email protected]> wrote in
    message
    news:[email protected]...
    >I am working on a large project, think of a
    multimedia-pedia. :)
    > As I wish to do it by years, from 1950 to present, with
    7 sub pages for
    > each,
    > I will end up with about 500 pages to horse around when
    I am done, which I
    > expect to take a year or so. I have put up the first
    three years to test
    > things
    > and see how search engines see it and that kind of
    thing. It will not be
    > viable
    > of course until I am done with 1969 and I will have
    something to sell, THE
    > SIXTIES.
    >
    > If you would like to see the project:
    >
    http://1960.yearthatwas.com
    > Perhaps someone could give me a few conceptual ideas on
    how best to do
    > this in
    > the first place...
    >
    > I only have a day looking over Dreamweaver but I have
    run into one problem
    > that I need resolved before I can commit to it and
    DELETE that sorryass
    > Frontpage I been messing with for most of ten years. :)
    > This concerns just HTML at the moment.
    >
    > I loaded the 1960 page created in FP into DW.
    > I created new tables at the top, moved the content into
    them and deleted
    > the
    > old tables. Hopefully ridding myself of bad old FP code.
    > There are lots of new things I am having problems with
    but most will be
    > resolved as I move along.
    > But this one is stopping me in my tracks
    >
    > Design window:
    > Returns to add lines between text and text and text and
    jpgs and jpgs and
    > jpgs
    > often do not show properly in IE and FF, and a few style
    formats, like
    > center
    > show differently in IE and FF.
    > I can look at the code and the added lines are there,
    but a few never show
    > up
    > in the review.
    > I am using
    > <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    > If that has anything to do with it.
    >
    > Sure FP with WYSIWYG is flaky, but I know how to deal
    with it, do I have
    > to
    > learn new flakyness all over again? :)
    >
    >
    >
    >

  • IE shuts down with message problem with flash10e.ocx

    I have a dell Dimension E310. I keep it in top shape. But recently my IE(7) either freezes up and eventually kicks back to desktop or sometimes it comes with a message that IE has encounted a problem with flash10e.ocx and must shut down. I have been on the phone for the last 3 days with Dell Tech Support and they are no help. Can someone on here please help me. This is driving me insane!!

    Hi,
    It seems that you are having issue with Crystal reports Java SDK's.
    Post your question in [Crystal Reports Java SDK forum|SAP Crystal Reports, version for Eclipse;.
    That forum is monitored by qualified technicians and you will get a faster response there. Also, all Java SDK queries remain in one place and thus can be easily searched in one place.
    Thank you for your understanding,
    Amit

Maybe you are looking for

  • Viewing compliled code in PeopleSoft

    Hello Folks, I have a question. Does anyone know how to view the code behind the delivered peoplesoft functions?? For eg., I want to view the code that I written behind 'AddAttachment' or a 'Datetimetolocalizedstring' function. Is there any way that

  • 9ias JSP can't find Classes I created

    I created a package for my JSP and import it to be used in a JSP. It works great, but for some reason, it displays an error message saying it can't find the class in import. Can anyone explain that? Thanks.

  • System 'CE3' is not available. Make sure it is running properly.

    hi, im in CE 7.1 EHP 1. when im trayin to assig a Role to a new task in my process Model i get the error http 502. so i went to  Process Instance Tab where i got the error System 'CE3' is not available. Make sure it is running properly. whatever in w

  • Matl. where used list

    Hi Frndz, what is the t. code to see material where used report? I want to see usage of matls in BOM,Routings, Pro.orders and also it's qty. in stock at a glance. Thanks in advance, Rohit.

  • Descriptor web.xml problem !!

    Hi!, I`m trying to create a .war file that contains a group of .jsp files and another group of EJB(Session Beans). The problem is that i dont know what things i have to put in the web.xml file. I only found examples with 1 EJB and servlets(No JSP !!)