473,386 Members | 1,753 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

i want to convert my code from java into PHP code

1
Expand|Select|Wrap|Line Numbers
  1. package videshigroup;
  2.  
  3. import java.io.IOException;
  4. import java.util.HashMap;
  5. import java.util.Map;
  6.  
  7. import javax.servlet.http.HttpServletResponse;
  8.  
  9. import org.zkoss.zk.ui.Component;
  10. import org.zkoss.zk.ui.Execution;
  11. import org.zkoss.zk.ui.Executions;
  12. import org.zkoss.zk.ui.select.SelectorComposer;
  13. import org.zkoss.zk.ui.select.annotation.Listen;
  14. import org.zkoss.zk.ui.select.annotation.Wire;
  15. import org.zkoss.zul.Grid;
  16. import org.zkoss.zul.Label;
  17.  
  18. public class ShowSupportController extends SelectorComposer<Component>{
  19.     private static final long serialVersionUID = 1L;
  20.     //wire components
  21.     @Wire
  22.     Label support;
  23.     @Wire
  24.      Label modelLabel;
  25.     Execution exec = Executions.getCurrent();
  26.     Map arg = new HashMap();
  27.    // private String  name = support.getValue(); 
  28.  
  29.     @Override
  30.     public void doAfterCompose(Component comp) throws Exception {
  31.         super.doAfterCompose(comp);
  32.     }
  33.     //services
  34.     SuportServices supportSer = new SupportServicesImpl();
  35.  
  36.         //initialize view after view construction.
  37.         @SuppressWarnings({ "unused", "unchecked" })
  38.         @Listen("onClick=#support") 
  39.         public void dosumthing(){
  40.             arg.put("name",10);
  41.             Component[] comps = Executions.getCurrent().createComponents("support.zul", arg); 
  42.  
  43.             //response.sendRedirect("./support.zul");
  44.           //  exec.setVoided(true);
  45.  
  46.         }
  47.  
  48.  
  49.     }
  50. /*Execution exec = Executions.getCurrent();
  51.                 HttpServletResponse response = (HttpServletResponse)exec.getNativeResponse();
  52.                 response.sendRedirect(response.encodeRedirectURL("/WEB-INF/zul/home.zul")); //assume there is /login
  53.                 exec.setVoided(true); */
Sep 6 '13 #1
1 1762
Dormilich
8,658 Expert Mod 8TB
it might be more efficient to throw away the Java code and build the PHP code by following the application logic only.
Sep 7 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: Ravi | last post by:
Do we have anything that could convert C++ code to java code? To what extent are such tools reliable? TIA. -- main(){char s="sbwjAeftqbnnfe/dpn!ps!CSbwjACjhgppu/dpn"; int...
4
by: muffinman | last post by:
Hello, I try to convert a string (char or string or CString, etc) into an executable function. For example : char sample = "cout << \"sample\""; char setColor = "glColor3f(1.0f, 1.0f,...
6
by: samuel.y.l.cheung | last post by:
Hi, I am trying to convert a Java iterator loop to C++ STL? the loop looks like this: public static boolean func (List aList) { int minX = 0 for (Iterator iter = aList.listIterator(1);...
4
by: Khan | last post by:
hi, i'm writing java code inside <body> tag of java script file. all the java code is executing at frame startup. how can i call that java code only when i click on a button. I can call jscript...
4
by: mjahabarsadiq | last post by:
HELLO FRIENDS I HAVE ONE JAVA CODE WHICH PARSES AN XML FILE AND PRODUCE A QUERY TO CREATE TABEL IN A DATABASE. BUT I NEED THE CODE TO BE USED IN A JSP PAGE. HOW TO USE THIS PAGE WITH JSP. ...
1
by: ponvijaya | last post by:
I want to take back up of records in My MySql Database I want to convert the records into csv file and store in a location. If needed I want to import it to the same database.. I need to...
0
by: florian.grimps | last post by:
Hello. I try to convert a bigger piece of java to c#. Initially I use the JLCA 3 form VS 2005, but the results are far from being perfect, so I had to convert much code on my own. I have big...
1
by: jemar19 | last post by:
import java.util.*; public class Kopi { static Scanner console=new Scanner(System.in); public static void main(Stringargs) { String f; double a,z,y,x,w;
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.