<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[JForum Community - Latest posts for "jforumrookie"]]></title>
		<link>https://community.jforum.net/posts/listByUser/10</link>
		<description><![CDATA[Latest posts for "jforumrookie"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>[Integration Forum] Re:Making post from another tomcat application</title>
				<description><![CDATA[ Thanks andowson. After some debugging, it looks like PostAction.insertSave is redirecting the path. So I didn't change any of its code. What I ended up doing was in the PostREST, I retrieve the post link from JForumExecutionContext.getRedirectTo() and then set it to null with JForumExecutionContext.setRedirect(null). That seem to do the trick.
<br>
<br>
Here's a sample snipplet of my modified PostREST.java
<br>
<pre class="line-numbers"><code class="language-java match-braces"><br>public void insert() <br>{<br>   ...<br>   final Post post = new Post();<br>   post.setForumId(Integer.valueOf(forumId));<br>   post.setSubject(subject);<br>   post.setText(message);<br>   this.insertMessage(user, post);<br><br>   // new start<br>   String postLink = JForumExecutionContext.getRedirectTo();<br>   JForumExecutionContext.setRedirect(null);<br>   this.setTemplateName(TemplateKeys.API_POST_INSERT);<br>   this.context.put("postLink", postLink);<br>   // new end<br><br>   SessionFacade.makeUnlogged();<br>   SessionFacade.remove(sessionId);<br>   ...<br>}<br></code></pre>
<br>
Thanks!]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/17/58</guid>
				<link>https://community.jforum.net/posts/preList/17/58</link>
				<pubDate><![CDATA[Tue, 1 Nov 2011 02:06:05]]> GMT</pubDate>
				<author><![CDATA[ jforumrookie]]></author>
			</item>
			<item>
				<title>[Integration Forum] Re:Making post from another tomcat application</title>
				<description><![CDATA[ Thanks. I'll give it a try.]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/17/57</guid>
				<link>https://community.jforum.net/posts/preList/17/57</link>
				<pubDate><![CDATA[Mon, 31 Oct 2011 23:08:44]]> GMT</pubDate>
				<author><![CDATA[ jforumrookie]]></author>
			</item>
			<item>
				<title>[Integration Forum] Re:Making post from another tomcat application</title>
				<description><![CDATA[ Thanks andowson for this added feature. It works beautifully. One more request if possible. Is it possible for the PostREST to return the post id or a link to the post after the insert?
<br>
<br>
I tried to mod it like UserREST, but no success. I keep getting a response of 302 Move Temporary.
<br>
<br>
Thanks,]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/17/55</guid>
				<link>https://community.jforum.net/posts/preList/17/55</link>
				<pubDate><![CDATA[Sat, 29 Oct 2011 06:12:14]]> GMT</pubDate>
				<author><![CDATA[ jforumrookie]]></author>
			</item>
			<item>
				<title>[Integration Forum] Re:Making post from another tomcat application</title>
				<description><![CDATA[ Thanks! I will give this a try.]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/17/52</guid>
				<link>https://community.jforum.net/posts/preList/17/52</link>
				<pubDate><![CDATA[Tue, 4 Oct 2011 02:39:46]]> GMT</pubDate>
				<author><![CDATA[ jforumrookie]]></author>
			</item>
			<item>
				<title>[Integration Forum] Making post from another tomcat application</title>
				<description><![CDATA[ Hi,
<br>
<br>
Does anyone know how I can make a post from another webapp application? We have an existing web application that when a user submit a form, we would like it to make a new topic on the jforum. I have tried following the saveMessage method in InstallAction class and have successfully added the post into the database, but somehow I don't see the new post in the jforum.
<br>
<br>
Any help or suggestion would be appreciated.
<br>
<br>
Thanks.]]></description>
				<guid isPermaLink="true">https://community.jforum.net/posts/preList/17/50</guid>
				<link>https://community.jforum.net/posts/preList/17/50</link>
				<pubDate><![CDATA[Fri, 30 Sep 2011 05:30:37]]> GMT</pubDate>
				<author><![CDATA[ jforumrookie]]></author>
			</item>
	</channel>
</rss>