NetTalk Central

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Sibuya

Pages: 1 [2]
16
Web Server - Ask For Help / NT9.06 call applet
« on: March 23, 2016, 03:24:37 PM »
Hi,

Is there anyone that worked with an applet? Is that possible?

I have a jsp page and need to turn into NT page to consume the applet inside with variables and return value. This is a sample of a jsp page:

<%@page session="false" %>
<script language="javascript">

   function doInit() {
      // do something
   }
   function myResponse(){
      // do something
      return true;
   }
</script>

<html>
   <head>
   </head>
        <body>
                  <h3>Test</h3>
       </body>
      <form method="post" action="doit" name="myForm" onsubmit="return(myResponse());">
         <input type="hidden" name="action" value="ProcessResponse">
         <input type="hidden" name="response" value="">
         <input type="submit" value="Click me" class=button name="doit2">
         <input type="button" onClick="doInit()" value="Init" class=button name="init">
      </form>

<%
    String version = (String)application.getAttribute("version");
%>

<applet id="oApplet" archive="my-applet.jar" code="classes/my.class" width="1" height="1">
    <param name="aaa" value="<%=version%>">
</applet>

</body>
</html>


Jar file has a path classes and my.class is inside.

I put "javascript" in a file.js, installed in script folder and declared in WebServer. Buttons I can create them inside a WebForm to perform apropriate actions. I donn't know how to declare variable parameters inside XHTML body. The Applet I'm trying to put in PageHeader WebForm, XHTML.

NT loads jar file but don't find my.class inside. I tried many variations but none worked.

Could anyone help me?

Thank you.

Cheers,

Marcos

17
Web Server - Ask For Help / NT 9.06 + Secwin 6.36 + Clarion 8
« on: March 21, 2016, 11:16:15 AM »
HI,

I ran Web51 example and when login, logout and login again the set users access rights list is lost.

I have to reset the program to get it back.

It happens with other app that I developed using the same tools and versions.

Could anyone helpe me?

Thank you.

Best regards.

18
Hi,

In SecwinWebLognForm generated procedure it was created with:

loc:user as string(100)
loc:user as long

After compilation it says that is using second variable the long one

Best regards,

Marcos

19
Web Server - Ask For Help / Insert user Autoincrement Error
« on: March 02, 2016, 11:24:40 PM »
Hi!

I'm testing C8 WebServer NT9.06 application with Secwin  6.36 and MySQL including Security File in it and inserting me with two different e-mail accounts with the same name/surname. Ok, I'm forcing an error but application gets weird.

When trying to add second user: it pops a message at Server side with an Autoincrement Error in key ope:IDKey and blocking client side.

In Clarion Dictionary we have a table secwin_operators (Memory) with a key ope:KeyID that is set as unique and autoincrement.on a Int field ID, ok. There is another key ope:Key that is composed of SiteLimiter, Surname and FirstName as unique. It's ok too.

But in the MySQL side on a set of Secwin Security Files created we have a table secwint_operators5 with a key ope5_IDKey.composed of SiteLimiter, Surname and FirstName as INDEX. Shouldn't be an UNIQUE index?

So I try changing that key as UNIQUE that prevents from Autoincrement Error but with the following side effects:

- Insering operator same name and surname says that "This user could not be added", but in client side operator browser appears with Number = 0.
- Trying to change this user it's showed in form. Seems that this record is in memory table. Press Save "Invalid user Error adding user".
- Trying to delete gives an error "Invalid user: Error adding user".
- Memory table don't allows this because of key ds_ope:Key (SiteLimiter, Surname, FirstName), Unique, exclude empty should prevent this.
- After session timeout login with a valid user gives me error. Trying again ok.

 At the end the user was added to a MySQL table and any attempt to login gives me Login Fail. I have to delete the second user directly in MySQL to get to normal.

Is there a way to prevent this without hand code?

Thank you.

Pages: 1 [2]