Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

SGWT application not forwarding from html to sgwt application

$
0
0
Hello there,

I am using SmartClient Version: v10.0p_2015-07-08/PowerEdition Deployment (built 2015-07-08) along with FF26.

I have a simple HTMLpage which presents the login page and then if the credential is correct I forward it to my main sgwt application's HTML page.
Locally it is working, I mean in dev mode. But when I setup it on the Tomcat, I get to see the login page but then I get to see only a blank page. Can somebody please help me analysis why this is happening or what I am missing out.
The configuration.properties file for dev mode looks like so,
Code:

app.landingpage.url=http://127.0.0.1:8889/KaiBe.html?gwt.codesvr=127.0.0.1:9997
app.loginpage.url=http://127.0.0.1:8889/login.html

and the Tomcat version I change to this

Code:

app.landingpage.url=http://localhost:8080/KaiBe/KaiBe.html
app.loginpage.url=http://localhost:8080/KaiBe/login.html

Little background as to what I have done.

I have a simple HTML file which forwards the page to a servlet,like so
Code:

<form method="post" action="loginApp">
web.xml contains the servlet definition

Code:

<servlet>
                <servlet-name>AppLoginServlet</servlet-name>
                <servlet-class>com.beh.server.login.LoginServlet</servlet-class>
        </servlet>
        <servlet-mapping>
                <servlet-name>AppLoginServlet</servlet-name>
                <url-pattern>/loginApp</url-pattern>
        </servlet-mapping>

I have also attached my LoginServlet.java file.

cheers
Zolf

Attached Files
File Type: java LoginServlet.java (1.6 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles