Posts

Jquery ajax with multiple modal windows -

I am using a Struct application with JQuery as a Javascript library. I have JSP which calls a javascript method with a button that fire an AJAX request for an action. (Action 1) The action returns a JSP page that is displayed in a model window. Now, this JSP page is a button that calls another action (action 2) that returns a JSP page or should return to the base page. So here is a modal window click here or move forward to another modal window or base page. How can we complete this with JQuery? You can return the string "off" or html for the new modal window and do something with this line : $ .ajax ({url ('& lt; html') == -1) $ ('# modalwindow1'). Dialog ('off'); Otherwise {"some URL", success: work (data) {if (data. $ ('# Modalwindow2') .html (data); $ ('# modalwindow2'). Dialog ();}}}); Believes that you are using JQuery.dialog for your modal window

java - scheduling different crontimers with the same job id -

How to schedule different times for the same task. For the East: I have a job job name = "Job 1") The difference timer in Job 1 ( 20 * * * *?) and ( 0 0/2 * * *?? ) The first timer needs to be scheduled for every 20 seconds and the second timer will be set to set the time of each 2 minute Required. My problem is that the last timer is just scheduling. You can set it for only 20 seconds, in this way, you have 2 minutes on the 6th trigger Must have to trigger. Or was this just an example? Otherwise, AFAIK, you will need to create two examples.

templates - source code(COBOL) generation using a java program -

I'm going to write code generator to generate a cobol program by using some input file in the record. I'm going to implement it as a Java program. I think the XML / XSL approach will not be suitable in this case, because the input file is not in the XML format. I think a template processor will be helpful, because some part of it can be generated using the current source template. What tool should it be useful for Apache velocity? What would be helpful in this regard? I have used velocity for the source code generation in the past. It worked quite well, but ended up writing a fair bit of generator in Java. When your data is straight-forward in the target code from the structures, then the velocity is good. Before starting the move, the in-memory data structure is to be found in the correct form. (And I'm not going to criticize Cobol as a target language. It is clearly a practical reason to use it.) Nuff said that P> Other velocity options include freem...

php - Generating {$num} inside {foreach} -

I am working on a smart template. I should have a number in my list array then I tried {foreach} {$ num} {/ foreach} Which prints 0 1 2 3 4 5 ........ I want my numbers to begin with 1 Become; 0 How do I get it? OR Is there any other way thanks {Foreach} {$ num | Assign: $ num + 1} {$ num} {/ foreach} or {foreach} {assign var = new value = $ num + 1} {$ newnum} {/ foreach}

java - how to store and retrieve items? -

I need to store all encrypted messages so that it can be recovered and displayed by pressing a button, that is Press button 3 time for the last third message; After retrieving the encrypted message, give the user an estimate (type in the original text) and send a basic message and press a button. How many characters are displayed and how wrong they are. Sorry for the really bad question. Here is an example of my current coding, basically I get input from a textfield, how do I retrieve and retrieve the input? string input = txtInput.getText (); Stringbuilder builder = new stringbiller (); Char [] charArray = input.toCharArray (); For (int i = 0; i.e.R.R.E.Langle; i + = 2) {if (I + 1 & lt; char. Line) {// Even builder.append (I + 1); } // Strange Builder.Append (Chair [ii]); } String flipped text = builder.string (); Lblencryted.setText (flippedText); For (int i = 0; i & lt; 100; i ++) {string [] storeArray = {flippedText}; }} Private Zero jButton2ActionPerformed (java...

Java and SSH: maintaining a connection -

Target: Remote control SS server with a connection and multiple sessions or a continuous session. Problem 1: I am currently using sshj to do some remote control through SSH and it works well, but I think it is the right way to handle it. Indicates (the host does not provide the true root, just the pseudo-i will have to log in before). Problem 2: I'm downloading XPtags to handle quickly but I can not understand for my life how to maintain the session after logging in once and being certified as root. The current hack solution requires that I log in again every time: than the public class {spawn shell; ExpectJ exp; String host; Int port; String user name; String password; Boolean pseudo = false; Public expectations (string host, int port, string username, string passwd) throws IOException, timeout exposure, expedgexation {exp = new ExpectJ (5); This.host = host; This.port = port; This.username = Username; This.passwd = passwd; Shell = exp.spawn (host, port, username, passwd)...

jquery - PHP Query Generator/Reporter -

I am in the process of tweaking a web application and so far I have explained some very helpful people from here, explain Thank you in the words of the common man. In my app I wanted the ability to generate different types of useful reports to search for records and use the results in one of the capabilities. In my workplace we had a system like the image below Use, to do so. In addition to searching and creating reports, I reprints the user's search criteria for easy future searches. Is there an easy way to do this? The image you've linked looks like a lot of things I have done many times. I have thought of diving in my own app, but there was never a good enough reason. I did some searches and found out there is not much else. This is a very basic but will work for generating custom SQL statements or for someone who is not able to write their own SQL queries. Wish I had more thoughts! Hopefully someone else will.