Dynamic options DWR with Tomcat

I'm no javascript hacker so I'd like to get som feedback about how this problem is solved
We want to show some dynamic option from a data set which should be updatable without changing the code and is too large to send in one piece to the client (about 1000 location names and about 20 for each areacode.) I then made like this for a given area code to populate a list where every other element is a name and every other is the id using serverside java:
public java.util.ArrayList getLocationsByAreacode(int areacode) {
       java.util.ArrayList<String> list = new java.util.ArrayList<String>();
       Connection conn = null;
       PreparedStatement ps = null;
       try {
           conn = DBSettings.getConnection();
           ps = conn.prepareStatement("select location, locationid
from location join areacodes on location.areacode = areacodes.ac join
estado on estado.estadoid=areacodes.estadoid where areacode=? order by
vieworder desc, location asc ");
           ps.setInt(1, areacode);
           ResultSet rs = ps.executeQuery();
           while (rs.next()) {
               list.add(rs.getString("location"));
               list.add(rs.getString("locationid"));
       } catch (SQLException e) {
           log.error(e);
       } catch (Exception e) {
       } finally {
           try {
               conn.close();
           } catch (SQLException e) {
                 log.error(e);
           } catch (Exception e) {
                log.error(e);
       return list;
   }Thereafter this server side java is called with Ajax:
    function updateOptions(ac){
           LocationList.getLocationsByAreacode(ac, function(data){
               if (data != null){
                   dwr.util.removeAllOptions('theLocation');
                   var i=0;
                   while(i<data.length/2){
                       document.forms[0].theLocation.options[i] = new
Option(data[2*i],data[2*i+1]);
                       ++i;
               else{
   }And this actually works well but is my first non-trivial Ajax code.
Is this a proper solution? Can you see any optimization that we can make?
How does the data structure seem where every other element is name and every other is the id?
Thank you
Niklas
Edited by: Niklas on Apr 23, 2008 1:50 AM

I'm having the same problem. I made a very complex message board using php, DWR on Apache and Tomcat. I lost a drive and all the server setup I had done. After reinstalling the server and publishing the message board backup I can't get the DWR portion to work. I get the
type: Status report
message: Servlet dwr-invoker is not available
description: The requested resource (Servlet dwr-invoker is not available) is not available.
Any suggestions?

Similar Messages

  • Dynamic select list with one static 'not_listed" option

    Hi guys,
    I want to create a dynamic select list with one static 'not_listed' option.
    One possible alternative is to add the 'not_listed' record into database, but I really dont want to go that way unless there is no other way around.
    Can anyone shed some lights on this?
    Many thanks,
    William

    As usual : "It depends"...
    If you have a foreign key defined on that field, Scott's reply won't work - unless you define '0 - Not listed' in the database. You can use selec 'not listed' d, to_number(null) r from dual though...
    Another - more declarative way - is in the on 'Edit Page Item' page, in the 'List of Values' region set 'Display Null' to 'Yes' and 'Null Display Value' to ' - Not listed - '.
    Roel

  • Adobe form -- Issue in Displaying Dynamic text along with Static text

    Hi All,
    I am having an issue when i am displaying a dynamic text along with static text in adobeforms.
    The dynamic text is slightly coming down and not aligned with the static text. i can see half row it is coming down.
    how to align both texts to be printed in same format.
    Request all of your expert advices in achieving this .
    Thank you in advance.
    Thanks&Regards,
    Phani Miriyaila.

    Hi,
    Select both dynamic and static text in the layout. Goto Object palette -> Layout. Give values to X,Y coordinates and Height & Width. Anchor properly and specify margins as well.
    Select both dynamic and static text in the layout. Right click on it and goto palettes -> Paragraph. It gives you the text alignment options. Align the text and give similar font and size.
    Thanks & Regards,
    Sanoosh

  • PDF with Tomcat/Cocoon Problem !!!

    Hi,
    I am having problem with Tomcat/Cocoon combination for APEX PDF printing which I installed following Carl Backstrom instructions.
    When a report is a region report it all works fine, but when I create a report based on a query from the reports section in Shared Components choosing report layout 'Use Generic Report Layout' I get the following error.
    javax.xml.transform.TransformerException: attribute-set named #TEXT_ALIGN# does not exist
    cocoon://fop_post/xsl - 148:58
    Cocoon stacktrace[hide]
    attribute-set named #TEXT_ALIGN# does not exist
    cocoon://fop_post/xsl - 148:58
    I will appreciate any feedback. I saw threads related to the same issue on this forum but they ended up covering something irrelevant.
    Regards,
    Vadim

    Vadim,
    Report queries and report region use the same generic report layout. However the processing is handled by different engines. The underlying technical problem with your case is that the substitution string #TEXT_ALIGN# is not substituted in all cases for report queries. This usually does not cause any problems, but appears not to work when using Cocoon.
    I'll see that we can this resolved with the next version of APEX, however when working with report layouts, you would typically use your own RTF or XSL-FO stylesheets, where this problem would not occur. The option to use the generic report layout is only included so the data can be tested independently from the layout and is not really intended to be used as the actual layout at runtime.
    The generic report layout function is mainly designed to be used for report regions.
    Regards,
    Marc

  • PDF with Tomcat - guidelines for template editing

    PDF generation with Tomcat using the standard template works fine - but is pretty bland.
    Does anyone have any guidelines for editing the template - what may / may not be included?
    Are there any GUI tools for this?
    Thanks
    Mike

    Vadim,
    Report queries and report region use the same generic report layout. However the processing is handled by different engines. The underlying technical problem with your case is that the substitution string #TEXT_ALIGN# is not substituted in all cases for report queries. This usually does not cause any problems, but appears not to work when using Cocoon.
    I'll see that we can this resolved with the next version of APEX, however when working with report layouts, you would typically use your own RTF or XSL-FO stylesheets, where this problem would not occur. The option to use the generic report layout is only included so the data can be tested independently from the layout and is not really intended to be used as the actual layout at runtime.
    The generic report layout function is mainly designed to be used for report regions.
    Regards,
    Marc

  • Where will we find dynamic option in web forms

    Hi, Gurus
    1.where will we find dynamic option in web forms?
    regards
    Taruni

    If you're talking about the dynamic POV in web forms introduced in 11.1.2.2.302, documentation only exists in the patch readme at this time. I've pasted it below.
    Support for Dynamic POV Member Lists in Web Data Forms
    This release provides support for dynamic POV member lists in Web Data Forms. You can create dynamic POV member lists to display dimension members that meet specific criteria. Dynamic POV member lists are created dynamically at runtime, based on the current POV member of one or more dimensions.
    Using dynamic POV member lists in data forms enables you to quickly populate rows and columns with valid members, depending on what has been selected in the POV. For example, you can create a dynamic POV member list that defines valid entities per year. When you select a year in the data form, the system displays only the valid entities that were defined in the member list for that year.
    Example:
    YearPOV = HS.MemberListYear
    If HS.MemberListID = 12 Then
    If YearPOV = 2011Then
    HS.AddEntityToList "Group", "CORP_OPS"
    ElseIf YearPOV = 2012 Then
    HS.AddEntityToList "Group", "CORP_OPS"
    HS.AddEntityToList "Group", "CHINA"
    HS.AddEntityToList "Group", "GERMANY"
    HS.AddEntityToList "Group", "UK"
    End if
    The basis on which the dynamic POV member lists can be created are Scenario, Year, Period, Entity, but member lists can now be created for any dimension. For example, you can create Year lists based on Entity, Custom lists based on Scenario and Entity, Account lists based on Period, and so on. The dimension on which to base the list (Scenario, Year, Period, Entity) must be in the form POV to be effective. If the dimension is not in the form POV, then the HS.MemberList<object> rule returns an empty string.
    Administrators define dynamic POV member lists in application member list files. Dynamic POV member lists are identified with the (@POV) suffix, for example, <ValidForEntity>(@POV). Each member list file must include an EnumMemberLists subroutine to specify which dimensions have dynamic POV member lists, the number of lists for each dimension, and the name of each member list. The member list file must also include an EnumMembersInList subroutine to define the members in the list.
    Administrators can then add dynamic POV member lists to a form when they define the data form, in the same way that they add other member lists.
    In an application that has dynamic POV member lists defined, users can then use the Form Designer to select member lists for the rows and columns of the form. From the Member Selection dialog box, the valid dynamic POV member lists for the current dimension are displayed with an @POV suffix at the bottom of the dialog box, and users can select them in the same way as other members.

  • Working with Tomcat

    Hi everyone!
    I am new to programming and I am struggling with Tomcat at the moment. I've installed it and I am able to run it but I have no idea where I am supposed to save the jsp files and images that I intend to use dynamically.
    I have checked all Tomcat's documentation but to tell the truth I can barely understand it, as I am a novice in all this.
    I would be grateful if someone could explain me how to operate Tomcat in a way that I can use my personal computer as the server and client at the same time, for testing purposes.
    By the way, if I click on a certain link the program requests a password. I haven't set up any and I haven't a clue how to do it. I am looking forward to hearing from you. Many thanks!
    Saulo

    Well, the book I got the info from required me to save the pages as asp and not jsp, but according to the specifications of the module I am taking at the moment at the Uni I can only use Java Server Pages. Therefore I've tried to change the code a little bit, which hasn't been successfull... Never mind.
    I have adjusted the code to your specifications, but again another error message appeared, saying the following:
    Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSPNote: sun.tools.javac.Main has been deprecated.
    An error occurred between lines: 3 and 6 in the jsp file: /BannerAdvert.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\_\BannerAdvert$jsp.java:59: Class org.apache.jsp.var not found.
    var randomAdvertNumber = parseInt (Math.random() * 3) + 1;
    ^
    An error occurred between lines: 3 and 6 in the jsp file: /BannerAdvert.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\_\BannerAdvert$jsp.java:59: Method parseInt(double) not found in class org.apache.jsp.BannerAdvert$jsp.
    var randomAdvertNumber = parseInt (Math.random() * 3) + 1;
    ^
    An error occurred between lines: 3 and 6 in the jsp file: /BannerAdvert.jsp
    Generated servlet error:
    C:\Program Files\Apache Tomcat 4.0\work\Standalone\localhost\_\BannerAdvert$jsp.java:60: Class org.apache.jsp.var not found.
    var imgName = "advertImage" + randomAdvertNumber + " .jpg";
    ^
    3 errors, 1 warning
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:285)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:548)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
         at java.lang.Thread.run(Thread.java:536)

  • Run JAAS Example with Tomcat 4

    Can someone explain me, how i can run the JAAS-Example from SUN with Tomcat.
    Please so that i can understand it, step by step.
    Thanks for your help and understand !!!

    Here you go:
    Environment Tomcat 4.1.10
    These steps will configure Tomcat Admin app so that it uses
    JAASRealm to authenticate.
    To keep things simple, I wrote a MyLoginModule that succeeds with username,password pair "jaas","jaas".
    Authentication information as well as role "admin" are hardcoded, so you do not have to worry about additional settings.
    So compile following files, and put them into e.q. tomcat/server/classes or jar them and put them to some place where
    tomcat finds them :
    --------my.MyLoginModule.java---------------
    package my;
    import java.util.Map;
    import java.security.Principal;
    import javax.security.auth.login.LoginContext;
    import javax.security.auth.Subject;
    import javax.security.auth.callback.*;
    import javax.security.auth.login.*;
    import javax.security.auth.spi.LoginModule;
    import java.io.IOException;
    public class MyLoginModule implements LoginModule {
        protected CallbackHandler callbackHandler = null;
        protected boolean committed = false;
        protected boolean debug = false;
        protected Map options = null;
        protected Principal principal = null;
        protected Map sharedState = null;
        protected Subject subject = null;
        protected void log(String message) {
            System.out.print("MyLoginModule: ");
            System.out.println(message);
        public boolean abort() throws LoginException {
            log("abort");  
            return (true);
        public boolean commit() throws LoginException {
            log("commit phase");
            // If authentication was not successful, just return false
            if (principal == null){
                log("no principal commit fails");
                return (false);
            if (!subject.getPrincipals().contains(principal))
                subject.getPrincipals().add(principal);
            // add role principals
            subject.getPrincipals().add(new MyRolePrincipal("admin"));
            committed = true;
            log("commit succesful");
            return (true);
        public void initialize(Subject subject, CallbackHandler callbackHandler,
                               Map sharedState, Map options) {
            // Save configuration values
            this.subject = subject;
            this.callbackHandler = callbackHandler;
            this.sharedState = sharedState;
            this.options = options;
       public boolean login() throws LoginException {
            log("login phase");
            // Set up our CallbackHandler requests
            if (callbackHandler == null)
                throw new LoginException("No CallbackHandler specified");
            Callback callbacks[] = new Callback[2];
            callbacks[0] = new NameCallback("Username: ");
            callbacks[1] = new PasswordCallback("Password: ", false);
            // Interact with the user to retrieve the username and password
            String username = null;
            String password = null;
            try {
                callbackHandler.handle(callbacks);
                username = ((NameCallback) callbacks[0]).getName();
                password =
                    new String(((PasswordCallback) callbacks[1]).getPassword());
            } catch (IOException e) {
                throw new LoginException(e.toString());
            } catch (UnsupportedCallbackException e) {
                throw new LoginException(e.toString());
            if (!authenticate(username,password))
                return false;
            principal  = new MyPrincipal(username);
            return true;
        public boolean logout() throws LoginException {
            subject.getPrincipals().remove(principal);
            committed = false;
            principal = null;
            return (true);
        boolean authenticate(String s,String p){
           return (s.compareTo("jaas") == 0) && (p.compareTo("jaas") == 0);  
        static public void main(String args[]) throws Exception{
            LoginContext ctx = new LoginContext("TomCatAdminApplication");
            ctx.login();
    ---------my/MyPrincipal.java-------------------
    package my;
    public class MyPrincipal implements java.security.Principal {
        String m_Name = new String("");
        public MyPrincipal(String name) {
            m_Name = name;
        public boolean equals(Object another) {
            try {
                MyPrincipal pm = (MyPrincipal)another;
                return pm.m_Name.equalsIgnoreCase(m_Name);
            } catch(Exception e){
                return false;  
        public String getName() {
            return m_Name;
        public int hashCode() {
            return m_Name.hashCode();
        public String toString() {
            return  m_Name;
    ------my/MyRolePrincipal.java-------------
    package my;
    public class MyRolePrincipal extends MyPrincipal {
        /** Creates a new instance of MyRolePrincipal */
        public MyRolePrincipal(String s) {
            super(s);
    1. Configure Tomcat Administration Application in server.xml
    <Context ..Tomcat Administration..>
         <Realm className="org.apache.catalina.realm.JAASRealm" debug="3" appName="TomCatAdminApplication" userClassNames="my.MyPrincipal" roleClassNames="my.MyRolePrincipal">
         </Realm>
    </Context>
    2. Configure the location of your JAAS configuration file in jre/lib/security/java.security
    like this:
    login.config.url.3=file:///d:/tomcats/tomcat410/auth.conf
    3. Configure JAAS - sequence for "TomCatAdminApplication" in file:///d:/tomcats/tomcat410/auth.conf
    like this:
    TomCatAdminApplication {
    my.MyLoginModule required;
    4. Thats it. Restart Tomcat, and go to admin-app with "jaas","jaas" ....debug and enjoy. After you
    got this working it is time to configure some more challenging login sequences....
    Kullervo

  • "Dynamic List Box with Single Selection" Survey Suite in CRM 6.0

    Hi
    I am using CRM 6.0. There in Survey Suite there are 2 answering options "Dynamic List Box with Single Selection" & "Dynamic List Box with Multiple Selection". I am able to make out, how we can assign values to this. I have seen example "Example_Dynamic_survey" also.
    I believe we have to use programming for populating this. But how do we have to carry that out.
    Thanx and Regards
    Hitesh

    Hi Hitesh,
    There is no need of programming for populating values for Answer category 'List Box with Single Selection' or 'List Box with Multiple Selection'. You have to follow the following steps to populate values for those:
    - In the Answer Category select List Box with Single Selection from drop down list
    - Then on left hand side tree, right click on Answer and select Insert Answer Option (Answer->Insert Answer Option)
    - Then on right side, provide Text for the answer (value)
    - To add more values, repeat the process Answer->Insert Answer Option and providing text for those answers in the right side.
    Similarly you can populate values for 'List Box with Multiple Selection' also.
    This has to be done in the transaction CRM_SURVEY_SUITE.
    Hope this is clear to you
    regards
    Srikantan

  • EXCEPTION_STACK_OVERFLOW with Tomcat - service shuts down

    Hello,
    I get the following error periodically which causes my Tomcat service to stop. There do not seem to be any exceptions listed in my log files, only the "An unrecoverable stack overflow has occurred." error listed in the jakarta_service_yyyymmdd.log file.
    I am running tomcat5.5.23 on a windows 2000 machine as a service. I used the service.bat file included with the tomcat downloads to create this service.
    I have tried a few things that i dug up while researching this error.
    The first time it happened, i increase the values for JvmMs 128 JvmMx 256 to JvmMs 256 JvmMx 512. It didnt take right away, but the next day, after one crash, the error stopped.
    The next time it happened, i found that there may be an issue with Tomcat 5.5 15+ where JSP files are cached - the solution, which worked immediately was to add this to the options "-Djava.io.tmpdir=%CATALINA_BASE%\temp;-Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true"
    The third time, I found that there were a lot of bug fixes since the version i was using to the current ( 5.5.20 -> 5.5.23 ). after installing 23, it was fine.
    This time, i was asked to increase the session timeout, so i updated the web.xml files and restarted the service - it started failing immediately afterward.
    I haven't the slightest idea what could be going on. I have tried using JProfiler and modifying code in an attempt to reduce memory usage, but i don't think that had any effect.
    I don't have any problems when running/testing the application locally through Eclipse.. This only occurs on the 'prod' server.
    Please help, my users are not pleased.
    Listed below is the log entry from the system32 dir :
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_STACK_OVERFLOW (0xc00000fd) at pc=0x080ad956, pid=1800, tid=1876
    # Java VM: Java HotSpot(TM) Server VM (1.4.2_13-b06 mixed mode)
    # Problematic frame:
    # V [jvm.dll+0xad956]
    --------------- T H R E A D ---------------
    Current thread (0x00655068): JavaThread "CompilerThread0" daemon [_thread_in_native, id=1876]
    siginfo: ExceptionCode=0xc00000fd, ExceptionInformation=0x00000001 0x545c0ffc
    Registers:
    EAX=0x55f14810, EBX=0x55f14810, ECX=0x545ff534, EDX=0x00000001
    ESP=0x545c1000, EBP=0x00000002, ESI=0x00000000, EDI=0x545ff494
    EIP=0x080ad956, EFLAGS=0x00010202
    Top of Stack: (sp=0x545c1000)
    0x545c1000: 55f14810 545ff534 080ada7a 545ff494
    0x545c1010: 55f14810 545ff494 00000000 00000037
    0x545c1020: 55ff98cc 545ff534 080ada7a 545ff494
    0x545c1030: 55f14810 545ff494 00000000 00000001
    0x545c1040: 55ff988c 545ff534 080ada7a 545ff494
    0x545c1050: 55ff98cc 545ff494 00000000 00000002
    0x545c1060: 55ff985c 545ff534 080ada7a 545ff494
    0x545c1070: 55ff988c 545ff494 00000000 00000001
    Instructions: (pc=0x080ad956)
    0x080ad946: 5e 83 c4 0c c2 04 00 90 90 90 51 53 8b 5c 24 10
    0x080ad956: 55 8b e9 8b 4b 1c 56 57 8b 7c 24 18 8b d1 89 6c
    Stack: [0x545c0000,0x54600000), sp=0x545c1000, free space=4k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    V [jvm.dll+0xad956]

    Hi, i had found some documentation that gave the meaning of some of the text in that error log. They had a suggested workaround that seems to have worked out for the time being. It said to switch to the client jvm rather than the server. As far as I can tell, there is no performance hit or drawback, so i am going to go with this until something else happens.
    Tim.

  • Can't create dynamic html elements with jsp????? important

    Hi All,
    I am having problem creating dynamic html elements with jsp tags, i have tried to use EL and java scriplet, both of them don't work.
    i am trying to create dynamic menu in my "rightMenu.jspf", based on, if user has logged in or not.
    some like this!
    <jsp:if test ="${validUser == null}">
    some simple text menu here
    </jsp:if>
    but it is not working. it simply loading all and images with in statement, regardless of whether user has logged in or not. i think some how if statement is not working properly.
    "validUser" is a session bean, which is not creating at this point, it will created when user will log in successfully. and also this session bean does not exist at the page, where i am trying to check that .
    Is there any way to create dynamic values in jsp. It is really important, is there any body who help me in this matter. i would be really grateful.
    zaman

    hi jaspre,
    thanks for replying me. you know what, is it not something wrong with web.xml file. i remember once, i deleted some from there, a property with "*.jsp". i can't remember what exactly was it though.
    all if statements works on files ending with extension ".jsp" but don't work only on with extension ".jspf". there must be to do with this.
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
    <servlet>
    <servlet-name>ValidateServlet</servlet-name>
    <servlet-class>ValidateServlet</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>ValidateServlet</servlet-name>
    <url-pattern>/ValidateServlet</url-pattern>
    </servlet-mapping>
    <servlet>
    <servlet-name>dwr-invoker</servlet-name>
    <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class>
    <init-param>
    <param-name>debug</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>pollAndCometEnabled</param-name>
    <param-value>true</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>dwr-invoker</servlet-name>
    <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>
    30
    </session-timeout>
    </session-config>
    <welcome-file-list>
         <welcome-file>
    main.jsp
    </welcome-file>
    </welcome-file-list>
    </web-app>
    if any one can figure it out. i would be grateful.
    zaman

  • Dynamic VLAN Assignment with RADIUS Server and Aironet Access Points

    Hi Guys,
    I would like to go for "Dynamic VLAN Assignment with RADIUS Server and Aironet Access Points 1300". I want the AP to broadcast only 1 SSID. The client find the SSID ->put in his user credential->Raudius athentication->assign him to an specific vlan based on his groupship.
    The problem here is that I don't have a AP controller but only configurable Aironet Access Points 1300. I can connect to the radius server, but I am not sure how to confirgure the AP's port, radio port, vlan and SSID.
    http://www.cisco.com/en/US/tech/tk722/tk809/technologies_configuration_example09186a008076317c.shtml#switch
    I go through some references:
    3.5  RADIUS-Based VLAN Access Control
    As discussed earlier, each SSID is mapped to a default VLAN-ID on the wired side. The IT administrator may wish to impose back end (such as RADIUS)-based VLAN access control using 802.1X or MAC address authentication mechanisms. For example, if the WLAN is set up such that all VLANs use 802.1X and similar encryption mechanisms for WLAN user access, then a user can "hop" from one VLAN to another by simply changing the SSID and successfully authenticating to the access point (using 802.1X). This may not be preferred if the WLAN user is confined to a particular VLAN.
    There are two different ways to implement RADIUS-based VLAN access control features:
    1. RADIUS-based SSID access control: Upon successful 802.1X or MAC address authentication, the RADIUS server passes back the allowed SSID list for the WLAN user to the access point or bridge. If the user used an SSID on the allowed SSID list, then the user is allowed to associate to the WLAN. Otherwise, the user is disassociated from the access point or bridge.
    2. RADIUS-based VLAN assignment: Upon successful 802.1X or MAC address authentication, the RADIUS server assigns the user to a predetermined VLAN-ID on the wired side. The SSID used for WLAN access doesn't matter because the user is always assigned to this predetermined VLAN-ID.
    extract from: Wireless Virtual LAN Deployment Guide
    http://www.cisco.com/en/US/products/hw/wireless/ps430/prod_technical_reference09186a00801444a1.html
    ==============================================================
    Dynamic VLAN Assignment with RADIUS Server and Wireless LAN Controller Configuration Example
    http://www.cisco.com/en/US/tech/tk722/tk809/technologies_configuration_example09186a008076317c.shtml#switch
    ==============================================================
    Controller: Wireless Domain Services Configuration
    http://www.cisco.com/en/US/products/hw/wireless/ps4570/products_configuration_example09186a00801c951f.shtml
    Any help on this issue is appreicated.
    Thanks.

    I'm not sure if the Autonomous APs have the option for AAA Override.  On the WLC, I can go into the BSSID, Security, Advanced, and there's a checkbox that I would check to allow a Radius server to send back the VLAN.
    I did a little research and it looks like the 1300 may give this option but instead is defined as "VLAN Override".  I've found the release notes for 12.3(7)JA5 (not sure what version you're running) that give mention and a link to configuring EAP on page 4: http://www.ciscosystems.ch/en/US/docs/wireless/access_point/1300/release/notes/o37ja5rn.pdf
    Hope this helps

  • Can not see the option Execution with Data Change in the infoprovider?

    Hi team,
    i am using query designer 3.x, when i go into my bex brodcaster settings and schedule my report
    i can not see the option "Execution with Data Change in the infoprovider",
    i can only see 2 options
    Direct scheduling in background process
    create new scheduling
    periodic,
    is there any setting which i would be able to see the option "Execution with Data Change in the infoprovider"?
    kindly assist

    Hi Blusky ,
    check the below given link.
    http://help.sap.com/saphelp_nw04/Helpdata/EN/ec/0d0e405c538f5ce10000000a155106/frameset.htm
    Regards,
    Rohit Garg

  • Apex 3.0 Q: "Optional Label with Help" default when creating new form?

    When I create a new application, usually one of the first things I do is set the default item label to "Optional", so I don't have the annoying popup help link.
    Now, when you create a new Form region, based on a table, for all the items the label is set to "Optional label with help". Am I right in hoping this is something that was overlooked when developing Apex, and that it will be fixed in version 3.0, so that it sets the items to the default label as set in the Shared Components?
    And is there a way to change the labels for a lot of items at the same time, other than changing the theme templates?

    AFAIK, label help in default manner is based on column coments of a table.
    Later there is now way to easy reedit these values but manually...

  • Dynamic Calc Member with Formula to Calculate a Rolling 13 Year

    I have to create a rollup in my time dimension that will have 13 members representing each month of a 13 rolling forecast. I am having trouble setting this up as dynamic calc members with a formula assigned to it. For example, on of the members has the following formula.
    As you can see, I am referencing several substitution variables since I want to make this as most dynamic as possible without having to make any changes to the formula member. Only making changes to the substitution variable. Any help would be much appreciated.
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Jan"));
    "RTM 6" = @MDSHIFT(&Act_RF_Last_Month, -1, "Years", , 5, "Period",);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Feb"));
    "RTM 6" = @MDSHIFT(&Act_RF_Last_Month, -1, "Years", , 5, "Period",);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Mar"));
    "RTM 6" = @MDSHIFT(&Act_RF_Last_Month, -1, "Years", , 5, "Period",);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Apr"));
    "RTM 6" = @MDSHIFT(&Act_RF_Last_Month, -1, "Years", , 5, "Period",);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "May"));
    "RTM 6" = @MDSHIFT(&Act_RF_Last_Month, -1, "Years", , 5, "Period",);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Jun"));
    "RTM 6" = @MDSHIFT(&Act_RF_Last_Month, -1, "Years", , 5, "Period",);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Jul"));
    "RTM 6" = @MDSHIFT(&Act_RF_Last_Month, -1, "Years", , 5, "Period",);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Aug"));
    "RTM 6" = @SHIFT(&Act_RF_Last_Month,-7);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Sep"));
    "RTM 6" = @SHIFT(&Act_RF_Last_Month,-7);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Oct"));
    "RTM 6" = @SHIFT(&Act_RF_Last_Month,-7);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Nov"));
    "RTM 6" = @SHIFT(&Act_RF_Last_Month,-7);
    ELSE #Missing;
    ENDIF
    IF((@ISMBR(&Current_Year)) AND (&Act_RF_Last_Month == "Dec"));
    "RTM 6" = @SHIFT(&Act_RF_Last_Month,-7);
    ELSE #Missing;
    ENDIF

    We use similar logic but its in a calc script, not a dynamic formula.
    Here's an example of what we do:
    FIX (&Year, &Scenario)
    IF (@ISMBR("JAN"))
    "Average Usage%" = @AVG(SKIPBOTH, @MDSHIFT("Usage %"->"DEC"->&actYear, -1, "Year",), "Util %"->"JAN"->&actYear);
    ELSEIF
    ENDFIX
    Another example in a different database:
    IF (@ISMBR("JAN")) ((@MDSHIFT("Fees"->APR,-1,YEARS,)+@MDSHIFT("Fees"->MAY,-1,YEARS,)+@MDSHIFT("Fees"->JUN,-1,YEARS,)+@MDSHIFT("Fees"->JUL,-1,YEARS,)+@MDSHIFT("Fees"->AUG,-1,YEARS,)+@MDSHIFT("Fees"->SEP,-1,YEARS,)+@MDSHIFT("Fees"->OCT,-1,YEARS,)+@MDSHIFT("Fees"->NOV,-1,YEARS,)+@MDSHIFT("Fees"->DEC,-1,YEARS,)+"Fees"->JAN)/10)*12;

Maybe you are looking for