Showing posts with label Domino. Show all posts
Showing posts with label Domino. Show all posts

Monday, April 16, 2012

400- Bad Request Xpages

I was in free. So I thought to give the user name and password in url to my Domino server.

I thought domino is terrifically have the security. So searched any way is there.

Finally I have traced the cookies and gave the user name and password on url.

But I got the following Error.

Http Status Code: 400

Reason: Http request contains a malformed escape sequence

I searched the solution for rectify or overcome this...

Yes We can if we set

HTTPAllowDecodedUrlPercent=1

in Notes.ini on your corresponding server. This will make the funny thing that I have mentioned above, :)

Message box in server using Lotus script

Some of the time we need the prompt while running an agent in server.

But everyone easily tell that it is not possible on Lotus script.

But we can. We have print statement in lotus script. It is very powerful statement and also here we can use javascript code itself. The following will throw the message box while running an agent in server.

Code:-
Dim alertMsg As String
Print {<script language="JavaScript" type="text/javascript">}
Print {alert('Ramkumar')}
print {</script>}

Tuesday, April 3, 2012

Terrific SSJS in Xpage

Here is an interesting stuff.

But it is one of the worst thing in Domino.

We can guide any server using the following code...

session.sendConsoleCommand(serverName, Command)