SCROLL FRAMEWORK
SCROLL Framework is a oakjava7 framework invented in OAKJAVA7 by wilmix jemin.j for Mobile/ webapplication / Remote X application / Datascience Application / Machine learning Application at year 2018.
SYNTAX-1
filename.java7
<JAVA>
<USE> packages;
<PACK> packagename
{
<CLASS> <classname>
{
public void main()
{
<! source code !>
}
}
}
SYNTAX-2
Filename.oakjava7
public class Oakjava7Prog
{
//This constructor with super method is mandatory, which indicates it is a oakjava7 //program
public Oakjava7Prog()
{
super();
}
// it means it will not support any java compiler, it is entirely different.
public void main()
{
<! OAKJAVA7 Logic !>
}
}
class <CLASSNAME>
{
private <CLASSNAME>()
{
super();
}
.......
.........
...........
}
Note: I have changed the Syntax for the Scroll program. Because it is
very hard for the programmers to follow many syntax.
Here we follow the main syntax ie) <Filename>.oakjava7 and filename.java7.
So when we compile using <Filename.oakjava7> it produces <Filename> .class file
and <Filename>.exe file. So that <Filename>.class have a Oakjava7 signature containing
OakJava7(JAVA7.0) compiler - Jemin Information Technology .....
And if you want advanced oakjava7 programming to load many libraries .In this case
we use filename.java7.
ADVANTAGES:
==========
A) USED with any Latest JAVA version (OAK JAVA) JAVA7.0.
B) IT has attractive syntax.
c) Developer need to concenterate only on OAKJAVA7(JAVA7.0) with shortest syntax and statements . So ScrollFramework is learnable. In other framework in JAVA/j2ee like Java spring, developer had to learn more syntax.
d) Developer can also use this Scroll Framework with Hibernate ,Mybatics .
using .Java7. Scroll framework will not support Other Java/J2ee frameworks.
Note: Oakjava7 has many framework and Oakjava7 is not depend on Java/j2ee framework. Because Oakjava7 is a standalone Programming Language And Scroll framework is more advanced than Java Spring and all the Java/J2ee framework. Java/J2ee fails in obfuscation side , hackers can easily take the Java /J2ee source code using JAD. That's why Java/J2ee fails completly in Security side..
Program-1:
=========
Register7.java7
<JAVA>
<PACK> Registerform
{
<CLASS> Register
{
public void main()
{
HTML.displayhtml("Registerj7.html");
}
}
}
Registerj7.html
<html>
<body >
<form action="http://localhost:9000/Register777.exe" id="register" method="post" >
<tr> <h2><td><a href="#chapter1"> Enter your Details </a></td></h2></tr>
<tr>
<td><p>Enter Your Name: <input type="text" name="name" size="25" /></td></p></tr>
<tr><td><p>Enter your Username : <input type="text" name="uname" size="15"/></td></p></tr>
<tr><td><p>Enter the password : <input type="password" name="password" size="25" /></td></p></tr>
<tr><td><p>Choose your state : <input type="text" name="state" size="15"/></td></p></tr>
<tr><td><p>Choose your Country : <input type="text" name="country" size="15"/></td></p></tr>
<tr><td><p>Enter the password : <input type="password" name="spwd" size="25" /></td></p></tr>
<tr><td><p>Enter your secret password text : <input type="text" name="stext" sixe="15"/></td></p></tr>
<tr><td><p>Enter your family details : <input type="text" name="familydet" size="25" /></td></p></tr>
<tr><td><p> Enter Percentage of marks scored <input type="text" name="Indent" sixe="5"/></td></p></tr>
<tr><td><p>Enter Your Favourite subject <input type="text" name="CIndent" size="15"/></td></p></tr>
<td><h2><a href="#chapter2">REGISTER</a></td></h2></tr>
<div>
<td> <input type="submit" name="ClickMe" ></td></tr>
<td><input type="reset" name="Clear"></td></tr>
</div>
</form>
</body>
</html>
Program-2:
===========
Register777.java7
<JAVA>
<USE> <OJ7UTIL>;
<PACK> Program5
{
<CLASS> Prog
{
public void main()
{
//create an ArrayList
ArrayList arm1= new ArrayList();
arm1.add("name");
arm1.add("uname");arm1.add("password");
arm1.add("state");
arm1.add("coun<TRY>");
arm1.add("spwd");
arm1.add("stext");
arm1.add("familydet");
arm1.add("Indent");
arm1.add("CIndent");
arm1.add("NOT");
<PRINTLN>("<!DOCTYPE html>");
<PRINTLN>("<BODY bgcolor=pink>");
<PRINTLN>("<form>");
// 10 indicates 10 GUI ie) 10 Textbox , all the data will be stored in Register777j7.dsn and 1 indicates
// it will increment by 1, So armg contains all the 10 values from register form , that you have
//submitted.
ArrayList armg= Request.Query(arm1,"Register777j7.dsn",10,1);
<PRINTLN>("<table bgcolor=gold>");
<PRINTLN>("<tr>");
<PRINTLN>(" <th>Name</th>");
<PRINTLN>(" <th>Username</th>");
<PRINTLN>(" <th>Password</th>");
<PRINTLN>(" <th>State</th>");
<PRINTLN>(" <th>Coun<TRY></th>");
<PRINTLN>(" <th>Confirm Password</th>");
<PRINTLN>(" <th>Secret Password</th>");
<PRINTLN>(" <th> FamilyDetails </th>");
<PRINTLN>(" <th>Percentage of Marks Scored</th>");
<PRINTLN>(" <th>Subject</th>");
<PRINTLN>(" </tr>");
<PRINTLN>(" <tr>");
for (int i=armg.size()-10;i<armg.size();i++)
{
<PRINTLN>("<td>"+armg.get(i)+"</td>");
}
<PRINTLN>(" </tr>");
<PRINTLN>("</table>");
<PRINTLN>("</form>");
<PRINTLN>("</html>");
}
}
}
OUTPUT
Note: Output is it will display Output with Oakjava7 template
===========================================================================================================================================
Example -2 : How to run ScrollServer with java7(OAkJava7) ? How to compile and run the .java7 files ? Write a oakjava7 Program to connect to WnosqlDB and list all the details from Wnosqldb - Telecom table with fields SNO, CLASS, CHILDS ? Use ubuntu for this example.. What are steps we need to do it?
Step -1 : To run scrollserver
type in bash as given below..
wine ScrollServer1.0.exe --Start
so this --Start is to Start ScrollServer1.0.exe
and type CTRL +C to stop the ScrollServer.
you can see the screeenshot ScrollServer.png as given above...
Step -2: After that enter the url with your Portnumber.
In My case the port number is 9000.
Enter the url to Google chorme or any browser as given below...
http://localhost:9000/DBconnection.java7
This will compile the DBconnection.java7 file
and print the output in the Browser as given below
in the screenshot DBconnection.png.
Dbconnection.java7
<JAVA7>
<IMPORT> Securitydb.*; //Load Securitydb package
<IMPORT> jxl.read.biff.BiffException; // Load jxl package
<IMPORT> <J7>.io.*; //load oakjava7 I/O package
public <CLASS> DBconnection
{
<MAIN> throws Exception, BiffException // Include Exception and BiffException
{
// mention dbpwds table, mention path for wnosql db to be connected....
javawdbaconn.javaWDBAQUERY("datastores", "USEDATABASE", "dbpwds", "/home/jamin/Desktop/wnosqldb/WNOSQL/");
//Mention dbuser for usertable and dbpwds for password table.and after that provide
// wilmix78 as username and password.
javawdbaconn.javaWDBAUSERQUERY("dbuser", "dbpwds", "wilmix78", "wilmix78");
//SELECTRVAL wnosql query to list all the data from Telecom table.
String q="SELECTRVAL from Telecom 3 to 33 , 1 to 7 ?= A By 1 1 : {0} : {0} :{0}";
//Pass the selectrval query to javawdbaconn.WDBAQUERY wnosql method. So this method
//will excecute the wnosql query.
javawdbaconn.WDBAQUERY(q);
// Retrieve the wnosql data stored in output.wdba and print it in the browser
<PRINTLINE>(""+Secure.RetreiveSecure("output.wdba" ,0));
}
}
Output
===========================================================================================================================
Note: For more detail about Oakjava7 with Wnosql db examples
kindly refer Oakjava7 Enterprise Edition.That Oakjava7 with ubuntu Ebook Edition is
under construction.
===========================================================================================================================