Server side OVERRIDES
Hi,
I wrote a simple Server class in order to cascade delete all the documents
related to a compound document before it is removed from ifs.
The server class is extending S_TieDocument.
I have defined corectly the extendedPreFree() function.
Then, as the manual says, I've registered the server class using :
<?xml version="1.0" standalone="yes"?>
<CLASSOBJECT>
<UPDATE RefType = "Name">MyDoc</UPDATE>
<SERVERCLASSPATH>myPackage.S_MyDoc</SERVERCLASSPATH>
</CLASSOBJECT>
after that i've placed the class S_MyDoc in the directory:
$ORACLE_HOME/ifs1.1/custom_classes/myPackage
and restarted Ifs.
The result is that the pre-operations invoked are not called.
To test if it works i've called programmatically the function free()
from a Java application. The same result is obtained deleting the object via the web interface.
Thank you for any suggestion
null
you'll need to modify the way those stock scripts establish your classpath. specifically,
precede repos.jar with custom_classes.
we did this many months ago and it worked
with the dynamic ACL overrides.
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Sorin Topan ([email protected]):
Sorry Marta,
but i think I don't get it right.
The CLASSAPATH used by IFS is set automatically when is called ifsenv.bat. And as I saw the paths are specified in the order which you say it works.
I have to re-specify also the CLASSPATH system environment variable with the jars in the right order ?
<HR></BLOCKQUOTE>
null
Similar Messages
-
Since the documents created in ifs don't inherit the ACL of the folder, I wrote
a server side override. I tested with the JDeveloper, everything worked fine,
a file of right ACL is created with my testing program. Then I moved the
java class (S_TieFolderPathRelationship.class) to
custom_classes/oracle/ifs/server and my testing program to
$ORACLE_HOME/9ifs/myclasses (I created this directory myself). Everything also
runs fine in the server side if I have the right classpath. However, if I
upload a file to the ifs through webui or winui, The
S_TieFolderPathRelationship.class in the custom_class is not being called,
since the ACL is not right. Does anyone have any idea on this?
Thanks,
JeanThe following is what I have implemented before (Change the ACL to its parent). It runs good.
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Date;
import javax.mail.Session;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.InternetAddress;
import oracle.ifs.common.*;
import oracle.ifs.beans.*;
import oracle.ifs.management.domain.IfsServer;
import oracle.ifs.adk.mail.IfsTransport;
import oracle.ifs.adk.filesystem.*;
public class MY_iFS_Agent extends IfsServer implements IfsEventHandler
public static void main(String[] args) throws Exception
// Verbose exception messages on.
IfsException.setVerboseMessage(true);
// Construct a parameter table from the command-line arguments.
ParameterTable pt = new ParameterTable(args, "parameterfile");
// Extract some additional parameters required for standalone operation.
String serviceName = pt.getString("IFS.SERVER.Service");
String schemaPassword = "ifssys";
// Start a service against which to run a Notification Agent.
LibraryService.startService(serviceName, schemaPassword);
// Construct, initialize, and start the Notification Agent.
MY_iFS_Agent agent = new MY_iFS_Agent();
agent.initialize("MY_iFS_Agent", serviceName, schemaPassword, pt, null, LEVEL_HIGH);
agent.start();
public MY_iFS_Agent() throws IfsException
super();
public void run()
try
log(IfsServer.LEVEL_MEDIUM, "Start MY_iFS_Agent request");
// Ensure a connection.
connectSession();
// Enable event listening.
enableEventListening();
while (!stopRequested())
try
// Handle any status changes firsts.
handleRequests();
// Process events.
processEvents();
// Wait for something to do.
waitServer();
catch (Exception e)
log(IfsServer.LEVEL_MEDIUM, "Exception" + " in handle loop; continuing:");
log(IfsServer.LEVEL_MEDIUM, e.getMessage());
} // End the while loop.
catch (IfsException e)
// Exception that takes us out of the run loop;
// this will cause a stop.
log(IfsServer.LEVEL_MEDIUM, "IfsException" + " in run(): ");
log(IfsServer.LEVEL_MEDIUM, e.toLocalizedString(getSession()));
catch (Exception e)
log(IfsServer.LEVEL_MEDIUM, "Exception" + " in run(): ");
log(IfsServer.LEVEL_MEDIUM, e.getMessage());
* Gets whether suspend/resume is supported.
* @return true
public boolean supportsSuspendResume()
return true;
* Handles the suspend request. Subclasses can override this to
* perform custom tasks as part of a Suspend request.
protected void handleSuspendRequest() throws IfsException
log(IfsServer.LEVEL_MEDIUM, "Suspend request");
// Disable event listening.
disableEventListening();
* Handles the resume request. Subclasses can override this to
* perform custom tasks as part of a Resume request.
protected void handleResumeRequest() throws IfsException
log(IfsServer.LEVEL_MEDIUM, "Resume request");
// Re-enable event listening.
enableEventListening();
* Performs post-run tasks.
public void postRun()
log(IfsServer.LEVEL_MEDIUM, "postRun");
try
// Disable event listening.
disableEventListening();
// Disconnect our session.
disconnectSession();
catch (Exception e)
log(IfsServer.LEVEL_MEDIUM, "Exception" + " in postRun:");
log(IfsServer.LEVEL_MEDIUM, e.getMessage());
* Enables listening for events
public void enableEventListening() throws IfsException
LibrarySession session = getSession();
try
log(IfsServer.LEVEL_MEDIUM, "Enabling MY_iFS_Agent listening....");
// Register for events on all PublicObject classes
Collection c = session.getClassObjectCollection();
//"true" in the argument means registering for all the objects of PublicObjects
session.registerClassEventHandler((ClassObject)c.getItems(Folder.CLASS_NAME), true, this);
session.registerClassEventHandler((ClassObject)c.getItems(Document.CLASS_NAME), true, this);
log(IfsServer.LEVEL_MEDIUM, "Enabled MY_iFS_Agent listener!!");
catch (IfsException e)
log(IfsServer.LEVEL_MEDIUM, "IfsException" + " enabling Event Listening; re-throwing:");
log(IfsServer.LEVEL_MEDIUM, e.toLocalizedString(session));
throw e;
catch (Exception e)
log(IfsServer.LEVEL_MEDIUM, "Exception" + " enabling Event Listening; re-throwing:");
log(IfsServer.LEVEL_MEDIUM, e.getMessage());
// throw "agent unable to enable event listening"
throw new IfsException(46002, e);
* Disables listening for VersionDescription events
* @nopub
public void disableEventListening()
LibrarySession session = getSession();
try
// Deregister for events on objects of VersionDescription class.
Collection c = session.getClassObjectCollection();
session.deregisterClassEventHandler((ClassObject)c.getItems(Document.CLASS_NAME), true, this);
session.deregisterClassEventHandler((ClassObject)c.getItems(Folder.CLASS_NAME), true, this);
catch (Exception e)
log(IfsServer.LEVEL_MEDIUM, "Exception" + " disabling Event Listening:");
log(IfsServer.LEVEL_MEDIUM, e.getMessage());
* Handles events. This queues the events for processing by
* the main agent thread.
public void handleEvent(IfsEvent event)
// Just queue the event and signal the main thread to process.
// The only tasks that should be performed in this method
// are any quick filtering.
try
//Only handle the event generated by the creation of an object.
if (event.getEventType() == IfsEvent.EVENTTYPE_CREATEINSTANCE)
queueEvent(event);
log(IfsServer.LEVEL_MEDIUM, "Event received for Create");
catch (Exception e)
log(IfsServer.LEVEL_MEDIUM, "Exception" + " at handleEvent");
log(IfsServer.LEVEL_MEDIUM, e.getMessage());
* Processes the de-queued event. This sends an e-mail to the original owner
* of the versioned document if the new version is created by a different user.
public void processEvent(IfsEvent event) throws IfsException
try
Long id = event.getId();
int eventType = event.getEventType();
int eventSubType = event.getEventSubtype();
PublicObject po = getSession().getPublicObject(id);
if (po != null)
switch (eventType) {
case IfsEvent.EVENTTYPE_CREATEINSTANCE:
log(IfsServer.LEVEL_MEDIUM, "Processing Create event for a " + po.getClassObject().getName() + " object." );
PublicObject [] parentFolderList = po.getLeftwardRelationshipObjects("FolderPathRelationship");
oracle.ifs.beans.Folder parentFolder = null;
//IfsFileSystem fs=new IfsFileSystem(po.getSession());
//Folder[] parentFolders=fs.getParents(po);
if(parentFolderList.length>0) {
//Change the object owner if it is not the same as its parent
parentFolder = (oracle.ifs.beans.Folder) parentFolderList[0];
DirectoryUser parentOwner = parentFolder.getOwner();
DirectoryUser childOwner = po.getOwner();
log(IfsServer.LEVEL_MEDIUM, (po.getCreator()).getDistinguishedName() + " created a new object" );
//if (((parentFolder.getOwner()).getDistinguishedName()).equals("system"))
// log(IfsServer.LEVEL_MEDIUM, "ACL and Owner wasn't updated to the system's subfolder" );
//else
if (!childOwner.equals(parentOwner)) po.setOwner(parentOwner);
//Change the object Acl if it is not the same as its parent
AccessControlList parentAcl = parentFolder.getAcl();
AccessControlList childAcl = po.getAcl();
if (!childAcl.equals(parentAcl)) po.setAcl(parentAcl);
//log the result
//log(IfsServer.LEVEL_MEDIUM, (parentFolder.getOwner()).getDistinguishedName() );
log(IfsServer.LEVEL_MEDIUM, "ACL and Owner is updated to its parent" );
else
log(IfsServer.LEVEL_MEDIUM, "The parent list of current object is empty: Check MY_IFS_Agent.java");
break;
case IfsEvent.EVENTTYPE_FREE:
log(IfsServer.LEVEL_MEDIUM, "Free the current object");
break;
default:
log(IfsServer.LEVEL_MEDIUM, "Event: "+IfsEvent.EVENTTYPE_CREATEINSTANCE);
break;
catch (Exception e)
log(IfsServer.LEVEL_MEDIUM, "Exception" + " at processEvent");
log(IfsServer.LEVEL_MEDIUM, e.getMessage()); -
Web service proxy - how to use server side in/out objects
We have logic in oracle database. We have pl/sql api with oracle object types as in/out parameters. On server side we have pojo classes with method to convert from/to sql structs, arrays.
pl/sql apis are exposed as web services.
When I create web service proxy, all required pojo classes are created from wsdl on client side.
Currently we are also writting client part of the code(where we also have oracle database and we want to reuse server pojos). Server pojo classes are in separate jar file and used also on a client side.
Is it possible to tell jdeveloper when creating web service proxy, to not create client side pojos, exception classes, ... , but use those from jar file.
Currently I just copy server pojo over generated client ones, make some modifications and it works. But each time I regenerate web service proxy I have to do this step manually.
Edited by: zgrega on Sep 24, 2010 7:43 AM
Edited by: zgrega on Sep 24, 2010 7:47 AMbest is to wrap the generated WS proxy in a JavaBean. This way you can create the exception handling once and apply it to all uses of the WS proxy by overriding the generated code
Frank -
In server side i got this below error.
Hi all,
its very urgent.... plzzz help me.
I developed one oaf page and these files move to server side i got below error.
*[appldev@wnsfinapp webui]$ javac ProjectInfoMainCO.java*
Note: ProjectInfoMainCO.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
plz its very urgent.....
thanks
Seshu.Seshu,
You are using one or more depreciated API in the java file either compile the java code in Jdeveloper or compile on server by overriding -Depreciated.
Regards,
Gyan
gyanoracleapps.blogspot.com -
Server-side workflows against Service Link updated parameter/data
Is there a way to attach any server-side workflows to service link inbound updates/data other than what is available via parameter mapping and prebuilt functions? I need to manipulate a piece of data that is being updated in to a field by service link inbound message beyond what is available via prebuilt functions...
Thanks.I could probably do it in the XSL, but my goal is to keep the agent configuration, parameter mappings and transformation generic as possible so that it can be reused without modification. For example, I have agent configuration for interacting with an external system, that is passing a certain number of parameters back and forth, but the actual use of these paramters may be different from one service or task to another that is interfacing with this same external system. So the parameter I need to add some logic to for this instance of the task may be representing something different from another task call, even if same parameter is used to carry that data across.
Adding the logic and manipulation in the transformation will work for us if we can override and use different transformation in the task plan settings, similar to how we can override the parameter mappings, but that is not available today... -
Error while compiling AMImpl.java at server side
Hi,
When I'm trying to compile the .java files at server side I'm getting the following errors, Can some one help me what is the issue?
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: /econv2/app/oracle/econv2comn/java/xxafp/oracle/apps/qp/pricelistrebate/webui/XxafpEepRebateCreateCO.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /econv2/app/oracle/econv2comn/java/xxafp/oracle/apps/qp/pricelistrebate/server/PricelistrebateAMImpl.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
javac: invalid flag: /econv2/app/oracle/econv2comn/java/xxafp/oracle/apps/qp/pricelistrebate/picklist/server/DivisionPicklistVOImpl.JAVA
Thanks,
MaheshHi Mahesh
check if it helps out..
http://www.rgagnon.com/javadetails/java-0521.html
AJ -
UIX - unable to turn off client and server side field validation
Hello,
I've scoured the forums for info on how to turn off client / server side field validation, for the very common case of a Cancel button. Here's the use case:
User enters a page displaying records of some kind that can be edited, or an option to create a new one. User clicks create, is taken to a new data entry form. Before entering any data, the user decides he isn't interested, and clicks the cancel button.
The problem I'm having is that I'm getting messages that required fields have no values. I have found several references on this forum that setting the submitButton attribute unvalidated="true" will turn off client side validation. Here's what my submitButton looks like:
<submitButton text="Cancel" event="success" unvalidated="true"/>
But I am still getting errors, such as:
JBO-27014: Attribute ListName in DealerListAppModule.WebDlrListsView1 is required
Now I have also seen references in the forums to turning off server side validation by overriding the validatModelUpdates method in the DataAction. I have done this too. No luck.
Any ideas why this isn't working? I have seen other posts in the forums stating that there were improvements in JDev 10.1.2 that caused a create but not insert, where you could just navigate away from the page you were on, without having to worry about rolling back the create of a new record. I am also not seeing this behavior either. I am using 10.1.2, completely updated, but when I execute a create, if I navigate back from the create page to the original one without saving (i had to fool with this to get it to work because of the validation problems above), I am still seeing the blank, created record in my rowset. I originally created my project in 9.0.5.2, but am now using 10.1.2, and having migrated the project.
So what's the deal? What's the definitive way to turn off both client side and server side validation, and what's the status of this create but not insert functionality?
BradHaven't worked with this but possibly this method of "deactivation" is not valid in 11gR2? Have you cross checked that with Oracle support?
-
Server side buffering settings for video
I pump my video (both live streaming and VOD) through a popular CDN. They control the server side (FMS) settings. I can request that they change things and they do so and let me know when I can test.
I'm wondering about server side buffering settings. Is there supposed to be some sort of coordination between the buffering settings there and the client side buffering settings I implement in my video player?
The reason I ask is I get wierd buffering behaviors in my client side player under certain conditions and there doesn't seem to be much to adjust there other than the NetStream.bufferTime property.
For instance, if I set the bufferTime property in my client viewer to 10 seconds, the player just seems to ignore it and starts playing the stream right away or within a second or two. Other times I see crazy values in the bufferTime property, like 400 seconds (I check the property's value about every second).
I'm wondering if there are some FMS settings that are overriding or are not working well with my client side buffer settings. Is this possible?Not sure how to get this code to you. There is no option here to attach a file. Trying to post inline here. Hope it comes out ok.
This is a simple player. The simplest. No frills. Just insert your RTMP url to your FMS and your stream name in the string variables "rtmpURL" and "streamName" at the top, compile and run.
Here is a deployment of this player connected to my CDN where the file is currently playing:
http://dcast.dyventive.com/cast/simple_player/player.html
Also, attached is an image I took when I ran the program and hit the refresh button in the browser. Note the giant bufferLength numbers in the debug panel.
Again note, I do not get this problem linking directly to a recorded file. I see this problem when playing a file on a server or with a live stream.
Can you see anything obviously wrong?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute"
backgroundColor="#333333"
initialize="init()">
<mx:Script>
<![CDATA[
//Note: the method "connect()" on line #49 starts the area with the important connection code
import mx.containers.Canvas;
import flash.media.Video;
import flash.net.NetConnection;
import flash.net.NetStream;
private var vid:Video;
private var nc:NetConnection;
//Path to your FMS live streaming application
private var rtmpURL:String = "Insert your URL"; //Will be used to connect to your FMS
private var buffer:Number = 5; //NetStream.bufferTime property will be set with this.
private var streamName:String = "Insert your server side stream name here"; //This determines the channel you're watching on the server.
private var ns:NetStream;
private var msg:Boolean;
[Bindable]
private var canvas_video:Canvas;//Will display some live playback stats
private var intervalMonitorBufferLengthEverySecond:uint;
private function init():void
vid=new Video();
vid.width=720;
vid.height=480;
vid.smoothing = true;
uic.addChild(vid);
connect();
public function onSecurityError(e:SecurityError):void
trace("Security error: ");
public function connect():void
nc = new NetConnection();
nc.client = this;
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
nc.connect(rtmpURL);
public function netStatusHandler(e:NetStatusEvent):void
switch (e.info.code) {
case "NetConnection.Connect.Success":
netconnectionStatus.text = e.info.code;
reconnectStatus.text = "N/A";
trace("Connected successfully");
createNS();
break;
public function createNS():void
trace("Creating NetStream");
ns=new NetStream(nc);
ns.addEventListener(NetStatusEvent.NET_STATUS, netStreamStatusHandler);
vid.attachNetStream(ns);
//Handle onMetaData and onCuePoint event callbacks: solution at http://tinyurl.com/mkadas
//See another solution at http://www.adobe.com/devnet/flash/quickstart/metadata_cue_points/
var infoClient:Object = new Object();
infoClient.onMetaData = function oMD():void {};
infoClient.onCuePoint = function oCP():void {};
ns.client = infoClient;
ns.play(streamName);
ns.bufferTime = buffer;
ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
function asyncErrorHandler(event:AsyncErrorEvent):void {
trace(event.text);
//Set up the interval that will be used to monitor the bufferLength property.
//monPlayback() will be the funciton that will do the work.
intervalMonitorBufferLengthEverySecond = setInterval(monPlayback, 1000);
public function netStreamStatusHandler(e:NetStatusEvent):void
switch (e.info.code) {
case "NetStream.Buffer.Empty":
netstreamStatus.text = e.info.code;
textAreaDebugPanel.text += "Buffer empty:\n";
trace("Buffer empty: ");
break;
case "NetStream.Buffer.Full":
netstreamStatus.text = e.info.code;
textAreaDebugPanel.text += "Buffer full:\n";
trace("Buffer full:");
break;
case "NetStream.Play.Start":
netstreamStatus.text = e.info.code;
textAreaDebugPanel.text += "Buffer empty:\n";
trace("Play start:");
break;
//Get the current ns.bufferLength value, format it, and display it to the screen.
//"bufferLen" is the key var here.
public function monPlayback():void {
var currentBuffer:Number = Math.round((ns.bufferLength/ns.bufferTime)*100);
var bufferLen:String = String(ns.bufferLength);//Here is the actual bufferLength reading.
//Use it to show the user what's going on.
pb.value = currentBuffer;//updates the little buffer slider on the screen
bufferPct.text = String(currentBuffer) + "%";
bufferTime.text = String(ns.bufferTime);
bufferLength.text = String(ns.bufferLength);
//Dump the bufferLen value to the debug panel.
textAreaDebugPanel.text += bufferLen + "\n";
trace("Buffer length: " + bufferLen);
public function onBWDone():void
//dispatchComplete(obj);
]]>
</mx:Script>
<mx:Canvas id="monitor"
y="10" right="50">
<mx:Text x="0" y="25" text="Buffer:" color="#FFFFFF"/>
<mx:Text x="0" y="50" text="Buffer Time:" color="#FFFFFF"/>
<mx:Text x="0" y="75" text="Buffer Length:" color="#FFFFFF"/>
<mx:Text x="0" y="100" text="NetConnection netStatus:" color="#FFFFFF"/>
<mx:Text x="0" y="125" text="NetStream netStatus:" color="#FFFFFF"/>
<mx:Text x="0" y="150" text="Reconnect:" color="#FFFFFF"/>
<mx:HSlider x="145" y="25" id="pb" minimum="0" maximum="100" snapInterval="1" enabled="true"/>
<mx:Text x="100" y="25" height="20" id="bufferPct" color="#FFFFFF"/>
<mx:Text x="145" y="50" height="20" id="bufferTime" color="#FFFFFF"/>
<mx:Text x="145" y="75" height="20" id="bufferLength" color="#FFFFFF"/>
<mx:Text x="145" y="100" height="20" id="netconnectionStatus" color="#FFFFFF"/>
<mx:Text x="145" y="125" height="20" id="netstreamStatus" color="#FFFFFF"/>
<mx:Text x="145" y="150" height="20" id="reconnectStatus" color="#FFFFFF" text="N/A"/>
</mx:Canvas>
<mx:UIComponent id="uic"
x="50" y="10"/>
<mx:TextArea id="textAreaDebugPanel"
width="300" height="300"
right="50" top="300"
valueCommit="textAreaDebugPanel.verticalScrollPosition=textAreaDebugPanel.maxVerticalScro llPosition"/>
</mx:Application> -
While saving a workflow using SharePoint designer on a SharePoint site, I get the following error:
Server-side activities have been updated. You need to restart SharePoint Designer to use the updated version of activities.
Steps to recreate error:
Login to the WFE server hosting IIS and workflow manager, open SharePoint Designer 2013 and login to a SharePoint site.
Access the list using SharePoint Designer 2013, in the workflow section, click new workflow.
In the new workflow dialog, enter workflow details, click save (see screenshot below).
Error message is displayed as below:
After restarting SharePoint Designer, the saved workflow is not seen in the site/workflows or list/workflow section.
Workaround
When the above steps are repeated while accessing the site via SPD from any other box besides the WFE/Workflow manager host server, the error is not encountered and its possible to save/publish workflows.
Notes
Workflow Manager 1.0 is installed.
The site has been registered with Workflow manager using Register-SPWorkflowService
cmdlet.
Any clue on why is this happening?Hi Vivek,
Please close your SharePoint Designer application, clear/delete the cached files and folders under the following directories from your server installed SharePoint Designer, then check results again.
<user profile>\appdata\roaming\microsoft\SharePoint Designer\ProxyAssemblyCache
<user profile>\appdata\local\microsoft\websitecache\<sitename>
http://www.andreasthumfart.com/2013/08/sharepoint-designer-2013-server-side-activities-have-been-updated/
Thanks
We are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
Problem is the same as https://support.mozilla.org/en-US/questions/1000745?esab=a&as=aaq
Also, there was no solution has been given in discussion.
So, problem that noone could delete all data which have been synced with new Firefox account services.
I've disconnected all my devices from previous (old) firefox sync system (which worked perfectly on several devices), after that i gone on link https://account.services.mozilla.com/ and deleted all my sensitive data.
After I've created firefox account in new firefox sync system ( https://accounts.firefox.com ), and all my data (bookmarks exactly) now present in browser twice.I have a problem with over 12,000 unwanted bookmarks in my 4 PCs (all standard Mozilla bookmarks that have been replicated). So if I would like to purge my server side data. If I do this by deleting my Sync account can I re-use my same email address to re-open a "new" Sync account?
-
What is the difference between jsp :include and server side include
what is the difference between jsp :include and server side include(request dispatcher include method)????
i understand that both request dispatcher include method and jsp:include take dynamic data,so when would one use request dispatcher include and when jsp:include.
Is the usage interchangeable?i believe jsp include is used only for jsp/html but include directive can be used to include servlets ,jsp and html....correct me if i m wrong and
do suggest if u hav ny other diff in this context...The difference really is: in what format do you want your inclusions? If your environment has many Java developers and only a few designers that focus mainly on, say, Flash, that might push you more towards the server-side include() directive. Or, if you have a large set of pages that receive dynamic content that is displayed in a consistent fashion (such as a workflow header area on a page).
If, on the other hand, you have more web designers, there may be a greater desire to deal in markup rather than Java code. Java developers themselves might prefer to view markup (JSP) that more resembles the eventual output than something occuring in Java code.
Finally, there are considerations of tiering. While it is totally possible to (and I have previously) implement 'view classes' that render markup or generate layout templates, JSP's offer, IMO, a subtle, psychological advantage. By forcing a developer to work in a different format, markup versus Java source, the separation on view from controller and model becomes a bit easier. It is still possible to make mistakes, but if a developer at some point notices, "Wait, I'm in a JSP, should I be importing a java.sql class?", then the choice to use JSP includes has paid off in spades.
- Saish -
Contribute changing relative path for server-side include
I am using Contribute CS3, version 4.1, and my pages crash
every time a send a draft for review, because Contribute is
rewriting a relative URL in a server-side include.
The server-side include (before I send for review) reads:
<!--#include file="../foo/bar.fileextention"-->
After I edit other portions of the page and send the draft
for review, it reads:
<!--#include file="http:
//www.servername.com/foo/bar.fileextension"-->
Which results in the draft being unreadable.
Is there any way to tell Contribute not to monkey with this
URL? I have hunted, read the forums, checked the knowledge base,
and coming up empy.
Thanks in advance for any help you can provide!! I really
appreciate it!
-NicholasAnswering my own question.
I researched this complete forum and with taking ideas from
different posts, I was able to figure this out. I thought I would
post it for anyone else needing to know the answer in one place:
Include tags must read:
<!--#include virtual="includes/fileName.html"-->
(Include file is NOT a real HTML doc -- no tags in file
except for CSS, as it would be used if not using Contribute.)
No reference to .dwt needed nor Template created.
No Edit instance tags needed anywhere.
Contribute user navigates to page:
[Upper right corner] Click Choose...
[In my structure] User opens includes folder (double clicks)
User selects THE file (clicks OK)
User clicks on Edit Page button
(Text is now editable.)
User edits text.
User clicks on Publish button.
Worked for me several times trying.
- Janet -
Needs a background webdynpro application running at the server side
Hi All,
We have a requirement wherein we need to have an application running all the time at the server side to capture the response coming from a web application. Based on the response that the application receives, it needs to update some backend R/3 tables.
We are thinking of a webdynpro java application.
Can anyone suggest what kind of application needs to be implemented here?
And what would be the steps required to run the application at the server side without calling the application.
Thanks & Regards,
AnuragHi Robin,
Thanks for the detailed explaination.
This may sound silly to you but I've another doubt which is as follows:
As you mentioned that the external web application will be sending requests to our Web service(in SOAP envelopes) and rest of the functionality can be achieved by our web service.
Actually, we are expecting only responses from the external web application. The thing is that we are sending the requests to the external web applications from our custom webdynpro application and in return the web application will be sending us 2 responses.
First response would be back to our WD java application URL(to the browser in which WD java app is running) which would get the response and display some message based on the response.
Second would be to this web service which you have just suggested. We are having two responses so that even if the browser in which the WD java application is running gets accidentally closed, the response from the external web application must get captured somewhere else and should not get lost in any case.
So, now since we are only expecting the response from the web application and we do not want any requests from the web application to our web service; how is this possible?
I am asking the above question because you have mentioned that the external web application has to request our Web service but we want is only this web service to capture the response coming from the Web application.
Or is it like the web application will send us the response string as request string to our Web Service and the web service will capture these response parameters as request parameters from the web application and do the further processing.
But in that case, we do not want any response to be sent by the Web Service to the external web application.
Please suggest if this is possible.
Once again, many thanks for the help so far.
Thanks & Regards,
Anurag -
Team Foundation Server 2013.2 - SharePoint 2013 SP1 - Missing Server Side Dependencies
Environment:
TFS 2013.2 (update 2) on Windows Server 2012 R2, with MS SQL Server 2014 on the same machine;
SharePoint 2013 SP1 (with April 2014 update) on Windows Server 2012 R2
MS SQL Server 2014 on Windows Server 2012 R2 (Used by SharePoint)
Title
Missing server side dependencies.
Severity
1 - Error
Category
Configuration
Explanation
[MissingSetupFile] File
[Features\TfsDashboardAgileReports\Reports\Bug Progress.xlsx] is referenced [6] times in the database [WSS_Content_Internal], but exists only under Microsoft SharePoint Foundation 2010 setup folder. Consider upgrading the feature/solution which contains this
file to the latest version. One or more setup files are referenced in the database [WSS_Content_Internal], but are not installed on the current farm. Please install any feature or solution which contains these files.
[MissingSetupFile] File
[Features\TfsDashboardAgileReports\Reports\Bug Reactivations.xlsx] is referenced [6] times in the database [WSS_Content_Internal], but exists only under Microsoft SharePoint Foundation 2010 setup folder. Consider upgrading the feature/solution which contains
this file to the latest version. One or more setup files are referenced in the database [WSS_Content_Internal], but are not installed on the current farm. Please install any feature or solution which contains these files.
[MissingSetupFile] File
[Features\TfsDashboardAgileReports\Reports\Bug Trends.xlsx] is referenced [6] times in the database [WSS_Content_Internal], but exists only under Microsoft SharePoint Foundation 2010 setup folder. Consider upgrading the feature/solution which contains this
file to the latest version. One or more setup files are referenced in the database [WSS_Content_Internal], but are not installed on the current farm. Please install any feature or solution which contains these files.
And dozen more similar entries
The server is not in production, so I don't know if this error would cause any problems or not.
How to resolve this?
Thanks!
Fat DragonHi
A colleague and I are looking at a similar issue on TFs 2010 upgraded to TFS 2013 which I guess is slightly different mssing dependencies given the project template. we're using
[MissingSetupFile] File [Features\TfsDashboardBaseUI\default.aspx] is referenced [1] times in the database [WSS_Content], but exists only under Microsoft SharePoint Foundation 2010 setup folder. Consider upgrading the feature/solution which contains this
file to the latest version. One or more setup files are referenced in the database [WSS_Content], but are not installed on the current farm. Please install any feature or solution which contains these files.
[MissingSetupFile] File [Features\TswaWebParts\WebParts\CompletedBuilds.webpart] is referenced [1] times in the database [WSS_Content], but exists only under Microsoft SharePoint Foundation 2010 setup folder. Consider upgrading the feature/solution which contains
this file to the latest version. One or more setup files are referenced in the database [WSS_Content], but are not installed on the current farm. Please install any feature or solution which contains these files.
[MissingSetupFile] File [Features\TswaWebParts\WebParts\GoToWorkItem.webpart] is referenced [1] times in the database [WSS_Content], but exists only under Microsoft SharePoint Foundation 2010 setup folder. Consider upgrading the feature/solution which contains
this file to the latest version. One or more setup files are referenced in the database [WSS_Content], but are not installed on the current farm. Please install any feature or solution which contains these files.
Will logon in a couple of days to test "Fat Dragon's" approach ( unless someone tells me different)
Daniel
Freelance consultant -
Reappears Missing Server Side Dependencies in Sharepoint Foundation 2013 Health Analyzer
Hi all,
I am a little bit confused why I am getting missing server side dependencies again and again. The missing server side dependencies shows the errors of "MissingSetupFiles". When I click on "Reanalyze Now" button,
the error vanishes from the Health Analyzer page. But after one day it reappears again and shows "Missing Server Side Dependencies", When I again click on "Reanalyze Now" the error of "Missing Server Side Dependencies" goes
away.
But after one or two days, the error comes up again.
Can you please help me why this is happening.
Thanks for help.Hi Vishwajeet,
You are able to use SharePoint Feature Administration from Codeplex to clean up the Missing Features. You can do it by clicking here.
Also , you are able to use PowerShell to resolve it. More detailed information, click here.
Here are some similar posts for you to take a look at:
http://social.technet.microsoft.com/Forums/en-US/cc0b3ac7-1eb7-4e5b-9334-8c556e4c8b23/test-spcontentdatabase-errors-in-sharepoint-2010
http://www.jeffscorner.org/blog/post/SharePoint-2013-%E2%80%93-Missing-server-side-dependencies-%E2%80%93-MissingWebPart-Webpart-class.aspx
http://www.heyweb.net/2011/08/fixing-missing-server-side-dependencies-missingfeature/
I hope this helps.
Thanks,
Ketak
Maybe you are looking for
-
Destination does not exist (help please)
Background: - Using Flex Builder 3 plugin for Eclipse - Downloaded latest BlazeDS release build - Running Tomcat 6.0.16 ======= First I want to note the samples that come with BlazeDS run absolutely fine. So I created a new project in Flex Builder 3.
-
<blockquote>Locking duplicate thread.<br> Please continue here: [[/questions/908837]]</blockquote> I think it is related to a babylon add on that my son installed. I don't know how to get rid of it.
-
I read all my mail through the preview window and each message has a different font size, most too small for me to read. The preference font size doesn't seem to work (Isn't that only for outgoing mail anyway?) Is there anyway to make all the fonts i
-
Mismatch between Print preview and printout
Respected Guru's Output device was defined during Febuary, and printout was taken without trouble untill today. Suddenly the print preview and printout does not match, title "INVOICE" printed at the top of the sheet is missing, whereas appears in the
-
I am not a Firefox OS user, but I'd like to be. The main holdup for me is that the worry that the other major privacy based mobile software I use is not transferrable to a Firefox phone. Can you verify that apps like the above will work on a Firefox