How to get Workshop to ?keepgenerated? JSP source?

Hi,
Has anyone figured out how to get Workshop to “keepgenerated” JSP source? In WEB-INF,
the file wldynamic_change_list.properties, has a jspKeepGenerated=true setting,
but I can’t find where it’s putting the JSP classes or java files.
Also, I've verified this is in my weblogic.xml..
<jsp-param>
<param-name>keepgenerated</param-name>
<param-value>true</param-value>
</jsp-param>

Phil,
One of the main disadvantages of not using the built in JSP compiler is that
you will not be able to debug the JSP. If you need to debug your JSP, please
use the IDE to build the project, or right click the JSP and choose 'run
JSP'.
Regards,
Raj Alagumalai
WebLogic Workshop Support
"Phil Grimm" <[email protected]> wrote in message
news:[email protected]...
>
Anurag,
Thanks for the quick reply. I did as you instructed and found that itprovides
a workaround, but the solution is not optimal. It does not change the JSPcompiler
used by Workshop during a "build". It only changes the JSP compiler usedby the
server to compile a JSP that has changed. So, you must "touch" the JSPfile (but
not do a WLW build) then "hit" the JSP with the browser to cause theserver to
recompile the JSP. Only then will there be a ".java" file saved.
This will have to do, but it would sure be nice if WLW could provide thissimple
capability.
Phil
"Anurag" <[email protected]> wrote:
Phil,
A webservices or web project developed in Workshop by default uses a
Workshop specific JSP compiler as can be seen in the default weblogic.xml
file:
<jsp-descriptor>
Comment the jspServlet param out to go back to weblogic's jspc
<jsp-param>
<param-name>jspServlet</param-name>
<param-value>weblogic.servlet.WlwJSPServlet</param-value>
</jsp-param>
The "keepgenerated" option is not supported by the Workshop JSP compiler.
You need to use the default WebLogic JSP compiler to do that.
As the comment above states, you can do that by commenting out the
<jspServlet> parameter. The java file is by default generated in the
<server-domain-dir>/<server-name>/.wlnotdelete/extract/<serer-name>_<webappn
ame>/jsp_servlet/
directory. This can be changed by specifying the desired location in
the
<workingDir> parameter.
Regards,
Anurag
"Raj Alagumalai" <[email protected]> wrote in message
news:[email protected]...
Phil,
Workshop has its own JSP compiler.
I will check on the keepgenerated option and get back to you.
Thanks
Raj Alagumalai
WebLogic Workshop Support
"Phil Grimm" <[email protected]> wrote in message
news:[email protected]...
Hi,
Has anyone figured out how to get Workshop to "keepgenerated" JSP
source?
In WEB-INF,
the file wldynamic_change_list.properties, has a
jspKeepGenerated=true
setting,
but I can't find where it's putting the JSP classes or java files.
Also, I've verified this is in my weblogic.xml..
<jsp-param>
<param-name>keepgenerated</param-name>
<param-value>true</param-value>
</jsp-param>

Similar Messages

  • How to get group when the data source from system instead of UME database

    Hig guys,
    How to get group when the data source comes from backend system instead of UME database?
    I tried to use
    IUMPrincipal RefGroup = WPUMFactory.getGroupFactory().getGroup(groupName);
    But I was not able to get the group. But in "UserAdministrator", I can find this groupName.
    Which kind of API can I use?
    Thanks in advance!
    Regards,
    Liying
    Message was edited by:
            Liying Wang

    Ok,
    try this:
    com.sapportals.portal.security.usermanagement.IGroupFactory ep5GroupFactory = userManagementService.getGroupFactory();
    IGroupFactory groupFactory = UMFactory.getGroupFactory();
    com.sap.security.api.IGroup group = groupFactory.getGroupByUniqueName(groupName);
    IUMPrincipal ep5Principal = ep5GroupFactory.getEP5Group(group);
    This should do the trick,
    Romano
    PS: and thanks for the stars!

  • How to get ep authority in jsp page

    Hi all:
    I want to create a j2ee project and some jsp pages to deploy to EP server.
    My question is how to get user name or user authority in jsp page.
    Is there any APIs to use or something else.
    Thanks in advance.
    Allen

    Hai ,
    I Think  This will help ful for u check it ,
    File=new FileLog("f:/WebServiceTrace/trace2.%g.log", 800000, 10,                                        new  TraceFormatter());
    The above code specifies the path for your log file.
    Then add this file as a log location and then log the traces. For this you can use the following code like:
    Location location=Location.getLocation(className);
              location.addLog(file);
              location.setEffectiveSeverity(Severity.ALL);
              location.entering(methodName);
    To Create j2ee apllication
    In path new-j2ee-jsp to create JSP's can only be used for J2EE applications.
    So as you are using this in Portal Application, this does not work.
    You can test this bahavior by creating a new Web Application (New-Project-J2EE-Web Module Project)
    In this Web Module Project, try creating JSP, this will work.
    So dont use new-j2ee-jsp to create JSP in Portal Application instead use New-File and name the file as jsp.
    Regards ,
    venkat

  • How to get table headers in jsp page

    hi,
    this is praveen, can any one help me to solve this problem.
    how to get table headers in a jsp page. whether it is possible using javascript or is there any other way.
    pls send rep.
    thank u.

    Hai ,
    I Think  This will help ful for u check it ,
    File=new FileLog("f:/WebServiceTrace/trace2.%g.log", 800000, 10,                                        new  TraceFormatter());
    The above code specifies the path for your log file.
    Then add this file as a log location and then log the traces. For this you can use the following code like:
    Location location=Location.getLocation(className);
              location.addLog(file);
              location.setEffectiveSeverity(Severity.ALL);
              location.entering(methodName);
    To Create j2ee apllication
    In path new-j2ee-jsp to create JSP's can only be used for J2EE applications.
    So as you are using this in Portal Application, this does not work.
    You can test this bahavior by creating a new Web Application (New-Project-J2EE-Web Module Project)
    In this Web Module Project, try creating JSP, this will work.
    So dont use new-j2ee-jsp to create JSP in Portal Application instead use New-File and name the file as jsp.
    Regards ,
    venkat

  • How to get result from another JSP file?

    I have to write a jsp (my.jsp) to get information from another jsp file (other.jsp).
    The other.jsp return integer value (0 / 1) so that user can tell if certain service is available or not. And in my.jsp I need to collect such result and other information from a text file to make up of a XML string.
    How can I call other.jsp to get the result? Thanks a lot.

    Hi, I think I didn't describe the problem clearly
    enough. In fact, there is a JSP file, and if our
    database is currently connected, the JSP will return
    value 1, otherwise, it will return 0. My java program
    need to get that result, and then form an XML string,
    and send the string back to the client. I'm just
    wonder how can I write such a program to read result
    from JSP file. Thanks a lot.Why is this function implemented as a JSP file? It should be implemented as a bean. It would be simple to get the information you require from that bean.

  • How to get the querystring in jsp

    hi guys
    plz help me,
    how to get the query string in jsp page, is there any methods for getting querstring like getString() getParameter() ?

    C:\Documents and Settings\Administrator\ven\build\generated\src\org\apache\jsp\getcustomer_jsp.java:62: getQueryString() in javax.servlet.http.HttpServletRequest cannot be applied to (java.lang.String)
    i am getting error like this , if i used that method, shall i import any packages?

  • How To get getServletContext() object inside JSP from  Eclipse  IDE

    Dear friends,
    I can access methods in getServletContext class from Netbeans in my JSP web project using the following steps.
    String path=getServletContext().getRealPath("\mypath");
    . But In Eclipse when i try to build,it says that "can not find method -getServletContext()".
    How to get this object in my JSP Scriptlet From Eclipse IDE? Plz help me?

    use Expression Language instead.
    I would.
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro7.html
    regards,i

  • How to get the size of JSP html output?

    Hi,
    Is there a JSP method to get the size of JSP HTML output.
    e.g. I would like to print the size of the JSP e.g.
    Size of this page is <%=pageContext.getPageSize()%> Kb ???
    Any ideas? Thanks.
    George
    Edited by: googchro on Jan 5, 2010 4:45 PM

    Would you like to print "the size of this page is..." before or after you calculate the size of the page.
    Because adding that bit of text to the page will make the page bigger...
    Doing it in java, the best approach would probably to have a filter counting the number of bytes that gets sent to the writer/output stream.
    A client side tool measuring the amount of bytes received would probably be easier though.
    You can always look at the Content-length header sent with a response. Though you normally don't have access to that on the java/jsp side, as it is sent by the container.
    cheers,
    evnafets

  • How to get multiple selections from jsp page in my servlet

    Hello Everyone,
    I've a list that allows users to make multiple selections.
    <select name=location multiple="multiple">
        <option>
             All
        </option>
        <option>
             Hyd
        </option>
        <option>
             Dub
        </option>
        <option>
             Mtv
        </option>
      </select>I want to get the selections made by user in jsp page from my servlet, selections can be multiple too.
    ArrayList locList = new ArrayList();
    locList = request.getParameter("location");when I do so, I get compilation error as the request returns string type. How do I then get multiple selections made by the user.
    Please let me know.

    For those kind of basic questions it would help a lot if you just gently consult the javadocs and tutorials.
    HttpServletRequest API: [http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpServletRequest.html]
    Java EE tutorial part II: [http://java.sun.com/javaee/5/docs/tutorial/doc/]
    Coreservlet tutorials: [http://courses.coreservlets.com/Course-Materials/]

  • How to get Tree structure in JSP page?

    Hi,
    I would like get data from the database and display the data in tree structure with the check boxes at each nodes on a jsp page with out using any third party tools. how can i do that? Do i require any new tags to fulfill this requirement?
    can any one help me out by sending any example code?
    thanks in advance.
    Regards,
    Reddy

    Once you have the data in a list or something, can't you just use <c:forEach> and then output standard nested <ul> and <li> tags to give the tree structure.
    <html>
         <style>
              li
                   list-style-type:none;
         </style>
         <body>
              <form>
                   <ul>
                        <li>
                             <input type="checkbox">Check 1</input>
                             <ul>
                                  <li>
                                       <input type="checkbox">Check 1A</input>
                                  </li>
                                  <li>
                                       <input type="checkbox">Check 1B</input>
                                  </li>
                             </ul>
                        </li>
                        <li>
                             <input type="checkbox">Check 2</input>
                             <ul>
                                  <li>
                                       <input type="checkbox">Check 2A</input>
                                  </li>
                             </ul>
                        </li>
                        <li>
                             <input type="checkbox">Check 3</input>
                        </li>
                   </ul>
              </form>
         </body>
    </html>

  • How to get date difference in data sources

    Hi,
    In SQL:SELECT DATEDIFF(day, '2005-12-30 23:59:59.9999999', '2005-12-30 00:00:00.0000000');
    output :1
    As similar way how get the datediffence in SAP business by design of the datasources.
    Regards,
    Prasad

    Hi Prasad,
         For this you have to create a Custom DATA SOURCE for the required BO. Then Select all the required fields that you want to use it in the report for that datasource.
    The 3rd step of Data Source Wizard is shown in the image, here you can add a extra field that can hold the difference between the DateTime elements present in the BO.
    In the left column BUSINESS OBJECT ELEMENT choose DATE element (1st Date).
    In the right column TRANSFORMATION choose DateTime To Duration row and in the PARAMETER Column choose the field against which you want to calculate the difference.
    In Defined Field Name enter a name, this will hold the value of the calculated difference.
    Thank You
    Shabaz

  • How to get sequencename.nextval in JSP

    In a JSP application, I would like to get a sequence number for the primary key of a view object.
    How do I go about this?.
    Thanks.
    Ravi

    Let the database trigger do this job for u, and make sure u check the "refresh after insert" at your entity object.
    null

  • How to get javascript variable in jsp variable

    Hi all,
    i have a variable str in my javascript function
    var str = somevaluei want this str value in jsp variable in the same page...
    how can this be done..???
    any ideas...
    Thanks

    I dont know if its possible or not.
    Actually it depends on what do you want to do with the variable.
    as far as assisginng value to the hidden variable is concerned it can be done this way.
    <% jsp code
    String hiddenVar = "";
    %>
    < html code
    <input type type = "hidden" name="hidden" vale="<%=hiddenVar %>"
    html ends>
    while in js function you can assign vale to the hidden variable which will ultimately assign value to the JSP variable as follows.
    var str = "value";
    document.form_name.hidden_field_name.value = str.
    hope this hepls.

  • How to get achieve this in JSP ?

    Hi friends,
    I am trying to do one scenario in jsp page. here are the steps.
    1) when i click on submit button on home page (its already there) a new window should be opened.
    2) while opening this new window , it will invoke one shell script and it results to generate one file in the server.
    3) in that window , once the file is generated hyper link should appear "click here" --> this should not appear intially/process in progress.
    4) when user clicks on this link, it should give that generated file .
    I achieved points 1,2. But struggling to get points 3 &4.
    Please find my code here , its throwing error. pls help me to solve the issue.
    code :
    <%@page language="java" %>
    <%@page import="java.util.*" %>
    <html>
    <h1 style="font-family: Georgia; font-style:italic; font-size: 16px; color: #44BDE8;">Submitted your request to server </h1>
    <marquee behavior="scroll" direction="left" style="font-family: Arial; font-style:italic; font-size: 14px; color: #B7D1DA;" >Processing ..!! Processing ..!! </marquee>
    <head>
    <%
    String unixCommand = "sh /home/dev/java/run_parse.ksh";;
    Runtime rt = Runtime.getRuntime();
    Process p = rt.exec(unixCommand);
    p.waitFor();
    values_StringBuffer.append("<a href="http://272.17.34.204:7777/tools/ready_files.zip"; /a>");
    //System.out.println(cmd[0] + " returned " + p.exitValue());
    %>
    </head>
    <body>
    </body>
    </html>

    Thanks Ankur.
    Now its not throwing any error , but my hyper link is displaying like a normal text. ( 'click here' is not activated as hyper link displaying )
    Here is the code:
    <%@page language="java" %>
    <%@page import="java.util.*" %>
    <html>
    <h1 style="font-family: Georgia; font-style:italic; font-size: 16px; color: #44BDE8;">Submitted your request to server </h1>
    <marquee behavior="scroll" direction="left" style="font-family: Arial; font-style:italic; font-size: 14px; color: #B7D1DA;"  >Processing ..!!               Processing ..!! </marquee>
    <head>
    <%
         String unixCommand = "sh /home/dev/raj/java/parse_all.ksh";
         Runtime rt = Runtime.getRuntime();
         Process p = rt.exec(unixCommand);
         p.waitFor();
    //String sLink  = http://272.17.34.204:7777/tools/ready_files.zip
      if (p.exitValue() == 0)
          System.out.println("+");
    out.write("< a href=\"http://272.17.34.204:7777/tools/ready_files.zip\">Click Here</a>");
        else
          System.out.println("-");
    %>
    </head>
    <body>
    </body>
    </html>Edited by: Rajesh on 13/06/2011 00:24

  • How to get the Definition from a source using WSIF

    Hi All,
    Definition def = WSIFUtils.getDefinitionFromLocation("http://bingweb.binghamton.edu/~npandya1/nirav/"
    , "GlobalWeather.wsdl");
    but its giving me an error:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
    at org.apache.wsif.logging.Trc.<clinit>(Unknown Source)
    at org.apache.wsif.util.WSIFUtils.getDefinitionFromLocation(Unknown Source)
    at Grid.WSIF.invoke(WSIF.java:98)
    Could anyone please tell me what are the actual parameters of the function
    getDefinitionFromLocation()
    what should be the contextURL be and location
    Thanks
    Nirav

    Check this example on Pipelinedfunction

Maybe you are looking for

  • Error while opening the console....

    Hi, I am in a paravirtualised enviornment. I have installed VM server,Vm manager and i have installed virtual machine.My problem is when i try to open the console from vm manager i am getting this error.. Java Plug-in 1.6.0_20 Using JRE version 1.6.0

  • Why Apple TV? Can I just connect my iPad to my TV?

    I'm really only using my Apple TV to watch Netflix and purchas the occasional movie.  Couldn't I save the $99 and just connect my iPad to my TV and do the same?  Thanks!

  • Outer join not working

    Hello everybody, I have a folder based on materialized view (Detailed folder). There is another folder which is based on a table (master folder). i have created a jooin and select option as "outer join on master folder". The join is not working prope

  • Links not opening firefox

    I have been trying to open links sent via email and in Bionic Manager. No success. Bionic manager mentions I should set the Environment Variable for the browser. Can someone tell me how to solve this problem? I have set Firefox as the default browser

  • When I try to log in to an online auction website, Firefox simply keeps reloading the "enter login information" page. I can log in just fine on IE.

    I buy and sell sport clay sport shooting accessories on "GunBroker-dot-com". To get in, you have to enter a user name and a password. This worked fine on IE, and used to work on Firefox, but about four days ago, when I would try to log in to the site