JSP1.2 scripting variable! help!!

JSP1.2 scripting variable! help!!
Posted by: Tony Liu on August 18, 2005 @ 03:06 PM
TOMCAT5/jsp1.2. I am using custom tag to expose a variable�Cthen a jsp script references an object that tag exposes. However, error happens to me always. "variable cannot be resolved". looks it cant expose the variable to jsp page.
My code:
TLD file:
<variable>
<name-from-attribute>method</name-from-attribute>
<variable-class>java.lang.String</variable-class>
<declare>true</declare>
<scope>AT_BEGIN</scope>
</variable>
someTag.java
pageContext.setAttribute("method",string1);
somePage.jsp
<%=method%>
error:
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 90 in the jsp file: /Tony/amvetsform.jsp
Generated servlet error:
method cannot be resolved
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:397)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Who could let me know what's wrong with it? Bug from Tomcat? Or, I missed something to produce a scripting variable for jsp? It was supposed to be easy to expose a variable....
Thanks in advance.
Tony

A bit more info please.
How are you using this with your tag?
The code from your JSP with
- your custom tag being used
- where it is in relation to your scriptlet expression.
The "name-from-attribute" means that the name of the created variable is defined by the "method" attribute of your tag.
<my:tag method="theNameOfMyVariable">
  <%= theNameOfMyVariable %>
</my:tag>Where do you use the variable in relation to where the tag is?
Declaring it AT_BEGIN means that it is available from the start tag to the close of any enclosing custom tag.
It won't be a bug in Tomcat. Always assume it is a problem with your code. 99.99% of the time, that assumption is correct.
Cheers,
evnafets

Similar Messages

  • Returning/passing Java script variable/value to PL/SQL environment

    Hi,
    Can someone give me a sample code about how to return a Java script variable to PLSQL environment?
    for example, I have a javascript function that returns timestamp in milisecond, I then want to write PLSQL code to call this java script function and save its value in a number-typed plsql variable for further calculation, I dont know how the two scripting language communicate.
    Thank you very much
    Binh
    null

    This is quite simple.
    I assume that you are able to define html form side through pl/sql. Suppose your new pl/sql value is v_time then in the procedure that you write include one more statement
    htp.p('<Input type=hidden name="v_time" value="">');
    and also in the form invocation,
    htp.p('<form name=app method=post action="time_handler" onSubmit="return false;">');
    and to the end you must be having a submit
    to it attach a onClick function that calls
    simply our validate function..
    eg htp.p('<Input type=submit value="process"
    onClick="validate();">');
    Include in the head portion
    the following script using htp.p procedure
    function validate()
    app.v_time.value=<calculated value>;
    return app.submit();
    Hope this helps.
    Nat
    null

  • Scripting variables and custom tags

    Hello,
    I wonder how I could use a scripting variable in a custom tag? I have written a tag that formats number and dates, and would like to be able to do somethin like
    <% double x = 12,345; %>
    <x:write name="x" format="xyz" />
    Also I wonder how best to implement tags with parameters? I don't suppose it's possible to nest tags or scriplets in a way like <x:bla name="test" value="<%= 12345 %>" />? It seems tedious having to create an Object just to pass a Parameter.
    Many thanks in advance for any help!
    Bjoern

    I think I found the solution,
    pageContext.setAttribute(...,...)

  • Cannot initialize default script variable

    Hello,
    I am using Unified CCx Editor version 7.0(1.168). I created a script to be used instead of the system default script. According to the help file, "All script variables from the main script can initialize the default script variables, if the designer defines them using the same name and type". However, the variables in my default script are never initialized even though the same variables in the main script are changed before the main script terminates. I made sure they have the same name and type, but the values in the default script remain unchanged.
    All the variables I am trying to pass are of type String, and initially they are all set to the empty string "" in both scripts.
    Does anyone know what's wrong?
    Thank you.

    Hi
    I'm not sure I understand what you are asking, but will try telling you this to see if it makes things clearer:
    Basically the variables in each script (i.e. each .aef file) are unique to the .aef, there is no way to change a variable in one and have it directly affect the state of a variable in another. Even if you are looking at two executions of the same .aef script, the variables are unique/distinct instances; there is no concept of 'static' variables.
    Regards
    Aaron

  • OpenScript script variables - can store multiple values or an array?

    Hello,
    I'm helping with a proof-of-concept for driving the Primavera P6 web services using OpenScript, and I'm having a bit of trouble using the script variables. One of the web services can return anywhere from 0 to many objects, and I was trying to save those object IDs into a script variable. The built-in "substitute variable" seemed to work great, but the variable only contains the last result, not all of them. Here's the line that's saving the value:
    http.solve("objIdsToDelete", "<ObjectId>(.+?)</ObjectId>", "", true, Source.Html, 0, EncodeOptions.None);
    Even if there are, for example, 5 <ObjectId> in the response, the variable only has the last result... Any suggestions on how I can tweak this (different regular expression?) to either store an array or a comma-separated list of all the values?
    Thanks!
    -Troy Newton

    Hi Troy,
    Sorry about my last answer. It wasn't too specific. So if you want to collect the whole array instead of a specific value (referenced by the index) you would change e.g.
    http.solve("formsload.loginsubmit_1",
                                  "FORM_SUBMIT_BUTTON':'(.+?)'", "", false, Source.Html,
                                  1, EncodeOptions.None);
    which would give you the second value from the array (remember that arrays are indexed from 0) to
    http.solve("formsload.loginsubmit_1",
                                  "FORM_SUBMIT_BUTTON':'(.+?)'", "", false, Source.Html,
                                  null, EncodeOptions.None);
    Notice the null, this will return an array to the coolection. You can then reference these by:
              String myStrings[]=getVariables().getAll("formsload.loginsubmit_1");
                        info("Number of elements in array is :" + myStrings.length);
                        for (int i=0;i<myStrings.length;i++)
                             info("Element Number " + i + ":" + myStrings [ i ] );
    This will result in an output like:
    0 Passed Comments: Number of elements in array is 2
    0 Passed Comments: Element Number 0: Submit Button
    0 Passed Comments: Element Number 1: Cancel
    I hope this helps.....
    Regards
    Wayne.
    Edited by: byrne_wayne on Nov 26, 2010 1:40 PM
    Edited by: byrne_wayne on Nov 26, 2010 4:42 PM

  • In Scripts Variable window and constant wind difference?

    In Scripts Variable window and constant window  difference?pls help me

    Hi
    VAR - Window with variable contents. The text can vary on each page in which the window is positioned. Variable windows are formatted for each page.
    CONST - Window with constant contents which is only formatted once.
    CONSTANT WINDOW
    A window of type CONST has the same contents and size on all layout set pages, on which a corresponding page window is defined. This allows the processing of the window contents to be optimized internally.
    Page windows whose allocated window is of type CONST must have the same size throughout the layout set. If a window of type CONST is full, all remaining text the application program wants to output in this window, is lost. Constant windows do not trigger a page break. In other words: all text exceeding the window size is simply truncated.
    VARIABLE WINDOW
    The contents of variable windows is processed again for each page, on which the window appears. The system outputs only as much text as fits into the window. Text exceeding the window size is truncated; the system does not trigger a page break. Unlike constant windows, the page windows declared as variable windows may have different sizes on different layout set pages.
    As far as the processing of the window contents is concerned, the system currently treats constant and variable windows alike. The only difference is that constant windows have the same size throughout the layout set.
    Edited by: Jyothsna M on Feb 20, 2008 7:48 AM

  • How to access a JAVA Script variable in JSP Code

    How to access a JAVA Script variable in JSP Code. I have been unable todo this.
    Plz Suggest a way.
    Thanks
    Soumya

    try to do this code
    String s=request.getParameter("javascriptvariablename");

  • "Expected end of line, etc. but found end of script." HELP!!

    When I try to run my script, it say "(null.)" When I try to compile it or save it as an application, it says "Expected end of line, etc. but found end of script." HELP!!!
    Here is my script:
    display dialog "WARNING! a virus has been detected and the system is crashing" buttons {"shut down computor to preserve contents", "burn virus file"} default button 2
    if the button returned of the result is "burn virus file" then
    say "warning the virus has reacted to its deletion and has activated itself"
    say "virus is now in control of the users computor"
    say "if you try to stop the virus it will delete all user data"
    tell application "Safari"
    activate
    open location "http://www.facebook.com"
    open location "http://www.yahoo.com"
    open location "http://www.gmail.com"
    open location "http://www.youtube.com"
    end tell
    tell application "iTunes"
    activate
    play
    end tell
    tell application "iCal"
    activate
    end tell
    tell application "Terminal"
    activate
    end tell
    tell application "Finder"
    quit
    end tell
    if the button returned of the result is "shut down computor to preserve contents" then
    say "your computor will shut to protect your files."
    say "shut down in t-3"
    say "2."
    say "1."
    say "goodbye"
    say "it appears that there is a problem"
    say "the virus is starting to take over your system"
    beep 17
    display dialog "how DARE you try to delete me. I am now going to take over your computer." buttons {"**** YOU GET OUTTA MY COMPUTER", "OK, have fun!!"} default button "OK, have fun!!"
    if the button returned of the result is "OK, have fun!!" then
    say "thank you!!"
    say "watch this!"
    Tell application "iChat"
    quit
    end tell
    Tell application "Finder"
    quit
    end tell
    if the button returned of the result is "**** YOU GET OUTTA MY COMPUTER" then
    say "That attitude will not be tollerated."
    say "Dum dum dum dum dum dum dum he he he ho ho ho fa lah lah lah lah lah lah fa lah full hoo hoo hoo" using "Cellos"
    display dialog "A virus has been detected going through your files. Would you like to try to stop this?" buttons {"OK"} default button "OK"
    if the button returned of the result is "OK" then
    beep 5
    display dialog "there has been an error. Do you want to try to force quit?" buttons "Yes" default button "Yes"
    if the button returned of the result is "Yes" then
    say "Well, thats just too bad!"
    beep 2
    say "Sorry about that."
    say "The virus has been purged from your system."
    say "Your computer will now restart to make sure that all traces of the virus have been removed."
    say "shut down in t-3"
    say "2"
    say "1"
    say "goodbye"
    tell application "Finder"
    restart
    end tell
    end if

    You need to complete compound if statements with an end if - see the AppleScript Language Guide for a description of the various kinds of if statements.
    Although I don't think it is going to do what you expect, your script would look something like:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the AppleScript Editor">
    display dialog "WARNING! a virus has been detected and the system is crashing" buttons {"shut down computor to preserve contents", "burn virus file"} default button 2
    if the button returned of the result is "burn virus file" then
    say "warning the virus has reacted to its deletion and has activated itself"
    say "virus is now in control of the users computor"
    say "if you try to stop the virus it will delete all user data"
    tell application "Safari"
    activate
    open location "http://www.facebook.com"
    open location "http://www.yahoo.com"
    open location "http://www.gmail.com"
    open location "http://www.youtube.com"
    end tell
    tell application "iTunes"
    activate
    play
    end tell
    tell application "iCal"
    activate
    end tell
    tell application "Terminal"
    activate
    end tell
    tell application "Finder"
    quit
    end tell
    else if the button returned of the result is "shut down computor to preserve contents" then
    say "your computor will shut to protect your files."
    say "shut down in t-3"
    say "2."
    say "1."
    say "goodbye"
    say "it appears that there is a problem"
    say "the virus is starting to take over your system"
    beep 17
    end if
    display dialog "how DARE you try to delete me. I am now going to take over your computer." buttons {"**** YOU GET OUTTA MY COMPUTER", "OK, have fun!!"} default button "OK, have fun!!"
    if the button returned of the result is "OK, have fun!!" then
    say "thank you!!"
    say "watch this!"
    tell application "iChat"
    quit
    end tell
    tell application "Finder"
    quit
    end tell
    else if the button returned of the result is "**** YOU GET OUTTA MY COMPUTER" then
    say "That attitude will not be tollerated."
    say "Dum dum dum dum dum dum dum he he he ho ho ho fa lah lah lah lah lah lah fa lah full hoo hoo hoo" using "Cellos"
    end if
    display dialog "A virus has been detected going through your files. Would you like to try to stop this?" buttons {"OK"} default button "OK"
    if the button returned of the result is "OK" then
    beep 5
    display dialog "there has been an error. Do you want to try to force quit?" buttons "Yes" default button "Yes"
    else if the button returned of the result is "Yes" then
    say "Well, thats just too bad!"
    beep 2
    say "Sorry about that."
    say "The virus has been purged from your system."
    say "Your computer will now restart to make sure that all traces of the virus have been removed."
    say "shut down in t-3"
    say "2"
    say "1"
    say "goodbye"
    tell application "Finder"
    restart
    end tell
    end if
    </pre>

  • Passing Script variable to Package variable, ultimately used as fileName

    Following an excellent post by Geplaatst door Joost, I put together a script which SHOULD populate a package variable, then use that variable as a file name.
    The Script code is as follows:
    public class ScriptMain : UserComponent
    string iScriptVar;
    public override void PreExecute()
    base.PreExecute();
    public override void PostExecute()
    base.PostExecute();
    Variables.ExtractName = iScriptVar.ToString();
    public override void Input0_ProcessInputRow(Input0Buffer Row)
    if (!Row.CUSIP_IsNull)
    iScriptVar = Row.CUSIP.ToString();
    A Windows message box (put in as debug, but removed for brevity here) shows the correct value is being set to iScriptVar at all points it was inserted.
    The "ExtractName" variable is checked as a ReadWriteVariables for the Script properties.
    But, the "ExtractName" package variable is not being passed to the Expressions for the FlatFile Connection properties, which is set to:  @[User::ExtractName].
    Where have I gone wrong?

    Why not to provide the link to the post already?
    iScriptVar
    is a local to script variable this explains why it did not you need the full wiring
    e.g.
    Dts.Variables["User::iScriptVar"].Value = iScriptVar
    Arthur
    MyBlog
    Twitter

  • How to pass a result of SQL query to shell script variable

    Hi all,
    I am trying to pass the result of a simple SQL query that only returns a single row into the shell script variable ( This particular SQL is being executed from inside the same shell script).
    I want to use this value of the variable again in the same shell scirpt by opening another SQL plus session.
    I just want to have some values before hand so that I dont have to do multiple joins in the actual SQL to process data.

    Here an example :
    SQL> select empno,ename,deptno from emp;
         EMPNO ENAME          DEPTNO
          7369 SMITH              20
          7499 ALLEN              30
          7521 WARD               30
          7566 JONES              20
          7654 MARTIN             30
          7698 BLAKE              30
          7782 CLARK              10
          7788 SCOTT              20
          7839 KING               10
          7844 TURNER             30
          7876 ADAMS              20
          7900 JAMES              30
          7902 FORD               20
          7934 MILLER             10
    14 rows selected.
    SQL> select * from dept;
        DEPTNO DNAME          LOC
            10 ACCOUNTING     NEW YORK
            20 RESEARCH       DALLAS
            30 SALES          CHICAGO
            40 OPERATIONS     BOSTON
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    $ cat my_shell.sh
    ### First query #####
    ENAME_DEPTNO=`sqlplus -s scott/tiger << EOF
    set pages 0
    select ename,deptno from emp where empno=$1;
    exit
    EOF`
    ENAME=`echo $ENAME_DEPTNO | awk '{print $1}'`
    DEPTNO=`echo $ENAME_DEPTNO | awk '{print $2}'`
    echo "Ename         = "$ENAME
    echo "Dept          = "$DEPTNO
    ### Second query #####
    DNAME_LOC=`sqlplus -s scott/tiger << EOF
    set pages 0
    select dname,loc from dept where deptno=$DEPTNO;
    exit
    EOF`
    DNAME=`echo $DNAME_LOC | awk '{print $1}'`
    LOC=`echo $DNAME_LOC | awk '{print $2}'`
    echo "Dept Name     = "$DNAME
    echo "Dept Location = "$LOC
    $ ./my_shell.sh 7902
    Ename         = FORD
    Dept          = 20
    Dept Name     = RESEARCH
    Dept Location = DALLAS
    $                                                                           

  • Passing importing parameter in  ABAP to  java script variable

    Hi Experts,
    I am calling a ABAP function module in javascript.Now how can I take importing parameter in  ABAP to java script variable. Because I need to give alert using the improting Paramter value...
    Thanks in advance..
    RR

    to pass ABAP variable value to javascript variable the syntax is
    var myjsvariable = "<%=abapvariable%>";
    Edited by: Durairaj Athavan Raja on Jul 29, 2009 2:39 PM

  • IntelliJ IDEA - missing scripting variables

    I have set up a CQ5 project in IntelliJ, but there's one thing that's still missing. I'm using the CQ taglib and cq:defineObjects:
    <%@taglib prefix="cq" uri="http://www.day.com/taglibs/cq/1.0" %>
    <cq:defineObjects />
    All the needed JARs are included and all imports, taglibs etc. look good.
    However, when I try to use the defined scripting variables (slingRequest, currentPage, resource etc.) IntelliJ is unable to resolve them.
    Any ideas on what to do?

    I have exactly the same problem with weblogic 6.0 This seems to be a pretty obvious bug, could someone from weblogic comment on this?
              I've compiled jsp files with the scripting variable scoped NESTED and it is never declared anywhere in the compiled jsp file. If I changed the scoping to either AP_BEGIN or
              AT_END it is declared appropriately.
              Wendell Nichols
              Amdahl Software Ltd.
              Jan Pernica wrote:
              > Hello everybody
              >
              > We have implemented a set of tags declaring the NESTED scripting variables. When generating the java file the WL does not generate the declaration directives for variables.
              >
              > It works fine on TOMCAT but id does not work on WL 5.1.
              >
              > We had to change the scope of varibles from NESTED to AT_BEGIN and it works now.
              >
              > Any idea
              >
              > Thank you
              >
              > Jan
              

  • Scripting variable

    Is there a any chance to make scripting variable act lika a managed bean? If I define my bean as scripting variable, not managed bean and when page is loaded, bean isn't initialized.
    <h:inputText styleClass="inputText" id="postnumber" value="#{bean.postnumber}"/>
    Is there a way to initilize bean in beackingBean and then use it like this at page?

    Any examples or references? I'm pretty new withj JSF. All I fing from google is about Spring integration.

  • DVD Audio and Subtitle script Please HELP

    Subtitle Audio Scripts Please Help
    Posted: Sep 3, 2006 8:04 PM
    I need to write a script that does the following:
    1st I have the end user choose if they want subtitles on or off and then both the buttons will default for the user to chose a language choice. So I need a script that will play just audio streams and a script that will play audio with the same language subtitle. Also if the user just pushes the language button I need the script it to default to play just that language...
    Here is what I have scripted already please tell me where my mistake is:
    Button Command
    Subtitles
    On mov GPRM 0,0
    Jump Special Features: English
    Off mov GPRM 0,1
    Jump Special Features: English
    English 1. mov GPRM 0,2
    2. Set System stream Au(Audio Stream 1) if (0=0)
    3. Set System Stream St(Subtitle Stream 1)(ON) if (0=0)
    4. Goto 11 if (GPRM 0=0)
    5. Set System stream Au(Audio Stream 1) if (0=1)
    6. Set System Stream St(Subtitle Stream 1)(Off) if (0=1)
    7. Goto 11 if (GPRM 0=1)
    8. Set System stream Au(Audio Stream 1) if (0=2)
    9. Set System Stream St(Subtitle Stream 1)(Off) if (0=2)
    10. Goto 11 if (GPRM 0=2)
    11. Jump JOFDVD:Start
    12. Exit
    All my language scripts will be similar just with different audio and sub streams.
    Help Please-
    Ryan-

    Hi There
    I think your error is in the first line of your script.
    You're using GPRM 0 to set your subtitle condition and when you press enter on your english button your first line says
    1. mov GPRM0,2
    I'm assuming you want to use this first comand to set your languange condition so you should use GPRM 1 (or more) - at this stage all you're doing is removing the subtitle condition set by your earlier script.
    Good luck
    Cheers
    B

  • Task Scheduling Script - Need help with passing the scheduled command (variables are not being evaluated)

    Hi Everyone,
    I'm trying to get a simple task scheduler script to work for me and can't get the command I need passed to the scheduler to evaluate properly.
    Here's the script:
    ###Create a new task running $Command and execute it Daily at 6am.
    $TaskName = Read-Host 'What would you like this job to be named?'
    $Proto = Read-Host 'What is the protocol? (FTP/FTPS/SFTP)'
    $User = Read-Host 'What is the user name?'
    $Pwd = Read-Host 'What is the password?'
    $Server = Read-Host 'What is the server address?'
    $NetworkDir = Read-Host 'Please input the network location of the file(s) you wish to send. Refer to documentation for more details.'
    $RemoteDir = Read-Host 'Please input the REMOTE directory to which you will upload your files. If there is none please input a slash'
    $Command = 'winscp.com /command "option batch abort" "option confirm off" "open $Proto://$User:$Pwd@$Server" "put $NetworkDir $RemoteDir" "exit"'
    $TaskAction = New-ScheduledTaskAction -Execute "$Command"
    $TaskTrigger = New-ScheduledTaskTrigger -Daily -At 6am
    Register-ScheduledTask -Action $TaskAction -Trigger $Tasktrigger -TaskName "$TaskName" -User "Administrator" -RunLevel Highest
    Write-Host "$TaskName created to run Daily at $TaskStartTime"
    What's messing up is the $Command creation, the command needs to have the quotes around "option blah blah", but if I wrap the whole line in single quotes the variables that are evaluated for the "open blah blah" strings (which also need
    to be inside quotes) and the "put blah blah" string are not being evaluated properly.
    I've dorked about with different bracketing and quoting but can't nail the syntax down, could someone point me in the right direction? My Google-fu seems to be lacking when it comes to nailing down this issue.
    Thanks

    Hmmn, closer. I'm getting this error now:
    + $Command = $tmpl -f  $User, $Pwd, $Server, $NetworkDir, $RemoteDir
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (winscp.com /com...t {4} {5}" exit:String) [], RuntimeException
        + FullyQualifiedErrorId : FormatError
    And the command being added to the new task looks like this:
    winscp.com /command "option batch abort" "option confirm off" "open ($Proto)://($User):($Pwd)@($Server)" "put $NetworkDir $RemoteDir" "exit"
    Here's the current state of the script. I get what you're doing to try to bypass the quotes issue, using an array. I'm just not awesome at this yet sooooooo...
    $TaskName = Read-Host 'What would you like this job to be named?'
    $Proto = Read-Host 'What is the protocol? (FTP/FTPS/SFTP)'
    $User = Read-Host 'What is the user name?'
    $Pwd = Read-Host 'What is the password?'
    $Server = Read-Host 'What is the server address?'
    $NetworkDir = Read-Host 'Please input the network location of the file(s) you wish to send. Refer to documentation for more details.'
    $RemoteDir = Read-Host 'Please input the REMOTE directory to which you will upload your files. If there is none please input a slash'
    $tmpl = 'winscp.com /command "option batch abort" "option confirm off" "open {0}://{1}:{2}@{3}" "put {4} {5}" exit'
    $Command = $tmpl -f $User, $Pwd, $Server, $NetworkDir, $RemoteDir
    $TaskAction = New-ScheduledTaskAction -Execute $Command
    $TaskTrigger = New-ScheduledTaskTrigger -Daily -At 6am
    Register-ScheduledTask -Action $TaskAction -Trigger $Tasktrigger -TaskName "$TaskName" -User "Administrator" -RunLevel Highest
    Write-Host "$TaskName created to run Daily at $TaskStartTime"

Maybe you are looking for

  • Document management requirement

    Hi, We need to provide document management feature in SAP enterprise portal. The requirements are users should be able to create folders, rename folders, delete folders, create, upload, delete documents such as word, pdf, excel etc. Also we would wan

  • IMac Early 2009 10.7.5-Terminal Open When Logging On

    For the past logins, the Terminal icon is open. When I click on it, it says this: Last login: Sat Jan 26 15:17:15 on ttys000 As-iMac:~ ronimac3$ What does this mean?

  • Full screen playback won't play from the playhead

    Hi all, I'm using I-Movie 11.  When I try to play in full screen (either by using cmd+G or going through the 'view' menu) it will not play from where the playhead is.  Instead it seems to start from random clips in my event.  If I am already watching

  • Contracts - Purchase Order - Voucher

    Hi every one, I am indebted to you all for supporting me till date. Now i have one more problem to ask you. We have to implement Contracts -> Purchase Order ->Voucher. I am worried about the part Contract -> Purchase Order. Has any body set up this p

  • LTP consider production version and not consider selection id for routing

    Dear guru. I run mrp long term planning for a material. The material have a production version linked to a specific bom and routing. In trx OPU5 I have defined that the planning scenario consider a specific selection id for routing  , this routing is