Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
MarkLogan  
#1 Posted : Wednesday, December 21, 2011 8:42:48 AM(UTC)
MarkLogan

Rank: Newbie

Groups: Member
Joined: 12/20/2011(UTC)
Posts: 9

Can someone please provide me with a sample code if I were to implement this in a Java JSP/Servlet environment? Thanks!
Dmitry.Obukhov  
#2 Posted : Wednesday, December 21, 2011 9:09:30 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Mark,

Thank you for contacting us.

Unfortunately, we do not have ready-to-use Aurigma Up sample for JSP. However, you can implement it yourself. There is no difficulty to do it:

  1. You should embed a link to Aurigma Up on a page where you want. You will be able to use this Code Designer to configure the link.

  2. You will need to implement the server-side script which will allow to handle uploaded files (save them to a disk on your server). You can look through the prepared script of Image Uploader sample for JSP and use it for your implementing. I attached the file with this script to my post. Aurigma Up sends files (and some fields) in POST requests. The server-side code should parse these requests, and save files.

Edited by user Wednesday, December 21, 2011 9:11:58 PM(UTC)  | Reason: Not specified

File Attachment(s):
upload.zip (2kb) downloaded 22 time(s).
Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

MarkLogan  
#3 Posted : Thursday, December 22, 2011 9:58:09 AM(UTC)
MarkLogan

Rank: Newbie

Groups: Member
Joined: 12/20/2011(UTC)
Posts: 9

I started creating my own Upload.jsp. Aurigma Up is launching fine from my link and is able to call my JSP.

However, inside my JSP I couldn't grab any of the parameters.

request.getParameter("PackageFileCount") is returning null.

I even tried iterating through all the parameters using request.getParameterValues() but there seems to be no parameters to iterate through.

request.getMethod().equals("POST") is returning "true" though.

Thoughts?

MarkLogan  
#4 Posted : Thursday, December 22, 2011 10:01:32 AM(UTC)
MarkLogan

Rank: Newbie

Groups: Member
Joined: 12/20/2011(UTC)
Posts: 9

Here's my upload link for your reference:

<a href="aurup:?uploadUrl=http://10.10.0.213:9080/DisplayQR/jsp/Upload2.jsp&redirectUrl=http://10.10.0.213:9080/DisplayQR/jsp/QRMain.jsp&returnUrl=http://10.10.0.213:9080/DisplayQR/jsp/QRMain.jsp&licenseKey=mylicensenum">Upload 2 (for Apple users)</a>

MarkLogan  
#5 Posted : Thursday, December 22, 2011 11:31:21 AM(UTC)
MarkLogan

Rank: Newbie

Groups: Member
Joined: 12/20/2011(UTC)
Posts: 9

I figured it out. Getting the POST parameters is not that straight forward in JSP. I had to use an Apache library.

Anyway, my next question now is: Is there a way to go back to my website without reloading it? (i.e. just make Aurigma close and return to my browser at the calling page?)

My problem with being redirected is as follows:

My calling website has the following URL is "http://mydomain.com/myServlet"

If I put "http://mydomain.com/myServlet" as the "redirectUrl" parameter, I get a blank page when Aurigma redirects me back.

If I target a specific JSP in my page (e.g. http://mydomain.com/myApp/jsp/myJspPage.jsp, Safari opens another browser window.

It would be great if I could just make Aurigma close and return to the original calling page without reloading it.

Dmitry.Obukhov  
#6 Posted : Thursday, December 22, 2011 7:46:48 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hi,

We confirm that this behaviour of Aurigma Up and redirected Url takes place. We will fix it in the future releases.

Aurigma team wishes you merry Christmas and happy New Year :)

Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.